Getting Bad Response from Server errors while rutorrent page is open

das329717

Member
May 25, 2018
928
0
16
I recently started receiving these errors in the rutorrent log,

Quote
[27.07.2013 19:44:45] Bad response from server: (0 [error,list])
[27.07.2013 19:49:48] Bad response from server: (0 [error,list])
[27.07.2013 19:54:49] Bad response from server: (0 [error,list])
[27.07.2013 19:59:51] Bad response from server: (0 [error,list])
[27.07.2013 20:04:52] Bad response from server: (0 [error,list])
[27.07.2013 20:09:53] Bad response from server: (0 [error,list])
[27.07.2013 20:19:56] Bad response from server: (0 [error,list])
[27.07.2013 20:24:56] Bad response from server: (0 [error,list])
[27.07.2013 20:34:56] Bad response from server: (0 [error,gettotal])
[27.07.2013 20:39:56] Bad response from server: (0 [error,gettotal])
[27.07.2013 20:49:57] Bad response from server: (0 [error,gettotal])
[27.07.2013 20:54:57] Bad response from server: (0 [error,gettotal])
[27.07.2013 20:59:57] Bad response from server: (0 [error,gettotal])
[27.07.2013 21:04:58] Bad response from server: (0 [error,list])
[27.07.2013 21:09:58] Bad response from server: (0 [error,list])
[27.07.2013 21:14:58] Bad response from server: (0 [error,gettotal])​


In /var/log/apache2/error.log, the only issue I see is this:
Quote
error] [client 10.10.10.254] PHP Warning: opendir(../plugins): failed to open dir: Permission denied in /var/www/rutorrent/php/getplugins.php on line 222, referer: https://server/rutorrent/


However, the permissions are 755 www-data for both owner and group. Either way, I am not sure what is causing the errors, as I have disabled all unnecessary plugins that I don't use, and yet the issue still persists.

Is there any alternative logging, or additional logging I can enable to verify what is causing these issues?
 

das329717

Member
May 25, 2018
928
0
16
Turn off selinux.
Can you explain more (or link to a wiki) about why turning off selinux would be helpful in this situation? I don't see how disabling selinux/apparmor would help solve the issue if the issue wasn't present when I first installed rtorrent & rutorrent. This only came up within the past week (and a half). It hasn't been an issue from the start.

If you are referring to apparmor, apparmor doesn't modify or conflict with httpd/apache2:
Quote
$ sudo service apparmor status
apparmor module is loaded.
14 profiles are loaded.
14 profiles are in enforce mode.
/sbin/dhclient
/usr/bin/freshclam
/usr/lib/NetworkManager/nm-dhcp-client.action
/usr/lib/connman/scripts/dhclient-script
/usr/lib/cups/backend/cups-pdf
/usr/lib/lightdm/lightdm/lightdm-guest-session-wrapper
/usr/lib/lightdm/lightdm/lightdm-guest-session-wrapper//chromium_browser
/usr/sbin/cupsd
/usr/sbin/dhcpd
/usr/sbin/mysqld-akonadi
/usr/sbin/mysqld-akonadi///usr/sbin/mysqld
/usr/sbin/named
/usr/sbin/tcpdump
system_tor
0 profiles are in complain mode.
5 processes have profiles defined.
5 processes are in enforce mode.
/usr/bin/freshclam (1974)
/usr/sbin/cupsd (6473)
/usr/sbin/dhcpd (1627)
/usr/sbin/mysqld-akonadi///usr/sbin/mysqld (26550)
/usr/sbin/named (1554)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.​


EDIT: Looking at it further, selinux doesn't appear to be running on this machine at all, I used several different status commands to see if it is running, and they all return back a negative. AppArmor has been torn down, and the issue still appears as well.

EDIT2: Asked in #ubuntu-server received this response:
[11:48] <jdstrand> Iorge: selinux is not enabled by default in Ubuntu
[11:49] <jdstrand> Iorge: apparmor is used instead, but we don't confine apache by default

EDIT3:
apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built: Jul 12 2013 13:18:14
Linux server 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 13.04
rtorrent 0.9.3-2 amd64 ncurses BitTorrent client based on LibTorrent from rakshasa
libtorrent-rasterbar7 0.16.7-0ubuntu1 amd64 C++ bittorrent library by Rasterbar Software
libtorrent11 0.13.3-1 amd64 a C++ BitTorrent library by Rakshasa
python-libtorrent 0.16.7-0ubuntu1 amd64 Python bindings for libtorrent-rasterbar

EDIT4:
Some edited form of the config file for apache2:
Quote
<Location /rutorrent/>
AuthType Digest
AuthName "seedbox"
AuthDigestDomain /rutorrent/ https://127.0.0.1/rutorrent/
AuthDigestProvider file
AuthUserFile "pathtofile"
Require valid-user
SetEnv R_ENV "/var/www/rutorrent"
</Location>​




Hopefully this is able to help solve this issue.