Bad response from server: (500 [error,getplugins]) after upgrading ubuntu :(

das329717

Member
May 25, 2018
928
0
16
Hello, I realize the error is common but hours of trying to find a solution have resulted in little.
I upgrade from raring to saucy and it broke.
So I figured I might as well change web servers since I've been wanting to anyway.
So now I'm running cherokee instead of lighttpd but I can't get rid of the "Bad response from server: (500 [error,getplugins]) " when rutorrent loads up. I've checked:
.rtorrent.rc scgi_local (using /tmp/rpc.socket)
rt config.php (in base folder and user folder)
php.ini open basedir directive
php is tested and working
I've tried the xmlrpc interpreter configured several different ways but this seems the most likely source of problem?!?
Any halp much appreciated!
 

das329717

Member
May 25, 2018
928
0
16
I'm not sure this is relevant:

[11/11/2013 07:32:11.048] (error) handler_fcgi.c:115 - PHP message: PHP Fatal
error: Call to undefined function json_encode() in
/var/rutorrent/rutorrent/plugins/retrackers/retrackers.php on line 71

It is the only error and in there only twice.
 

das329717

Member
May 25, 2018
928
0
16
WTF, I go away for a day and now the rutorrent interface is throwing this error instead:
Bad response from server: (404 [error,getplugins]) No input file specified.
[11.11.2013 19:19:02] Bad response from server: (500 [error,getuisettings]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>500 Internal Server Error</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>500 Internal Server Error</h1> <p><hr> Cherokee web server 1.2.101 (Ubuntu), Port 80 </body> </html>
 

das329717

Member
May 25, 2018
928
0
16
Thanks for the help so far. I'm afraid to report installing the php json package doesn't seem to have rectified the

Bad response from server: (404 [error,getplugins]) No input file specified.
[11.11.2013 19:19:02] Bad response from server: (500 [error,getuisettings]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>500 Internal Server Error</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>500 Internal Server Error</h1> <p><hr> Cherokee web server 1.2.101 (Ubuntu), Port 80 </body> </html>

cry.gif
 

Attachments

shwetha17

Member
May 24, 2018
785
0
16
Yet once - configure your server by the normal way. Your installation of php (or ruTorrent) is broken. Check web-server errors log.
 

das329717

Member
May 25, 2018
928
0
16
OK, so I reverted to nginx in desperation and some more days go by and another couple updates and it throws:
2013/11/30 13:01:13 [emerg] 20406#0: location "\.php$" cannot be inside the exact location "/50x.html" in /etc/nginx/sit
es-enabled/default:50

So I comment out that line in the nginx config and now rutorrent loads and functions fine with the exception of:
Code:
[01.12.2013 18:26:43] WebUI started.
[01.12.2013 18:26:48] Webserver user can't access 'stat' program. Some functionality will be unavailable.
[01.12.2013 18:26:48] rss: Some functionality will be unavailable. Webserver user can't access external program (curl).
[01.12.2013 18:26:49] rutracker_check: Plugin will not work. Webserver user must have execute access to the rtorrent session directory (/home/*/rtorrent/session/).
which I'm guessing are easily rectifiable...?
 

somus1735

Member
May 25, 2018
833
0
16
Sorry to bump a dead topic, but I found the solution and I figure it might be useful to anyone else with the same problem.
You have to install the package php5-json. json used to be included in php5-common but it was taken out in ubuntu 13.10 for some reason.

Code:
sudo apt-get install php5-json
sudo service apache2 restart