Page 1 of 1

rss not working (500 Internal error)

Posted: March 14th, 2008, 5:31 am
by steve51184
sorry to make another help topic but i've just setup an rss feed and after i submitted the feed it took me to a "500 Internal error" page and now every time i go to to rss section i get the same error

i've also deleted the cache and restarted sabnzbd but this brings me back to stage one and if i add the feed again i'll get the same error

error:
500 Internal error

The server encountered an unexpected condition which prevented it from fulfilling the request.
RSS feed settings:
RSS-Feed URI: "a valid rss feed that links to .nzb files"


Text Filter: xvid (as i only want the xvid files)


Regex Filter: x264 (as i don't want x264)


Match Multiple: yes
cherrypy.log:
14/Mar/2008:10:27:45 CONFIG INFO Server parameters:
14/Mar/2008:10:27:45 CONFIG INFO  server.environment: production
14/Mar/2008:10:27:45 CONFIG INFO  server.log_to_screen: False
14/Mar/2008:10:27:45 CONFIG INFO  server.log_file: /home/username/sabnzbd/logs/cherrypy.log
14/Mar/2008:10:27:45 CONFIG INFO  server.log_tracebacks: True
14/Mar/2008:10:27:45 CONFIG INFO  server.log_request_headers: False
14/Mar/2008:10:27:45 CONFIG INFO  server.protocol_version: HTTP/1.0
14/Mar/2008:10:27:45 CONFIG INFO  server.socket_host: serverip
14/Mar/2008:10:27:45 CONFIG INFO  server.socket_port: 8080
14/Mar/2008:10:27:45 CONFIG INFO  server.socket_file:
14/Mar/2008:10:27:45 CONFIG INFO  server.reverse_dns: False
14/Mar/2008:10:27:45 CONFIG INFO  server.socket_queue_size: 5
14/Mar/2008:10:27:45 CONFIG INFO  server.thread_pool: 10
14/Mar/2008:10:27:45 HTTP INFO Serving HTTP on http://serverip:8080/
14/Mar/2008:10:28:34 HTTP INFO Traceback (most recent call last):
  File "/home/username/sabnzbd/cherrypy/_cphttptools.py", line 110, in _run
    applyFilters('before_finalize')
  File "/home/username/sabnzbd/cherrypy/filters/__init__.py", line 151, in applyFilters
    method()
  File "/home/username/sabnzbd/sabnzbd/utils/multiauth/filter.py", line 59, in beforeFinalize
    cherrypy.response.body = rsrc.callable(rsrc.instance,
  File "/home/username/sabnzbd/sabnzbd/interface.py", line 1095, in index
    return template.respond()
  File "", line 142, in respond
TypeError: 'list' object is not callable
sabnzbd.log:
2008-03-14 10:27:45,011::INFO::--------------------------------
2008-03-14 10:27:45,012::INFO::
SABnzbd.py-0.3.3 [/home/username/sabnzbd/SABnzbd.py]
2008-03-14 10:27:45,013::INFO::SABnzbd.py-0.3.3
2008-03-14 10:27:45,013::INFO::Initializing SABnzbd v0.3.3
2008-03-14 10:27:45,016::INFO::[sabnzbd] Loading data for rss.sab from /home/username/sabnzbd/cache/rss.sab
2008-03-14 10:27:45,016::INFO::[sabnzbd] /home/username/sabnzbd/cache/rss.sab missing
2008-03-14 10:27:45,017::INFO::[sabnzbd] Loading data for bytes.sab from /home/username/sabnzbd/cache/bytes.sab
2008-03-14 10:27:45,017::INFO::[sabnzbd] /home/username/sabnzbd/cache/bytes.sab missing
2008-03-14 10:27:45,018::INFO::[sabnzbd] Loading data for queue.sab from /home/username/sabnzbd/cache/queue.sab
2008-03-14 10:27:45,018::INFO::[sabnzbd] /home/username/sabnzbd/cache/queue.sab missing
2008-03-14 10:27:45,021::INFO::_yenc module... found!
2008-03-14 10:27:45,021::INFO::celementtree module... found!
2008-03-14 10:27:45,022::INFO::par2 binary... found (/bin/par2)
2008-03-14 10:27:45,022::INFO::rar binary... found (/usr/local/bin/rar)
2008-03-14 10:27:45,022::INFO::unzip binary... found (/usr/bin/unzip)
2008-03-14 10:27:45,023::INFO::Perl interpreter... found (['/usr/local/bin/perl', '/home/username/sabnzbd/sabnzbd/utils/sendEmail.pl'])
2008-03-14 10:27:45,027::INFO::Web dir is /home/username/sabnzbd/interfaces/Default
2008-03-14 10:27:45,172::INFO::Starting SABnzbd.py-0.3.3
2008-03-14 10:27:45,300::INFO::Starting web-interface on serverip:8080
2008-03-14 10:28:25,604::INFO::[RSS] Parsing http://myvalidrssfeed.rss
2008-03-14 10:28:32,491::INFO::[RSS] Done parsing http://myvalidrssfeed.rss
2008-03-14 10:28:32,494::INFO::[sabnzbd] Saving data for rss.sab in /home/username/sabnzbd/cache/rss.sab
2008-03-14 10:28:32,502::INFO::SABnzbd shutting down...
2008-03-14 10:28:33,586::INFO::[downloader] Shutting down
2008-03-14 10:28:33,606::INFO::[assembler] Shutting down
2008-03-14 10:28:33,608::INFO::[nzbqueue] Saving queue
2008-03-14 10:28:33,608::INFO::[sabnzbd] Saving data for queue.sab in /home/username/sabnzbd/cache/queue.sab
2008-03-14 10:28:33,609::INFO::[sabnzbd] Saving data for bytes.sab in /home/username/sabnzbd/cache/bytes.sab
2008-03-14 10:28:33,610::INFO::[sabnzbd] Saving data for rss.sab in /home/username/sabnzbd/cache/rss.sab
2008-03-14 10:28:33,612::INFO::Initializing SABnzbd v0.3.3
2008-03-14 10:28:33,615::INFO::[sabnzbd] Loading data for rss.sab from /home/username/sabnzbd/cache/rss.sab
2008-03-14 10:28:33,626::INFO::[sabnzbd] Loading data for queue.sab from /home/username/sabnzbd/cache/queue.sab

Re: rss not working (500 Internal error)

Posted: March 14th, 2008, 6:58 am
by shypike
You must use either text or regex. Not both.

Current RSS implementattion lacks flexibility.
So unless you are able to write complex Python regular expressions, RSS is of limited use now.

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 5:28 am
by ferno
Hi,

Same for me here.

I tried several entries etc. but all generate the error 500.
I tried with an empty Text Filter: and an entry in the regex filter and the other way round etc. but when I submit it, it ends up in a error 500. :(

Has anyone been successful with the RSS option at all?

(no criticism intended but I just would love to get it working)

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 7:14 am
by shypike
It should just work with simple expressions.
Email a screenshot with what you enter to bugs@sabnzbd.org

Any regular expression should be a correct one, which can be a challenge...

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 9:14 am
by shypike
Got your email.
I'm not sure why the Python code crashes.
However, the RSS implementation does not support "*Amsterdam*".
So, you can say "*" which matches everything or "Amsterdam" which will match any "Amsterdam" in the post title, no need for the "*".
Anything more complex needs a real Python regex in the second box.

Work is being done on improving this, but it's not ready.

BTW: try to install the yEnc-0.3 module on your system. SABnzbd can work without it, but the performance will be less (especially for low-performance systems).

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 11:41 am
by ferno
shypike wrote: Got your email.
I'm not sure why the Python code crashes.
However, the RSS implementation does not support "*Amsterdam*".
So, you can say "*" which matches everything or "Amsterdam" which will match any "Amsterdam" in the post title, no need for the "*".
Anything more complex needs a real Python regex in the second box.

Work is being done on improving this, but it's not ready.

BTW: try to install the yEnc-0.3 module on your system. SABnzbd can work without it, but the performance will be less (especially for low-performance systems).
Hi thanx!

I also tried that one (only the word Amsterdam for the serie New Amsterdam) but with the same results. :'(

Where can I find the yEnc-0.3 module  for Linux, until now I only found the one for win32 on the SABnzbd+ site?

I already did urpmi yEnc and the yencode is already installed:

Package yencode-0.46-5mdv2008.0.x86_64 is already installed

Or do I need a Python/SABnzbD specific yEnc module?

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 1:33 pm
by DeXeS

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 2:34 pm
by ferno

Hi,

Thanx!

I already had found one at the ..nzb site (the competition ;)  ) but sadly it does not build on my system:

invalid Python installation: unable to open /usr/lib64/python2.5/config/Makefile (No such file or directory)

Strange but I am not very familiar with Python, SABnzbD is the first Python program I use.

Maybe this error rings a bel for some one? If so pleas let me know.
In the meantime Google is my friend. :))

Re: rss not working (500 Internal error)

Posted: March 20th, 2008, 2:40 pm
by ferno
Fixed!!

I needed the Python-Devel libraries.

Tada:

008-03-20 20:38:28,421::INFO::_yenc module... found!


Thanks for all the help!!

Now Just need to get RSS fixed, but then again I might just wait until the redesigned RSS implementation goes live.