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

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
dspreadbury
Newbie
Newbie
Posts: 7
Joined: November 21st, 2008, 1:35 pm

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

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
dspreadbury
Newbie
Newbie
Posts: 7
Joined: November 21st, 2008, 1:35 pm

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

Post 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
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

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

Post 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/
dspreadbury
Newbie
Newbie
Posts: 7
Joined: November 21st, 2008, 1:35 pm

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

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
Post Reply