Plugin create problem

somus1735

Member
May 25, 2018
833
0
16
Hello guys.
I have a prombem when create torrent. I have error Bad response from server: (0 [error,startcreate])

/var/www/file/rutorrent/conf/config.php
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);

@define('RPC_TIME_OUT', 5, 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 make empty to disable logging)

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

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

$scgi_port = 3235;
$scgi_host = "localhost";

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

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

$pathToExternals = array(
"php" => '/usr/bin/php', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '/usr/bin/curl', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '/usr/bin/gzip', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '/usr/bin/id', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '/usr/bin/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 users profiles
$profileMask = 0777; // Mask for files and directory creation in users profiles.
// Both web-server and rtorrent users must have read-write access to its.
// For example, if web-server and rtorrent users are in some group then value may be 0770
?>


/var/www/rutorrent/plugins/create/conf.php
Code:
<?php
// configuration parameters

@define('MAX_CONSOLE_SIZE',25,true);

$useExternal = "mktorrent";
$pathToCreatetorrent = "/usr/bin/mktorrent";
$pathToExternals["pgrep"] = "/usr/bin/pgrep";

?>
 

dsouvik215

Member
May 25, 2018
896
0
16
perhaps try changing to single quotes ' intead of " as the default config file has. other than that, i dunno.
 

jith45

Member
May 25, 2018
960
0
16
I'm changed to single quotes as the default config file. Nothing changed.

In log file
Quote
PHP Fatal error: Call to undefined function json_encode() in /var/www/localhost/htdocs/file/rutorrent/plugins/create/action.php on line 161​


161 line in action.php

Quote
cachedEcho(json_encode($ret),"application/json");​
 

das329717

Member
May 25, 2018
928
0
16
Check 1) installation - web-server must have access for execute *.sh files 2) web-server's error log.