View previous topic :: View next topic |
Author |
Message |
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Mon Jan 25, 2010 1:24 pm Post subject: [solved] aria2 + xmlrpc -> connection error |
|
|
I'm trying to rewrite one of my download-handlers, using aria2 + xmlrpc, but I'm getting a (imho) weird error.
server start wrote: | aria2c -D -U ${agent} --load-cookies=${cookies} --enable-xml-rpc --xml-rpc-listen-port=${port} --xml-rpc-user=${USER} --xml-rpc-passwd="${passwd}" |
command wrote: | aria2rpc --server 'localhost' --port=${port} --user=${USER} --passwd="${passwd}" -o "${target}/${filetype}/${filename}" addUri "${url}" |
error wrote: | /usr/lib64/ruby/1.8/net/http.rb:560:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
from /usr/lib64/ruby/1.8/net/http.rb:560:in `open'
from /usr/lib64/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib64/ruby/1.8/timeout.rb:62:in `timeout'
from /usr/lib64/ruby/1.8/timeout.rb:93:in `timeout'
from /usr/lib64/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib64/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/lib64/ruby/1.8/net/http.rb:548:in `start'
from /usr/lib64/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc'
from /usr/lib64/ruby/1.8/xmlrpc/client.rb:420:in `call2'
from /usr/lib64/ruby/1.8/xmlrpc/client.rb:410:in `call'
from /usr/bin/aria2rpc:243 |
The relevant line (243) of aria2rpc reads Quote: | result=client.call("aria2."+command, resources, options) | . Adding connection-timeouts didn't help.
aria2 is (latest version, but also happens with 1.7.0 from portage) Quote: | [ebuild R ] net-misc/aria2-1.8.1 USE="bittorrent expat metalink nls scripts sqlite ssl xmlrpc -ares -gnutls -test" |
ruby is Quote: | [ebuild R ] dev-lang/ruby-1.8.7_p249 USE="ssl threads -berkdb -debug -doc -emacs -examples -gdbm -ipv6 -rubytests -socks5 -tk -xemacs" |
Any help welcome, thanks
Last edited by avx on Sun Mar 28, 2010 6:24 am; edited 1 time in total |
|
Back to top |
|
|
tatsuhiro_t n00b
Joined: 25 Mar 2010 Posts: 1
|
Posted: Thu Mar 25, 2010 3:39 pm Post subject: |
|
|
There is a chance that aria2c might listens ipv6 address. It seems ruby cannot detect this, so try --server '::1' for aria2rpc instead of --server 'localhost'.
Or, disable ipv6 in aria2c by giving --disable-ipv6 to aria2c. |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Sun Mar 28, 2010 6:23 am Post subject: |
|
|
Thank you, using ::1 works |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|