Bad response from server: (403 [error,getplugins])

somus1735

Member
May 25, 2018
833
0
16
I installed ruTorrent by following this guide. When rTorrent starts it says:

(12:26:13) Using 'epoll' based polling.
(12:26:13) XMLRPC initialized with 519 functions.

The ruTorrent web interface comes up, but the Logger shows:

Code:
[22.08.2010 12:12:15] WebUI started.
[22.08.2010 12:12:15] Bad response from server: (403 [error,getplugins]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
[22.08.2010 12:12:15] Bad response from server: (403 [error,getuisettings]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
The only thing Google returns for this error is a few non-english forum posts.

rtorrent/libtorrent: 0.8.6/0.12.6
ruTorrent: from SVN as of a few weeks ago (the "About" box does not tell you the version... tongue.gif)
 

Attachments

jith45

Member
May 25, 2018
960
0
16
my guess is you have one or more of the following issues:


improper webserver configuration
old or improper version of php (centos is famous for this)
missing command line php install.

please give me the output of:

Code:
which php
Code:
php -v
and post any webserver log errors
 

somus1735

Member
May 25, 2018
833
0
16
Neither of the commands you provide return results. As the guide I used said to install php-cgi however:

# which php-cgi
/usr/bin/php-cgi
#

# php-cgi -v
PHP 5.3.2-2 with Suhosin-Patch (cgi-fcgi) (built: Jul 18 2010 21:29:28)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.31, Copyright (c) 2007-2010, by SektionEins GmbH
#

lighttpd error log has a bunch of errors like this in it:

2010-08-22 14:36:41: (http_auth.c.1010) username rtor
2010-08-22 14:36:41: (http_auth.c.1011) realm Authorized users only
2010-08-22 14:36:41: (http_auth.c.1012) nonce XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2010-08-22 14:36:41: (http_auth.c.1013) uri /rutorrent/php/getsettings.php
2010-08-22 14:36:41: (http_auth.c.1014) algorigthm
2010-08-22 14:36:41: (http_auth.c.1015) qop auth
2010-08-22 14:36:41: (http_auth.c.1016) cnonce XXXXXXXXXXXXXXXX
2010-08-22 14:36:41: (http_auth.c.1017) nc 0000003e
2010-08-22 14:36:41: (http_auth.c.1018) response XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2010-08-22 14:36:41: (http_auth.c.1164) digest: auth ok
 

shwetha17

Member
May 24, 2018
785
0
16
The tuto you use is old (February 13, 10), you should use the one showing in this forum.

Anyway, you need php and php-cli to get your system work!

++
 

jith45

Member
May 25, 2018
960
0
16
Quote
Neither of the commands you provide return results. As the guide I used said to install php-cgi however:

# which php-cgi
/usr/bin/php-cgi
#

# php-cgi -v
PHP 5.3.2-2 with Suhosin-Patch (cgi-fcgi) (built: Jul 18 2010 21:29:28)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Suhosin v0.9.31, Copyright (c) 2007-2010, by SektionEins GmbH
#

lighttpd error log has a bunch of errors like this in it:

2010-08-22 14:36:41: (http_auth.c.1010) username rtor
2010-08-22 14:36:41: (http_auth.c.1011) realm Authorized users only
2010-08-22 14:36:41: (http_auth.c.1012) nonce XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2010-08-22 14:36:41: (http_auth.c.1013) uri /rutorrent/php/getsettings.php
2010-08-22 14:36:41: (http_auth.c.1014) algorigthm
2010-08-22 14:36:41: (http_auth.c.1015) qop auth
2010-08-22 14:36:41: (http_auth.c.1016) cnonce XXXXXXXXXXXXXXXX
2010-08-22 14:36:41: (http_auth.c.1017) nc 0000003e
2010-08-22 14:36:41: (http_auth.c.1018) response XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2010-08-22 14:36:41: (http_auth.c.1164) digest: auth ok


that's what happens when you follow old guides from people who don't know what they are doing.


yes, you can use php-cgi for lighttpd as the php interpreter but you STILL must install php-cli and set up rutorrent with the proper config
 

somus1735

Member
May 25, 2018
833
0
16
Quote
The tuto you use is old (February 13, 10), you should use the one showing in this forum.​

Exactly which tutorial would you suggest? I am running Debian testing, not Ubuntu. Full-auto do-everything scripts are not likely to work.

Quote
Anyway, you need php and php-cli to get your system work!​


There is no "php" package. I have now installed php-cli, restarted lighttpd and gotten the same result.

Quote
that's what happens when you follow old guides from people who don't know what they are doing.​


Can you be more specific? None of the comments on that page indicate that the author doesn't know what he's doing.

Quote
set up rutorrent with the proper config​


I just went through this section of the wiki and specified paths for the $pathToExternals items. I also created a user directory under users and put a copy of my config.php in there. Restarted lighttpd again and still the same error.
 

das329717

Member
May 25, 2018
928
0
16
i'm not sure what is wrong bro, all i can say is you've done something wrong...without more info i'd only be able to speculate.


it looks like webserver permissions perhaps.



also, did you make sure to chown -R www-data:www-data rutorrent/share/
 

das329717

Member
May 25, 2018
928
0
16
Dude,

You need this package for debian :
Code:
apt-get install php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-geoip php5-sqlite php5-xmlrpc
If php -v still not return anything, it's not normal. You should have something like this :
Code:
PHP 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 4 2010 06:06:53)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Try to take a look of this tuto

++
 

dsouvik215

Member
May 25, 2018
896
0
16
Quote
You need this package for debian :
Code:
apt-get install php5 php5-cgi php5-cli php5-common php5-curl php5-dev php5-geoip php5-sqlite php5-xmlrpc​

ruTorrent doesnt use packages php5-curl, php5-sqlite, php5-dev and php5-xmlrpc. Package php5-geoip is used for plugin GeoIP only.
 

jith45

Member
May 25, 2018
960
0
16
Quote
ruTorrent doesnt use packages php5-curl, php5-sqlite, php5-dev and php5-xmlrpc. Package php5-geoip is used for plugin GeoIP only.​


Actually I only copy/paste packages show in the tuto. But thanks Novik, good to know! wink.gif

Code:
apt-get install php5 php5-cgi php5-cli php5-common
and for GeoIP plugin :

Code:
apt-get install php5-geoip
++
 

Attachments