Cherokee and 'XML cannot be the whole program'

shwetha17

Member
May 24, 2018
785
0
16
Hey all, I've been running rutorrent for a while now fine on lighttpd, but I've had to swap to cherokee for other reasons and I can't seem to get rutorrent to work. I'm getting a JS error, XML cannot be the whole program. Not sure what this means, nor what to do.

I'd appriciate any help, so I can get back seeding!

Cheers
K
 

shwetha17

Member
May 24, 2018
785
0
16
Edit: I just figured that I needed to restart after enabling PHP, and now I'm getting more errors.

[23.10.2010 17:46:12] WebUI started.
[23.10.2010 17:46:27] Web-server can't access settings directory for read/write/execute. ruTorrent can't save own settings. (/var/sites/rutorrent/share/settings)
[23.10.2010 17:46:27] rTorrent's user can't access settings directory for read/write/execute. ruTorrent will not work. (/var/sites/rutorrent/share/settings)
[23.10.2010 17:46:27] rTorrent's user can't access 'stat' program. Some functionality will be unavailable.
[23.10.2010 17:46:29] Bad response from server: (503 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>503 Service Unavailable</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>503 Service Unavailable</h1> <p>
Cherokee web server 1.0.8 (Ubuntu), Port 80 </body> </html>
[23.10.2010 17:46:30] Autotools plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] Create plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] RSS plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] DataDir plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] Scheduler plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] Retrackers plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] Traffic plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[23.10.2010 17:46:30] Create plugin: Some functionality will be unavailable. rTorrent's user can't access 'pgrep' program.
[23.10.2010 17:46:30] RSS plugin: rTorrent's user can't access curl program. You will not be able to work with https feeds.
[23.10.2010 17:46:30] Unpack plugin: rTorrent's user can't access unzip program.
[23.10.2010 17:46:30] Unpack plugin: rTorrent's user can't access unrar program.

Again, not sure what to do, would appriciate the help! Thanks! cheesy.gif
 

Attachments

shwetha17

Member
May 24, 2018
785
0
16
Thanks for you reply dude.

I did the following:

Code:
sudo chown -R www-data:www-data rutorrent
sudo chmod -R 777 rutorrent
And I'm still getting these errors:

Code:
[24.10.2010 13:25:48] WebUI started.
[24.10.2010 13:25:50] Bad response from server: (503 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>503 Service Unavailable</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>503 Service Unavailable</h1> <p><hr> Cherokee web server 1.0.8 (Ubuntu), Port 80 </body> </html>
[24.10.2010 13:25:50] Autotools plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:25:50] Create plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:25:50] RSS plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:25:50] DataDir plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:25:50] Scheduler plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:25:50] Retrackers plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:25:50] Traffic plugin: rTorrent's user can't access php interpreter. Plugin will not work.
[24.10.2010 13:27:50] Bad response from server: (503 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>503 Service Unavailable</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>503 Service Unavailable</h1> <p><hr> Cherokee web server 1.0.8 (Ubuntu), Port 80 </body> </html>
?sad.gif
 

Attachments

jith45

Member
May 25, 2018
960
0
16
Which OS are you using? Ubuntu, Debian, Fedora, etc...

Are you sure your web server's user name and group is www-data?

Are you using SELinux?
 

das329717

Member
May 25, 2018
928
0
16
I think it's more a php issue. Wich version of php are you using? (type php --version in console)
 

shwetha17

Member
May 24, 2018
785
0
16
Quote
Which OS are you using? Ubuntu, Debian, Fedora, etc...

Are you sure your web server's user name and group is www-data?

Are you using SELinux?​


Perhaps it isn't called www-data, how do I check? I just followed the normal tutorials steps

I'm using Ubuntu Server 10

php --version
The program 'php' is currently not installed. You can install it by typing:
apt-get install php5-cli

I think I'm using php5-cgi......

php5-cgi --version
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/curl.so' - /usr/lib/php5/20090626+lfs/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/geoip.so' - /usr/lib/php5/20090626+lfs/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cgi-fcgi) (built: Sep 17 2010 13:41:45)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

huh.gif
 

Attachments

shwetha17

Member
May 24, 2018
785
0
16
Quote
you answer is right there smiley.gif

install php5 cli​



Okay, php5 and php5-cli installed, 90% of the issues solved tongue.gif

One left, this...

[25.10.2010 02:59:27] WebUI started.
[25.10.2010 02:59:32] Bad response from server: (503 [error,list]) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>503 Service Unavailable</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <h1>503 Service Unavailable</h1> <p>
Cherokee web server 1.0.8 (Ubuntu), Port 80 </body> </html>
 

Attachments

shwetha17

Member
May 24, 2018
785
0
16
It appears that the problem is due to the fact that the Cherokee ruTorrent wizard is broken. Can anyone help me with a manual configuration? I'm not sure, as it's different than apache2 and lighttpd surely...?

Thanks smiley.gif
 

Attachments

dsouvik215

Member
May 25, 2018
896
0
16
the cherokee rtorrent wizard works fine.

I've used it several times.

you made a mistake somewhere else.
 

shwetha17

Member
May 24, 2018
785
0
16
Quote
the cherokee rtorrent wizard works fine.

I've used it several times.

you made a mistake somewhere else.


I start cherokee-admin by invoking command cherokee-admin -b over ssh

I load IP:9090 in my browser

I click on vservers

I click on rutorrent

I click on behavior

I click on rule management

I click on New, Web App, rTorrent, Ext

I enter connection as 'unix:///tmp/rpc.socket' (leaving web directory alone, 'RPC2')

I click create.


now it works fine within the rutorrent config page. as soon as i click outside, I get this:

Code: [Select]
Unexpected Exception
invalid literal for int() with base 10: 'None'
We apologize for any inconveniences that this may have caused.

Traceback (most recent call last):
File "/usr/share/cherokee/admin/CTK/CTK/Server.py", line 161, in handle_request
content = self._do_handle()
File "/usr/share/cherokee/admin/CTK/CTK/Server.py", line 116, in _do_handle
ret = published (**published._kwargs)
File "/usr/share/cherokee/admin/PageVServers.py", line 322, in __call__
return page.Render()
File "/usr/share/cherokee/admin/CTK/CTK/Page.py", line 114, in Render
render = Container.Render(self)
File "/usr/share/cherokee/admin/CTK/CTK/Container.py", line 51, in Render
tmp = c.Render()
File "/usr/share/cherokee/admin/CTK/CTK/Box.py", line 51, in Render
render = Container.Render (self)
File "/usr/share/cherokee/admin/CTK/CTK/Container.py", line 51, in Render
tmp = c.Render()
File "/usr/share/cherokee/admin/CTK/CTK/Refreshable.py", line 75, in Render
render = self.build_func (**self.params)
File "/usr/share/cherokee/admin/PageVServers.py", line 284, in
refresh_r.register (lambda: self.PanelList(refresh_r, right).Render())
File "/usr/share/cherokee/admin/PageVServers.py", line 185, in __init__
vservers.sort (lambda x,y: cmp(int(x), int(y)))
File "/usr/share/cherokee/admin/PageVServers.py", line 185, in
vservers.sort (lambda x,y: cmp(int(x), int(y)))
ValueError: invalid literal for int() with base 10: 'None'

So by the looks of it something is going wrong. After I restart the cherokee-admin, now I've got this...

Quote
Ancient Configuration File

Cherokee-admin has detected a very old configuration file.

Most probably cherokee-admin is trying to read an old configuration file. Please, remove it so cherokee-admin can create a new one with the right format.

rm -f '/etc/cherokee/cherokee.conf'​


Now I've tried to 'upgrade' (even though its not old) as per the FAQ...

Quote
root@kieron-server:~# /usr/share/cherokee/admin/upgrade_config.py /etc/cherokee/cherokee.conf
Upgrading '/etc/cherokee/cherokee.conf' from 1000008 to 1000008.. Not upgraded.​



Now my entire webserver is down...

What's going on? sad.gif


Can someone attempt to teamviewer me to fix it or something? Driving me nuts, rutorrent down, missing all my rss!! :'(


Thanks
 

Attachments

dsouvik215

Member
May 25, 2018
896
0
16
try using a port instead of a unix socket.

(it will work with both, but cherokee is more stable with a port anyways)
 

shwetha17

Member
May 24, 2018
785
0
16
Quote
try using a port instead of a unix socket.

(it will work with both, but cherokee is more stable with a port anyways)


Sorry but how exactly do I do this? I've only ever done unix sockets

do i just change the rutorrent config and make up a port?

thanks
 

dsouvik215

Member
May 25, 2018
896
0
16
you change it in the webserver config, rutorrent config and rtorrent config


something like this in .rtorrent.rc
Code:
scgi_port = 127.0.0.1:5001



somegthing like this in rutorrent/conf/config.php (or rutorrent/conf/users/$USER/config.php)
Code:
$scgi_port = 5001;
$scgi_host = "127.0.0.1";

$XMLRPCMountPoint = "/RPC1";


then change it in cherokee's config as well
 

shwetha17

Member
May 24, 2018
785
0
16
Quote
you change it in the webserver config, rutorrent config and rtorrent config


something like this in .rtorrent.rc
Code:
scgi_port = 127.0.0.1:5001



somegthing like this in rutorrent/conf/config.php (or rutorrent/conf/users/$USER/config.php)
Code:
$scgi_port = 5001;
$scgi_host = "127.0.0.1";

$XMLRPCMountPoint = "/RPC1";


then change it in cherokee's config as well


Thanks for your reply but how do I edit cherokee config manually? I did exactly what you said and as soon as I changed cherokee config and restarted i got this again..

invalid literal for int() with base 10: 'None'
Traceback (most recent call last):
File "/usr/share/cherokee/admin/CTK/CTK/Server.py", line 161, in handle_request
content = self._do_handle()
File "/usr/share/cherokee/admin/CTK/CTK/Server.py", line 116, in _do_handle
ret = published (**published._kwargs)
File "/usr/share/cherokee/admin/PageVServers.py", line 322, in __call__
return page.Render()
File "/usr/share/cherokee/admin/CTK/CTK/Page.py", line 114, in Render
render = Container.Render(self)
File "/usr/share/cherokee/admin/CTK/CTK/Container.py", line 51, in Render
tmp = c.Render()
File "/usr/share/cherokee/admin/CTK/CTK/Box.py", line 51, in Render
render = Container.Render (self)
File "/usr/share/cherokee/admin/CTK/CTK/Container.py", line 51, in Render
tmp = c.Render()
File "/usr/share/cherokee/admin/CTK/CTK/Refreshable.py", line 75, in Render
render = self.build_func (**self.params)
File "/usr/share/cherokee/admin/PageVServers.py", line 284, in
refresh_r.register (lambda: self.PanelList(refresh_r, right).Render())
File "/usr/share/cherokee/admin/PageVServers.py", line 185, in __init__
vservers.sort (lambda x,y: cmp(int(x), int(y)))
File "/usr/share/cherokee/admin/PageVServers.py", line 185, in
vservers.sort (lambda x,y: cmp(int(x), int(y)))
ValueError: invalid literal for int() with base 10: 'None'

??sad.gif
 

Attachments

shwetha17

Member
May 24, 2018
785
0
16
I managed to fix it by going directly into cherokee.conf and changing things manually. Works fine now, the error message saying it couldn't connect to rtorrent seems to have been surpressed. I'm still getting this though;

Bad response from server: (503 [error,list])
 

shwetha17

Member
May 24, 2018
785
0
16
Quote
Quote
Bad response from server: (503 [error,list])​

Do you get that error all the time or just sometimes?​


It was happening all the time.

I managed to fix it by going into cherokee.conf file, and editing it to use the ports rather than the unix socket, manually. it all works perfectly now - thank you all for your help.