Crashing Web Server

das329717

Member
May 25, 2018
928
0
16
Hello.

I'm having unpleasant problem with my ruTorrent. After I start it up, I can add torrents, watch then download/upload, but after some time, ruTorrent stops my web server daemon, showing monit:

Code:
[12.11.2012 23:22:39] WebUI started.
[12.11.2012 23:22:52] Bad response from server: (0 [error,list])
Refreshing webpage shows something like:

Code:
[12.11.2012 23:23:30] WebUI started.
[12.11.2012 23:23:32] Bad response from server: (0 [error,getplugins])
[12.11.2012 23:23:33] Bad response from server: (0 [error,getuisettings])
Then, I have to reboot my web server and it works fine for few minutes, before it crashes again. It's problematic, because I have to add torrents fast, and immediately close tab with ruTorrent to save myself from typing unix commands. :/

I had this problem from the moment I install rTorrent/libtorrent (0.9.2/0.13.2) and ruTorrent (3.4), so it's not connected with any plugins (then I didn't have any).

I'm using lighttpd, PHP/5.4.8, on newest embedded version of NAS4Free distro. My .rtorrent.rc:
Code:
#SSL trackers:
network.http.ssl_verify_peer.set=0

# Maximum and minimum number of peers to connect to per torrent.
min_peers = 20
max_peers = 60

# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 40
max_peers_seed = 80

# Maximum number of simultanious uploads per torrent.
max_uploads = 80

# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 0

# Default directory to save the downloaded torrents.
directory = /mnt/STORAGE-1/data/torrent/torrents/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /mnt/STORAGE-1/data/torrent/.rtsession/
scgi_port = 127.0.0.1:5000

# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=100M

# The ip address reported to the tracker.
#ip = 127.0.0.1
#ip = rakshasa.no

# The ip address the listening socket and outgoing connections is
# bound to.
#bind = 127.0.0.1
#bind = rakshasa.no

# Port range to use for listening.
port_range = 55556-55557

# Start opening ports at a random position within the port range.
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = yes

pieces.memory.max.set = 3500M
network.max_open_files.set = 192
network.http.max_open.set = 32

# Advanced Settings
system.file.max_size.set = -1
pieces.preload.type.set = 1
pieces.preload.min_size.set = 262144
pieces.preload.min_rate.set = 5120
network.send_buffer.size.set = 1M

network.receive_buffer.size.set = 131072
trackers.use_udp.set = yes

dht = disable

peer_exchange = no

My config.php file:
Code:
<?php
// configuration parameters

// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
$httpIP = null; // IP string. Or null for any.

@define('RPC_TIME_OUT', 30, true); // in seconds

@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);

// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);

$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or leave blank to disable logging)

$saveUploadedTorrents = true; // Save uploaded torrents to profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents in profile/torrents directory or make unique name

$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;

$scgi_port = 5000;
$scgi_host = "127.0.0.1";

// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";

$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!

$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
);

$localhosts = array( // list of local interfaces
"127.0.0.1",
"localhost",
);

$profilePath = '../share'; // Path to user profiles
$profileMask = 0777; // Mask for files and directory creation in user profiles.
// Both Webserver and rtorrent users must have read-write access to it.
// For example, if Webserver and rtorrent users are in the same group then the value may be 0770.

?>
I would appreciate any help, this issue drives me nuts. Thanks for reading!