No connection to rTorrent. Check if it is really running

Hey all,

So I’ve read a bunch of threads on this site and over Google, but still I run into this issue. I’ll say straight up, I am very much a beginner in Linux anything.

I’ve verified the ports match but I guess maybe I’ve done it or something else wrong? I’ve restarted the server multiple times as well.

If anyone needs/wants more info than whats below, more than happy to provide.

Greatly appreciate any and all help!

Here are the outputs of the files:

This is /srv/rutorrent/conf/config.php

<?php
        // configuration parameters

        // for snoopy client
        @define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.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', 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);

        $schedule_rand = 10;                    // rand for schedulers start, +0..X seconds

        $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 = 32139;
        $scgi_host = "127.0.0.1";

     $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.

        $tempDirectory = null;                  // Temp directory. Absolute path with trail slash. If null, then autodetect will be used.

        $canUseXSendFile = false;               // If true then use X-Sendfile feature if it exist

        $locale = "UTF8";

This one is `/srv/rutorrent/conf/users//config.php

   >  <?php
>       @define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0', true);
>       @define('HTTP_TIME_OUT', 30, true);
>       @define('HTTP_USE_GZIP', true, true);
>       $httpIP = null;
>       @define('RPC_TIME_OUT', 5, true);
>       @define('LOG_RPC_CALLS', false, true);
>       @define('LOG_RPC_FAULTS', true, true);
>       @define('PHP_USE_GZIP', false, true);
>       @define('PHP_GZIP_LEVEL', 2, true);
>       $schedule_rand = 10;
>       $do_diagnostic = true;
>       $log_file = '/tmp/errors.log';
>       $saveUploadedTorrents = true;
>       $overwriteUploadedTorrents = false;
>       $topDirectory = '/home/user1/';
>       $forbidUserSettings = false;
>       $scgi_port = 32139;
>       $scgi_host = "localhost";
>       $XMLRPCMountPoint = "/RPC2";
>       $pathToExternals = array("php" => '',"curl" => '',"gzip" => '',"id" => '',"stat" => '',);
>       $localhosts = array("127.0.0.1", "localhost",);
>       $profilePath = '../share';
>       $profileMask = 0777;
>       $autodlPort = 52452;
>     $diskuser = "/home";

And this is the .rtorrent.rc

    #############################################################################
    # A minimal rTorrent configuration that provides the basic features
    # you want to have in addition to the built-in defaults.
    #
    # See https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
    # for an up-to-date version.
    #############################################################################


    ## Instance layout (base paths)
    method.insert = cfg.basedir,  private|const|string, (cat,"/home/USERNAME/rtorrent/")
    method.insert = cfg.download, private|const|string, (cat,(cfg.basedir),"download/")
    method.insert = cfg.logs,     private|const|string, (cat,(cfg.basedir),"log/")
    method.insert = cfg.logfile,  private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
    method.insert = cfg.session,  private|const|string, (cat,(cfg.basedir),".session/")
    method.insert = cfg.watch,    private|const|string, (cat,(cfg.basedir),"watch/")


    ## Create instance directories
    execute.throw = sh, -c, (cat,\
        "mkdir -p \"",(cfg.download),"\" ",\
        "\"",(cfg.logs),"\" ",\
        "\"",(cfg.session),"\" ",\
        "\"",(cfg.watch),"/load\" ",\
        "\"",(cfg.watch),"/start\" ")


    ## Listening port for incoming peer traffic (fixed; you can also randomize it)
    network.port_range.set = 32130-32150
    network.port_random.set = no


    ## Tracker-less torrent and UDP tracker support
    ## (conservative settings for 'private' trackers, change for 'public')
    dht.mode.set = disable
    protocol.pex.set = no

    trackers.use_udp.set = no
    ## Peer settings
    throttle.max_uploads.set = 100
    throttle.max_uploads.global.set = 250

    throttle.min_peers.normal.set = 20
    throttle.max_peers.normal.set = 60
    throttle.min_peers.seed.set = 30
    throttle.max_peers.seed.set = 80
    trackers.numwant.set = 80

    protocol.encryption.set = allow_incoming,try_outgoing,enable_retry


    ## Limits for file handle resources, this is optimized for
    ## an `ulimit` of 1024 (a common default). You MUST leave
    ## a ceiling of handles reserved for rTorrent's internal needs!
    network.http.max_open.set = 50
    network.max_open_files.set = 600
    network.max_open_sockets.set = 300


    ## Memory resource usage (increase if you have a large number of items loaded,
    ## and/or the available resources to spend)
    pieces.memory.max.set = 1800M
    network.xmlrpc.size_limit.set = 4M


    ## Basic operational settings (no need to change these)
    session.path.set = (cat, (cfg.session))
    directory.default.set = (cat, (cfg.download))
    log.execute = (cat, (cfg.logs), "execute.log")
    #log.xmlrpc = (cat, (cfg.logs), "xmlrpc.log")
    execute.nothrow = sh, -c, (cat, "echo >",\
        (session.path), "rtorrent.pid", " ",(system.pid))

    ## Other operational settings (check & adapt)
    encoding.add = utf8
    system.umask.set = 0027
    system.cwd.set = (directory.default)
    network.http.dns_cache_timeout.set = 25
    schedule2 = monitor_diskspace, 15, 60, ((close_low_diskspace, 1000M))
    #pieces.hash.on_completion.set = no
    #view.sort_current = seeding, greater=d.ratio=
    #keys.layout.set = qwerty
    #network.http.capath.set = "/etc/ssl/certs"
    #network.http.ssl_verify_peer.set = 0
    #network.http.ssl_verify_host.set = 0


    ## Some additional values and commands
    method.insert = system.startup_time, value|const, (system.time)
    method.insert = d.data_path, simple,\
        "if=(d.is_multi_file),\
            (cat, (d.directory), /),\
            (cat, (d.directory), /, (d.name))"
    method.insert = d.session_file, simple, "cat=(session.path), (d.hash), .torrent"


    ## Watch directories (add more as you like, but use unique schedule names)
    ## Add torrent
    schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
    ## Add & download straight away
    schedule2 = watch_start, 10, 10, ((load.start_verbose, (cat, (cfg.watch), "start/*.torrent")))


    ## Run the rTorrent process as a daemon in the background
    ## (and control via XMLRPC sockets)
    #system.daemon.set = true
    #network.scgi.open_local = (cat,(session.path),rpc.socket)
    #execute.nothrow = chmod,770,(cat,(session.path),rpc.socket)

    ## Logging:
    ##   Levels = critical error warn notice info debug
    ##   Groups = connection_* dht_* peer_* rpc_* storage_* thread_* tracker_* torrent_*
    print = (cat, "Logging to ", (cfg.logfile))
    log.open_file = "log", (cfg.logfile)
    log.add_output = "info", "log"
    #log.add_output = "tracker_debug", "log"

    ### END of rtorrent.rc ###

Here is the output of ps -edf | grep rtorrent

root      2345  2552  0 04:20 pts/4    00:00:00 grep rtorrent
root     16610     1  0 03:57 ?        00:00:00 SCREEN -dmsf rtorrent rtorrent
root     16611 16610  0 03:57 pts/5    00:00:00 rtorrent
user1 17430     1  0 03:51 ?        00:00:00 /usr/bin/SCREEN -d -m -fa -S rtorrent /usr/bin/rtorrent
user1  17439 17430  0 03:51 pts/3    00:00:00 /usr/bin/rtorrent

Can see its active on the port:

rtorrent  15871     user1   13u  IPv4 3750564      0t0  TCP *:33607 (LISTEN)
rtorrent  15871     user1   14u  IPv4 3750563      0t0  TCP 127.0.0.1:32139 (LISTEN)
rtorrent  16611        root   13u  IPv4 2939019      0t0  TCP *:32130 (LISTEN)