Page 1 of 1

Scheduling: error

Posted: July 17th, 2014, 5:26 pm
by JustAnotherJDoe
Hi there,

today I tried to set up my first schedule. "Remove failed jobs" at 21:20, every day.

sabnzbd is smoothly running on FreeNAS (though this seems not a FreeNAS related thing!) for a couple of weeks. Except for this error sabnzbd shows no problems. I am still on version 0.7.16.

The scheduled job, however, hasn't executed and the following error appeared in the logs:

Code: Select all

2014-07-17 21:20:50,774::ERROR::[kronos:321] ERROR DURING SCHEDULER EXECUTION 'ascii' codec can't decode byte 0xfc in position 7: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbd/SABnzbd/sabnzbd/utils/kronos.py", line 305, in __call__
    self.execute()
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbd/SABnzbd/sabnzbd/utils/kronos.py", line 399, in execute
    self.action(*self.args, **self.kw)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbd/SABnzbd/sabnzbd/api.py", line 1967, in history_remove_failed
    del_job_files(history_db.get_failed_paths())
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbd/SABnzbd/sabnzbd/api.py", line 1489, in del_job_files
    remove_all(path, recursive=True)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbd/SABnzbd/sabnzbd/misc.py", line 1279, in remove_all
    files = globber(path, pattern)
  File "/usr/pbi/sabnzbd-amd64/share/sabnzbd/SABnzbd/sabnzbd/misc.py", line 77, in globber
    return glob.glob(os.path.join(path, pattern).replace('[', '[[]'))
  File "/usr/pbi/sabnzbd-amd64/lib/python2.7/glob.py", line 27, in glob
    return list(iglob(pathname))
  File "/usr/pbi/sabnzbd-amd64/lib/python2.7/glob.py", line 60, in iglob
    yield os.path.join(dirname, name)
  File "/usr/pbi/sabnzbd-amd64/lib/python2.7/posixpath.py", line 80, in join
    path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 7: ordinal not in range(128)
Hope somebody can help.

Kind regards.

Re: Scheduling: error

Posted: July 17th, 2014, 5:52 pm
by JustAnotherJDoe
Updated to 0.7.18. The error remains :-(

Re: Scheduling: error

Posted: July 18th, 2014, 12:02 am
by sander
As "Remove failed jobs" has no parameters, my guess is that one of the failed jobs has a strange character in the path name (or in SAB's presentation of the path in the database).
So, if you manually delete the failed jobs, one-by-one, does it work for all of them?

Just maybe a Status -> Queue Repair helps (although I don't know if a queue repair handles failed jobs)