A network error has occurred

70 views
Skip to first unread message

jack.benny

unread,
May 3, 2009, 3:05:29 AM5/3/09
to n2hell
rtorrent, n2hell and firefox are all on the same linux computer.

start rtorrent
start n2hell
browse to 127.0.0.1:8888
in browser, "A network error has occurred" keeps showing up, no
torrents listed.

n2hell logs are empty.
n2hell spits these errors to stdout:

Caused by: redstone.xmlrpc.XmlRpcException: A network error
occurred.
at redstone.xmlrpc.XmlRpcClient.endCall(Unknown
Source)
at redstone.xmlrpc.XmlRpcClient.invoke(Unknown
Source)
at n2hell.torrent.Multicall$TorrentCall.execute(Multicall.java:
118)
at n2hell.torrent.Rtorrent07.getTorrentsList(Rtorrent07.java:
322)
at n2hell.torrent.TorrentManager.getTorrentsList
(TorrentManager.java:200)
at java.lang.reflect.Method.invoke(libgcj.so.
90)
...9
more
Caused by: java.io.IOException: Broken
pipe
at java.io.BufferedOutputStream.flush(libgcj.so.
90)
at n2hell.xmlrpc.protocol.scgi.ScgiConnection$1.flush
(ScgiConnection.java:109)
at java.io.BufferedOutputStream.flush(libgcj.so.
90)
at java.io.OutputStreamWriter.writeChars(libgcj.so.
90)
at java.io.OutputStreamWriter.write(libgcj.so.
90)
at java.io.BufferedWriter.localFlush(libgcj.so.
90)
at java.io.BufferedWriter.flush(libgcj.so.
90)
at redstone.xmlrpc.XmlRpcClient.endCall(Unknown
Source)
...14
more
3-May-09 2:55:17 AM n2hell.http.RpcServlet
doPost
SEVERE:
null
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(libgcj.so.
90)
at n2hell.http.JSONRPC.call(JSONRPC.java:
100)
at n2hell.http.RpcServlet.doPost(RpcServlet.java:
82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
802)
at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:
1890)
at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:
1853)
at Acme.Serve.Serve$ServeConnection.run(Serve.java:
1686)
at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:
1186)
at java.lang.Thread.run(libgcj.so.
90)
Caused by: redstone.xmlrpc.XmlRpcException: A network error
occurred.

Thanks in advance for any leads.

- Mike

Vladimir Solomenchuk

unread,
May 3, 2009, 3:34:33 AM5/3/09
to n2hell
Did you activated xml-rpc in rtorrent and properly configured n2hell?

jack.benny

unread,
May 3, 2009, 2:14:45 PM5/3/09
to n2hell
Thanks for the quick response.

I believe rtorrent is properly configured, I suspect there is
something wrong with my configuration of n2hell, or possible a
permissions issue. Do these errors suggest what changes I could try in
my configuration?

rTorrent 0.8.2/0.12.2
reports
...
(14:04:32) Using 'epoll' based polling.
(14:04:32) XMLRPC initialized with 444 functions.

on startup

n2hell.sh reports
3-May-09 2:07:29 PM n2hell.torrent.ProcessPool
configure
INFO: connecting to
default

3-May-09 2:07:44 PM n2hell.torrent.ProcessPool configure
INFO: connected to default
[Sun May 03 14:07:44 GMT-04:00 2009] Servlet overriden by
n2hell.http.JSONRPCServlet@8f1498, for path:/system
[Sun May 03 14:07:44 GMT-04:00 2009] Servlet overriden by
n2hell.http.RpcServlet@66df80, for path:/rpc
[Sun May 03 14:07:44 GMT-04:00 2009] Servlet overriden by
n2hell.http.UploadServlet@49fed0, for path:/upload
POINT YOUR BROWSER TO: http://127.0.0.1:8888/
[Sun May 03 14:07:44 GMT-04:00 2009] TJWS httpd 0.0.0.0 -
SimpleAcceptor ServerSocket
[addr=0.0.0.0/0.0.0.0,port=8888,localport=8888] is
listening.
3-May-09 2:07:50 PM n2hell.http.RpcServlet
on startup.

Vladimir Solomenchuk

unread,
May 3, 2009, 3:12:54 PM5/3/09
to n2hell
looks like xmlrpc call unexpectedly interrupted. Can you send me
~/.n2hell/settings.js (be sure to remove nay sensitive information,
such as ssh host and password)

jack.benny

unread,
May 4, 2009, 7:42:04 AM5/4/09
to n2hell
Hi Vladimir,

This is the contents of ~/.n2hell/settings.js

{"rtorrents":[{"rtorrentCommand":"screen -dmS rtorrent rtorrent","ssh":
{"user":{"password":"","name":""},"port":22,"
enabled":false,"host":"","privateKeyFile":"","usePrivateKey":false,"passphrase":""},"rtorrentConfigPath":"\/
home\/mi
ke\/.rtorrent.rc","rtorrentTimeoutField":10000,"users":
["barrem01","admin"],"id":"default"}],"http":{"root":"webUI",
"compression":true,"port":8888,"host":"127.0.0.1","maxUpload":
1000000},"name":"n2hell","configured":true,"users":[{"
password":<withheld>,"name":"barrem01","id":0},
{"password":<withheld>,"name":"admin","id":1}]}

I don't know much about java, but it looks like I don't have an ssh
host or password. Could that be the problem?

This is the contents of ~/.n2hell/admin.settings.js
{"views":[{"name":"all","selected":true,"iconClass":"n2hellStatus
n2hellStatus_done","query":"","quick":true},{"name
":"errors","selected":false,"iconClass":"n2hellStatus
n2hellStatus_error_stop","query":{"state":"error*"},"quick":tr
ue},{"name":"stopped","selected":false,"iconClass":"n2hellStatus
n2hellStatus_ok_stop","query":{"state":"*_stop"},"q
uick":false},
{"name":"leeching","selected":false,"iconClass":"n2hellStatus
n2hellStatus_ok_leech","query":{"state":"
*_leech"},"quick":true},
{"name":"seeding","selected":false,"iconClass":"n2hellStatus
n2hellStatus_ok_seed","query":{
"state":"*_seed"},"quick":false}],"remoteFolders":[],"listColumns":
["state","name"],"localFolders":[],"refreshTimeou
t":30}

Thanks again for all your help.

Vladimir Solomenchuk

unread,
May 4, 2009, 8:01:08 AM5/4/09
to n2hell
hmm, everything looks like correct.

look for line with something like scgi_port =127.0.0.1:5000 in
~/.rtorrent.rc, which can be found in n2hell's daemon user home
directory. Remember port, and than try execure command
telnet 127.0.0.1 <port>, where port is value of scgi_port, for
example:
telnet 127.0.0.1 5000
after connection will be established, try to hit enter few times. You
will receive some error from rtorrent.

I think, rtorrent scgi port binded by another process

On May 4, 3:42 pm, "jack.benny" <jack.be...@gmail.com> wrote:
> Hi Vladimir,
>
> This is the contents of ~/.n2hell/settings.js
>
> {"rtorrents":[{"rtorrentCommand":"screen -dmS rtorrent rtorrent","ssh":
> {"user":{"password":"","name":""},"port":22,"
> enabled":false,"host":"","privateKeyFile":"","usePrivateKey":false,"passphr ase":""},"rtorrentConfigPath":"\/

jack.benny

unread,
May 4, 2009, 9:42:19 PM5/4/09
to n2hell
That doesn't seem to be the case, Vladimir.

When I close rtorrent, I can't connect to the scgi port. When I run
rtorrent, I can.

my ~/rtorrent.rc file has:
scgi_port = 127.0.0.1:5000

with rtorrent and n2hell running:

mike@ubuntu:~/rtorrent$ telnet 127.0.0.1 5000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Connection closed by foreign host.

< connection closed when "enter" button is hit >

with rtorrent but NOT n2hell running:
mike@ubuntu:~/rtorrent$ telnet 127.0.0.1 5000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Connection closed by foreign host.
< connection closed when "enter" button is hit >

with neither rtorrent nor n2hell running:
mike@ubuntu:~/rtorrent$ telnet 127.0.0.1 5000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
mike@ubuntu:~/rtorrent$

Of course, I didn't get an error message from rtorrent either, so
maybe there is something wrong with my rtorrent. Can you confirm that
a properly working rtorrent gives you an error message when you telnet
to the scgi port?

- Mike

Vladimir Solomenchuk

unread,
May 12, 2009, 9:32:08 AM5/12/09
to n2h...@googlegroups.com
Hello, jack,

everything looks like ok. I have no idea what wrong. Try another
rtorrent controller, such as ntorrent.

Vladimir

Vladimir Solomenchuk

unread,
May 14, 2009, 3:10:44 AM5/14/09
to n2h...@googlegroups.com, jack....@gmail.com
no, rtorrent will not give you any

2009/5/5 jack.benny <jack....@gmail.com>:
Jack!

please, find a simple test in attachment

1. put scgi.jar in some folder
2. in this folder run command:
java -cp scgi.jar SCGI 127.0.0.1 5000

where 127.0.0.1 is rtorrent host, and 5000 rtorrent port
if everything is okay, you will receive output like

Status: 200 OK
Content-Type: text/xml
Content-Length: 21713

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param><value><array><data>
<value><string>system.listMethods</string></value>
<value><string>system.methodSignature</string></value>
<value><string>system.methodHelp</string></value>
scgi.jar
Reply all
Reply to author
Forward
0 new messages