Page 1 of 2

0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 3:25 am
by Kriss
When using the 'Add NZB' button to upload a NZB, nothing happens at all. Not even an error log.
I'm also using Firefox and the 'nzbdStatus' extension to automatically send NZB's to SABnzbd, then I get the following error:

Code: Select all

2011-08-07 09:26:24,185::INFO::[_cplogging:178] [07/Aug/2011:09:26:24] HTTP 
Request Headers:
  REFERER: http://home-server:8080/
  Remote-Addr: 192.168.10.198
  Content-Length: 1067876
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
  CONNECTION: close
  COOKIE: jqCookieJar_tablesorter=%7B%22showListTable%22%3A%5B%5B5%2C1%5D%2C%5B1%2C0%5D%5D%7D; plushContainerWidth=100%25; plushNoTopMenu=0; session_id=86097095bb7222ec090c522856c2664adaa1a636
  PRAGMA: no-cache
  HOST: home-server:8080
  CACHE-CONTROL: no-cache
  ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  ACCEPT-LANGUAGE: nl,en-us;q=0.7,en;q=0.3
  Content-Type: multipart/form-data; charset=UTF-8; boundary=--------1312701875486
  ACCEPT-ENCODING: gzip, deflate
2011-08-07 09:26:24,360::ERROR::[_cplogging:178] [07/Aug/2011:09:26:24] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cprequest.py", line 638, in respond
    self.body.process()
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cpreqbody.py", line 926, in process
    super(RequestBody, self).process()
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cpreqbody.py", line 495, in process
    proc(self)
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cpreqbody.py", line 196, in process_multipart_form_data
    process_multipart(entity)
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cpreqbody.py", line 188, in process_multipart
    part = entity.part_class.from_fp(entity.fp, ib)
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cpreqbody.py", line 550, in from_fp
    headers = cls.read_headers(fp)
  File "/usr/local/lib/python2.7/site-packages/CherryPy-3.2.0-py2.7.egg/cherrypy/_cpreqbody.py", line 566, in read_headers
    raise ValueError("MIME requires CRLF terminators: %r" % line)
ValueError: MIME requires CRLF terminators: 'Content-Disposition: form-data; name="name"; filename="De Kleine Zeemeermin 2 _2000_ (basp).nzb"\n'
Version: 0.6.5
OS: FreeBSD 8.3 (ZFSguru)
Install-type: FreeBSD ports collection
Skin (if applicable): Plush
Firewall Software: None
Are you using IPV6? no
Is the issue reproducible? yes

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 3:30 am
by shypike
What happens if you disable the nzbStatus add-on?
I suspect it interferes.

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 8:13 am
by Kriss
I disabled nzbdStatus. The first NZB gave this error:

Code: Select all

2011-08-07 14:15:06,994::ERROR::[nzbstuff:1003] Error importing <NzbFile: filename=None, type=None>
2011-08-07 14:15:06,994::ERROR::[nzbstuff:1003] Error importing <NzbFile: filename=None, type=None>
after that, with other NZB's, nothing happens.

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 8:46 am
by shypike
I assume these are NZB files that are first saved to disk.
Are these valid NZB files? Do they import correctly when offered via the "watched folder"?
Are you using the "upload" dialog box in the Plush skin?
Can you use another browser and try to upload again?

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 11:34 am
by Kriss
Yes, the NZB files are saved on my laptop, running Windows 7.
SABnzbd runs on my NAS, running FreeBSD 8.2 STABLE.
Dropping a NZB file in the watch-folder works. Also Sickbeard, Couchpotato, Spotweb are sending their NZB's to SABnzbd. This all works very well.

I tried Firefox, Chrome and IE, using the upload dialog box in Plush, but still nothing happens.

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 11:39 am
by shypike
Everything is OK when SABnzbd runs on most other Unix platform.
We test specifically with Ubuntu.
It must be something with freeBSD.
How (and what) did you install to get SABnzbd running?
(BTW: you're two versions behind).

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 12:41 pm
by Kriss
SABnzbd 0.6.5 is in the ports collection of FreeBSD

http://www.freebsd.org/cgi/ports.cgi?qu ... &stype=all
http://www.freebsd.org/cgi/cvsweb.cgi/p ... bnzbdplus/

When you intall this, it also installs all dependencies. It's not a big problem. Just wanted to mention it.
Can I overwrite all files, with the 0.6.7 source files, to update?

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 4:15 pm
by shypike
Yes, you can overwrite.

Re: 0.6.5 fails to upload NZB's

Posted: August 7th, 2011, 4:33 pm
by sander
Kriss wrote:
I tried Firefox, Chrome and IE, using the upload dialog box in Plush, but still nothing happens.
What if you configure "classic - classic" as the "Secondary Web Interface" (SAB -> config -> general), and upload the NZB via that interface (via http://localhost:8080/m/ )

Re: 0.6.5 fails to upload NZB's

Posted: August 8th, 2011, 6:49 am
by shypike
I created a VMWare image for freeBSD 8.2 and installed the repository's SABnzbd 0.5.6 on it.
Works fine.
After that, I downloaded the tarbal for SABnzbd 0.6.7 and ran that.
Works perfectly too, no problems uploading NZB files with Firefox, IE, Chrome and Safari (the browsers are on a Windows system).

The problem is, I don't know which version of the CherryPy module is used.
SABnzbd needs its own patched version of it, but some package creators seem to ignore this.
What are your results when you just unpack our tarbal and run the ./SABnzbd.py script from its base folder?

Re: 0.6.5 fails to upload NZB's

Posted: August 8th, 2011, 11:49 am
by Kriss
sander wrote:
Kriss wrote:
I tried Firefox, Chrome and IE, using the upload dialog box in Plush, but still nothing happens.
What if you configure "classic - classic" as the "Secondary Web Interface" (SAB -> config -> general), and upload the NZB via that interface (via http://localhost:8080/m/ )
I tried this already but that doesn't work either.
shypike wrote:I created a VMWare image for freeBSD 8.2 and installed the repository's SABnzbd 0.5.6 on it.
Works fine.
After that, I downloaded the tarbal for SABnzbd 0.6.7 and ran that.
Works perfectly too, no problems uploading NZB files with Firefox, IE, Chrome and Safari (the browsers are on a Windows system).

The problem is, I don't which version of the CherryPy module is used.
SABnzbd needs its own patch version of it, but some package creators seem to ignore this.
What are your results when you just unpack our tarball and run the ./SABnzbd.py script from its base folder?
When I use the 0.6.7 tarball and run it in the base folder, it uploads nzb's, but then there is another problem. SABnzbd thinks my disks are empty.

I also tried to overwrite all the 0.6.5 files with 0.6.7 files, but the problem with this is, the installed files are not in one place. They actually are in three different folders:
/usr/local/lib/python2.7/site-packages/sabnzbd/
/usr/local/share/sabnzbdplus/
/usr/local/bin/SABnzbd.py

In the /usr/local/share/sabnzbdplus folder are these folders located:
/interfaces
/locale
/po
/tool
/utils

The /sabnzbd folder is located in: /usr/local/lib/python2.7/site-packages/

This means these folders are missing:
/cherrypy
/email
/licenses

I thought, lets copy those from the tarball, but no luck. I think we have to let the package maintainer know that he has to keep all the original files together :(

Re: 0.6.5 fails to upload NZB's

Posted: August 8th, 2011, 2:47 pm
by shypike
The Ubuntu packager (jcfp) splits up SABnzbd too, without issues.
He does use our CherryPy instead of the official package.

I don't understand the disk size issue, the size looks OK to me.
What is wrong?

Re: 0.6.5 fails to upload NZB's

Posted: August 9th, 2011, 8:14 am
by Kriss
I send a mail to the package maintainer and asked him if he could include the patched CherryPy in the next release.

When I run the source package of SABnzbd 0.6.7, I see this:
Image

This is on a VM, but its the same on my NAS

Re: 0.6.5 fails to upload NZB's

Posted: August 9th, 2011, 9:25 am
by shypike
Did you download and complete an NZB?
The "complete" folder isn't created until the first NZB has been processed.
Until that time SABnzbd doesn't know where to look.
And it doesn't look to avoid problems with not-yet-attached external drives.

Re: 0.6.5 fails to upload NZB's

Posted: August 9th, 2011, 10:01 am
by Kriss
shypike wrote:Did you download and complete an NZB?
The "complete" folder isn't created until the first NZB has been processed.
Until that time SABnzbd doesn't know where to look.
And it doesn't look to avoid problems with not-yet-attached external drives.
Didn't know that. Processed a NZB. It's working OK now. Thanks for the help.