You are not logged in.

#1 2011-04-30 20:49:29

Xehoz
Member
From: Portugal
Registered: 2010-07-27
Posts: 31

[solved] pyLoad - connection refused from remote location

This may be enteriely related to the program, nevertheless, there's a good chance it's network related.
I configured pyLoadCore earlier this evening and it's acessible by cli/gui/webinterface from the server. However I can't seem to connect with it from a remote device (laptop and android).

Android, pyLoadCli and pyLoadGui just states than it can't establish a connection to (this case) databox:7227
Chromium states that the connection is refused.
It's the same if I insert 192.168.1.86:7227 or :8008.

I can ping, ssh, vnc, nfs, mpd (etc) the target computer. For some reason, pyLoad related connections are refused.

pyLoadCore starting up:

 [xehoz@databox ~]$ pyLoadCore 
30.04.2011 21:26:35 INFO      Using home directory: /home/xehoz/.pyload
30.04.2011 21:26:36 INFO      HotFolder loaded, activated False
30.04.2011 21:26:36 INFO      ExternalScripts loaded, activated True
30.04.2011 21:26:36 INFO      UpdateManager loaded, activated True
30.04.2011 21:26:36 INFO      UnRar loaded, activated False
30.04.2011 21:26:36 INFO      ClickAndLoad loaded, activated True
30.04.2011 21:26:36 INFO      MergeFiles loaded, activated True
30.04.2011 21:26:36 INFO      IRCInterface loaded, activated False
30.04.2011 21:26:36 INFO      CaptchaTrader loaded, activated True
30.04.2011 21:26:36 INFO      Downloadtime: True
30.04.2011 21:26:36 INFO      Starting ThriftBackend: databox:7227
30.04.2011 21:26:36 INFO      Free space: 129.88 GiB
30.04.2011 21:26:36 INFO      Starting builtin webserver: databox:8008
30.04.2011 21:26:38 INFO      No Updates for pyLoad
30.04.2011 21:26:39 INFO      No plugin updates available

ps ux:

[xehoz@databox ~]$ ps ux | g pyLoad
xehoz     2800  0.2  1.5 292616 31872 pts/1    Sl+  21:26   0:01 python2 /usr/bin/pyLoadCore

ports (netstat -nape --inet):

 [xehoz@databox ~]$ oport | g py
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 127.0.0.1:9666          0.0.0.0:*               LISTEN      1000       211066     2800/python2        
tcp        0      0 127.0.0.1:8008          0.0.0.0:*               LISTEN      1000       210790     2800/python2        
tcp        0      0 127.0.0.1:7227          0.0.0.0:*               LISTEN      1000       211048     2800/python2

hosts.allow (I even tried python2: ALL):

 [xehoz@databox ~]$ cat /etc/hosts.allow
#
# /etc/hosts.allow
#
pyLoadCore: ALL

hosts

 [xehoz@databox ~]$ cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost databox
::1             localhost.localdomain   localhost databox

# End of file

pyload.conf

version: 1 

remote - "Remote":
    bool nolocalauth : "No authentication on local connections" = True
    bool xmlrpc : "Activate old XMLRPC Backend" = False
    int port : "Port" = 7227
    ip listenaddr : "Adress" = databox

log - "Log":
    bool file_log : "File Log" = True
    folder log_folder : "Folder" = Logs
    int log_count : "Count" = 5

permission - "Permissions":
    str group : "Groupname" = users
    bool change_dl : "Change Group and User of Downloads" = False
    bool change_file : "Change file mode of downloads" = True
    str user : "Username" = xehoz
    str file : "Filemode for Downloads" = 0644
    bool change_group : "Change group of running process" = False
    str folder : "Folder Permission mode" = 0755
    bool change_user : "Change user of running process" = False

general - "General":
    en;de;it;pl;es;cs;fr language : "Language" = en
    folder download_folder : "Download Folder" = ~./downloads
    bool checksum : "Use Checksum" = False
    bool folder_per_package : "Create folder for each package" = False
    bool skip_existing : "Skip already existing files" = False
    bool debug_mode : "Debug Mode" = False
    int min_free_space : "Min Free Space (MB)" = 200
    int renice : "CPU Priority" = 0

ssl - "SSL":
    file cert : "SSL Certificate" = ssl.crt
    bool activated : "Activated" = True
    file key : "SSL Key" = ssl.key

webinterface - "Webinterface":
    str template : "Template" = default
    bool activated : "Activated" = True
    builtin;threaded;fastcgi server : "Server" = builtin
    ip host : "IP" = databox
    bool https : "Use HTTPS" = False
    int port : "Port" = 8008

proxy - "Proxy":
    str username : "Username" = None
    str address : "Address" = "localhost"
    password password : "Password" = None
    http;socks4;socks5 type : "Protocol" = http
    int port : "Port" = 7070

reconnect - "Reconnect":
    time endTime : "End" = 0:00
    bool activated : "Use Reconnect" = True
    str method : "Method" = /usr/local/bin/meorenew
    time startTime : "Start" = 0:00

download - "Download":
    int max_downloads : "Max Parallel Downloads" = 3
    bool limit_speed : "Limit Download Speed" = False
    str interface : "Download interface to bind (ip or Name)" = None
    int max_speed : "Max Download Speed in kb/s" = -1
    bool proxy : "Use Proxy" = False
    int chunks : "Max connections for one download" = 3

downloadTime - "Download Time":
    time start : "Start" = 0:00
    time end : "End" = 0:00

Last edited by Xehoz (2011-04-30 21:10:20)

Offline

#2 2011-04-30 21:10:05

Xehoz
Member
From: Portugal
Registered: 2010-07-27
Posts: 31

Re: [solved] pyLoad - connection refused from remote location

Apparently, these lines in pyload.conf relating to IP

    ip listenaddr : "Adress" = databox
    ip host : "IP" = databox

need to be:

    ip listenaddr : "Adress" = 0.0.0.0
    ip host : "IP" = 0.0.0.0

When they refer to IP, turns out they are actually refering to interfaces. There are quite a few misspelled words in pyLoad, so I figure something got lost in translation, as it wasnt' very clear that's what they wanted in the web interface options and in the "friendly" setup (pyLoadCore -s).

So it's solved. I guess I'll wiki it. This wasn't worth a forum post...

Last edited by Xehoz (2011-04-30 21:10:38)

Offline

Board footer

Powered by FluxBB