Page 1 of 1

Rating.sab failed to load?

Posted: August 4th, 2014, 12:08 pm
by Davoodoo
Below is an extract from my log file. I keep getting an error that Rating.sab failed to load. How can I fix this error? ???

Code: Select all

2014-08-04 18:53:33,325::INFO::[__init__:941] Loading data for Rating.sab from C:\Users\Voodoo\AppData\Local\sabnzbd\admin\Rating.sab
2014-08-04 18:53:33,338::ERROR::[__init__:962] Loading C:\Users\Voodoo\AppData\Local\sabnzbd\admin\Rating.sab failed
2014-08-04 18:53:33,338::INFO::[__init__:963] Traceback: 
Traceback (most recent call last):
  File "sabnzbd\__init__.pyo", line 954, in load_admin
EOFError
Cheerz
DaVoodoo

Re: Rating.sab failed to load?

Posted: August 4th, 2014, 12:37 pm
by sander
Does it cause any real problems (other than the logging)?

I seem to have about the same logging:

Code: Select all

2014-08-03 10:23:48,960::INFO::[__init__:941] Loading data for Rating.sab from /home/sander/.sabnzbd/admin/Rating.sab
2014-08-03 10:23:48,960::INFO::[__init__:944] /home/sander/.sabnzbd/admin/Rating.sab missing, trying old cache
2014-08-03 10:23:48,961::INFO::[__init__:947] /home/sander/.sabnzbd/cache/Rating.sab missing
Files don't exist on my system:

Code: Select all

sander@flappie:~$ ll /home/sander/.sabnzbd/admin/Rating.sab
ls: cannot access /home/sander/.sabnzbd/admin/Rating.sab: No such file or directory
sander@flappie:~$ ll /home/sander/.sabnzbd/cache/Rating.sab
ls: cannot access /home/sander/.sabnzbd/cache/Rating.sab: No such file or directory
sander@flappie:~$

Code: Select all

sander@flappie:~/git/sabnzbd$ grep -ir Rating.sab *
sabnzbd/rating.py:            (self.version, self.ratings, self.nzo_indexer_map) = sabnzbd.load_admin("Rating.sab")
sabnzbd/rating.py:            sabnzbd.save_admin((self.version, self.ratings, self.nzo_indexer_map), "Rating.sab")

Re: Rating.sab failed to load?

Posted: August 4th, 2014, 1:08 pm
by sander
This won't help you much, but:

after configuring the OZnzb rating system in SAB, and sending a rating back to OZnzb, there is a file /home/sander/.sabnzbd/admin/Rating.sab

Code: Select all

$ ll /home/sander/.sabnzbd/admin/Rating.sab
-rw-rw-r-- 1 sander sander 332 aug  4 20:05 /home/sander/.sabnzbd/admin/Rating.sab
... and the error message is gone:

Code: Select all

2014-08-04 20:04:41,031::DEBUG::[rating:215] Updating indexer rating (358a9dcvblablae1e6540eblablaf1)
2014-08-04 20:05:34,583::INFO::[__init__:917] Saving data for Rating.sab in /home/sander/.sabnzbd/admin/Rating.sab
2014-08-04 20:05:38,148::INFO::[__init__:941] Loading data for Rating.sab from /home/sander/.sabnzbd/admin/Rating.sab
So this feels like a bug: SAB tries to read the OZnzb rating file when it doesn't exist.