Page 1 of 1

'Cannot read /tmp/foo' error from SABnzbd+ 0.4.6 on QNAP TS-209

Posted: January 7th, 2009, 12:58 pm
by dspreadbury
I've been running SABnzbd+ with no problems for the last couple of months on a QNAP T-209, but over the last few days it has developed a problem. Suddenly two of my Newzbin RSS feeds, which only match a couple of items when viewed as saved searches at Newzbin, have caused SABznbd+ to try to download dozens of items that don't match the search terms. When this happens, I purge the queue, and I have since deleted one of the offending RSS feeds from my config.

However, when I now try to add a new NZB file on the home screen, it's not added to the queue, and a message like this appears in the warnings log:
2009-01-07 17:28:11,902 WARNING [sabnzbd.misc] Cannot read /tmp/tmpHjjO13
I've logged in via SSH and looked in /tmp, and the file shown in the warning is definitely there.

Any ideas as to how I can get SABnzbd+ up and running again?

Thanks!

Daniel

Re: 'Cannot read /tmp/foo' error from SABnzbd+ 0.4.6 on QNAP TS-209

Posted: January 7th, 2009, 4:49 pm
by shypike
You'll have to modify the code.
Find source file misc.py
Go to line 217, where it says:

Code: Select all

    except:
        logging.warning('[%s] Cannot read %s', __NAME__, path)
        return False
Modify the code so that it reads:

Code: Select all

    except:
        logging.warning('[%s] Cannot read %s', __NAME__, path)
        logging.debug("[%s] Traceback: ", __NAME__, exc_info = True)
        return False
Now start SABnzbd again, set the logging level to +Debug.
When you get new errors, at least the log file will give you more info about the problem.

Re: 'Cannot read /tmp/foo' error from SABnzbd+ 0.4.6 on QNAP TS-209

Posted: January 7th, 2009, 6:58 pm
by dspreadbury
Thanks for your reply. I couldn't figure out how to start SABnzbd+ with the log level set to debug, so I modified the code you posted to produce the Traceback when the log level is set to warnings. This is the output I get:
2009-01-07 23:56:15,793 WARNING [sabnzbd.misc] Cannot read /tmp/tmpWMS-6p
2009-01-07 23:56:15,810 WARNING [sabnzbd.misc] Traceback: Traceback (most recent call last): File "/share/MD0_DATA/.qpkg/SABnzbd+/sabnzbd/misc.py", line 210, in ProcessSingleFile name = filename.replace('.nzb.gz', '.nzb') AttributeError: 'NoneType' object has no attribute 'replace'
Can you help me further?

Thanks for your assistance!

Daniel

Re: 'Cannot read /tmp/foo' error from SABnzbd+ 0.4.6 on QNAP TS-209

Posted: January 7th, 2009, 8:49 pm
by switch
Which skin are you adding the files from? Default, smpl or plush. Also which browser, if firefox do you have nzbdstatus plugin installed?

For now, try just adding using the url, such as http://v3.newzbin.com/browse/post/0000000/

Re: 'Cannot read /tmp/foo' error from SABnzbd+ 0.4.6 on QNAP TS-209

Posted: January 8th, 2009, 2:25 am
by dspreadbury
I'm using Firefox 3 on Mac OS X 10.5; I'm using the Default skin; and I'm not using any additional plug-ins or the like for Firefox.

Re: 'Cannot read /tmp/foo' error from SABnzbd+ 0.4.6 on QNAP TS-209

Posted: January 8th, 2009, 6:23 am
by shypike
dspreadbury wrote:

Code: Select all

2009-01-07 23:56:15,793 WARNING [sabnzbd.misc] Cannot read /tmp/tmpWMS-6p
2009-01-07 23:56:15,810 WARNING [sabnzbd.misc] Traceback: Traceback (most recent call last): File "/share/MD0_DATA/.qpkg/SABnzbd+/sabnzbd/misc.py", line 210, in ProcessSingleFile name = filename.replace('.nzb.gz', '.nzb') AttributeError: 'NoneType' object has no attribute 'replace'
It looks like SABnzbd gets empty file-names somehow.
Could be caused by the RSS feeds going haywire.

The quick-and-dirty solution is to start SABnzbd with the --clean option (once).
This will remove ALL queue and history data.
It will preserve all settings (including RSS definitions and filters), but will also
forget what has been downloaded from the RSS feeds.