Init problem? SCGI? XMLRPC?

22 views
Skip to first unread message

larret

unread,
Apr 3, 2008, 11:11:15 AM4/3/08
to ntorrent
1. Installed xmlrpc (with --disable-cplus-plus)
2. configured apache2 with SGCI (mod loaded)
3. run rtorrent (XMLRPC initialized with 409 functions.)

Problem is i can see only splash screen in 0.5

=====0.5=====
at java.lang.reflect.Constructor.newInstance(libgcj.so.81)
3-kwi-08 2:14:08 org.java.plugin.boot.DefaultApplicationInitializer
configure
INFO: logging system initialized
...
...
INFO: plug-in started - ntorre...@0.1.0 (active/total: 11 of 20)
3-kwi-08 2:14:33 ntorrent.locale.ResourcePool getString
INFO: Added new resource bundle to resource pool. (9894528)

And that's all...


nTorrent 0.4 gives me this:
=====0.4.=====
Setting up socket server.
nTorrent-0.4.alpha (build 40)

Copyright (C) 2007 Kim Eik
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to
redistribute it under certain conditions.


Drawing gui
Null peer?!

=================

I'm using rTorrent 0.8.0/0.12.0.
It's quite interesting as I can normaly call XMLRPC .. e.g.:

larret@debian:~$ xmlrpc localhost download_list
Result:

Array of 23 items:
Index 0 String: '4188121C604200E7B590512F8442DF2B7C5597D9'
Index 1 String: '058BDD85692D8001BB59C67383294B26BCF65186'
Index 2 String: '67ADD8B319C754B53E81E3D3E483B654427AD417'
Index 3 String: 'ED061DBDBBB02808920217AB2F94BC9D115CA6EB'
Index 4 String: 'BB13334911B2C457527410F57D8BAB4CD8787D0C'
...etc.etc.


When i run ./nTorrent.sh ~/torrents/blah.torrent (while rtorrent NOT
running)
communicate appears after splash screen "You need to be connected
before adding
torrents". However when I do the same with rtorrent running it's again
splash screen
only - nothing more.
I believe i did configure everything tha same way that was described
on http://
libtorrent.rakshasa.no, I still can't get any other client like n2hell
working
either. Seems i missconfigured something, but :~$ xmlrpc works fine.
Got any
suggestions?
thx in advance...

Kim Eik

unread,
Apr 3, 2008, 11:42:10 AM4/3/08
to ntor...@googlegroups.com
How about you tell us more info about the system, java and ntorrent you
are running.

Comment #3 by larret:
Sry then. Could you answer me one thing what "Null peer?!" means?


null peer has nothing to do with nTorrent im afraid, so you have to
google that.

Message has been deleted

larret

unread,
Apr 3, 2008, 2:42:11 PM4/3/08
to ntorrent
Debian java5 from repos.
I've just purged WHOLE java configuration and reinstalled it. It get
better. Now GUI is redrawed, i got profile window.
But problem still isn't solved - while trying to Connect nTorrent 04
and 0.5 stops answering (kill -9). nTorrent 0.5 without any debug
info.
nTorrent 0.4 with ssh (in local mode no debug info):

========nTorrent 0.4========
.....
.....
INFO: Protocol negotiation complete
2008-04-03 20:41:58
com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
INFO: Starting key exchange
2008-04-03 20:41:58 com.sshtools.j2ssh.transport.kex.DhGroup1Sha1
performClientExchange
INFO: Starting client side key exchange.
2008-04-03 20:41:58
com.sshtools.j2ssh.transport.TransportProtocolClient verifyHostKey
INFO: The host key signature is valid
2008-04-03 20:41:58
com.sshtools.j2ssh.transport.TransportProtocolCommon
completeKeyExchange
INFO: Completing key exchange
2008-04-03 20:41:58
com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
INFO: Creating new blowfish-cbc cipher instance
2008-04-03 20:41:59
com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
INFO: Creating new blowfish-cbc cipher instance
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
onServiceInit
INFO: Registering connection protocol messages
2008-04-03 20:41:59 com.sshtools.j2ssh.transport.Service start
INFO: ssh-connection has been requested
2008-04-03 20:41:59 com.sshtools.j2ssh.transport.AsyncService onStart
INFO: Starting ssh-connection service thread
The authentication is complete
adding forwarding 127.0.0.1:43558 - lrt.selfip.org:5000
2008-04-03 20:41:59 com.sshtools.j2ssh.forwarding.ForwardingListener
<init>
INFO: Creating forwarding listener named 'ntorrent'
2008-04-03 20:41:59 com.sshtools.j2ssh.forwarding.ForwardingListener
run
INFO: Starting forwarding listener thread for 'ntorrent'
2008-04-03 20:41:59 com.sshtools.j2ssh.forwarding.ForwardingListener
run
INFO: Connection accepted, creating forwarding channel
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
openChannel
INFO: Channel 0 is open [ntorrent]
2008-04-03 20:41:59 com.sshtools.j2ssh.forwarding.ForwardingListener
run
INFO: Forwarding channel for 'ntorrent' is open
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
onMsgChannelEOF
INFO: Remote computer has set channel 0 to EOF [ntorrent]
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
sendChannelEOF
INFO: Local computer has set channel 0 to EOF [ntorrent]
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
closeChannel
INFO: Local computer has closed channel 0[ntorrent]
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
onMsgChannelClose
INFO: Remote computer has closed channel 0[ntorrent]
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.Channel remoteClose
INFO: Remote side is closing channel
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.Channel close
INFO: Finializing channel close
2008-04-03 20:41:59 com.sshtools.j2ssh.connection.ConnectionProtocol
freeChannel
INFO: Freeing channel 0 [ntorrent]
=================

When i do Ctrl-C with 0.4: http://img503.imageshack.us/my.php?image=zrzutekranuzj1.png
Message has been deleted

larret

unread,
Apr 3, 2008, 2:56:46 PM4/3/08
to ntorrent
Also when selecting Help ---> Settings, nTorrent hangsup. Is it OK
that only 11 of 20 plugins are loaded at appl start?

Kim Eik

unread,
Apr 3, 2008, 3:13:21 PM4/3/08
to ntor...@googlegroups.com
Do you have compiz running?
From the log it looks like theres an issue with the server's ssh
configuration. most likely you have to allow for clear text passwords.
Look in the discussion group, there should be someone else who had that
issue.

larret

unread,
Apr 3, 2008, 3:55:43 PM4/3/08
to ntorrent
No compiz. Server configured properlly (checked previous threads with
nTorrent problem).
I got XMLRPC from repos and following error with 0.4 "Unsupported
XMLRPC dialect[...]" (should i bother?).
I have general problem connecting nTorrent with either local, http,
and ssh (more than sad).

When i check 127.0.0.1/RPC2 i got this:

=========
Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, webmaster@localhost and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.

More information about this error may be available in the server error
log.
Apache/2.2.8 (Debian) PHP/5.2.5-3 with Suhosin-Patch mod_scgi/1.12
mod_perl/2.0.3 Perl/v5.8.8 Server at 127.0.0.1 Port 80
==========

Kim Eik

unread,
Apr 3, 2008, 4:32:19 PM4/3/08
to ntor...@googlegroups.com
What xmlrpc-c version are you running?
Message has been deleted

larret

unread,
Apr 3, 2008, 5:11:52 PM4/3/08
to ntorrent
Just uninstalled repo.
Compiled properlly with svn 1.14.
Still the same problem.

Kim Eik

unread,
Apr 3, 2008, 5:19:22 PM4/3/08
to ntor...@googlegroups.com
if you get unsupported xmlrpc dialect error, then that is an indication
that you have the wrong xmlrpc-c version, one that doesn't support i8
integers. Anyhoo, make sure xmlrpc-c wansn't compiled agains old header
files on your server. Im going to make a guess that you previously
downloaded a version less than 1.07, compiled and installed it? am i
correct?

larret

unread,
Apr 3, 2008, 6:33:55 PM4/3/08
to ntorrent
Well this is another interesting thing, as I did removed every lib and
header files of older xmlrpc-c.
For example now i again run 1.12 and

:~$ xmlrpc localhost xmlrpc_dialect
Failed. Call failed. RPC failed at server. Not a string.. (XML-RPC
fault code -503)

I saw another thread with the same problem, but first thing that it
didn't help for now, also author of that thread haven't confirmed
whether reinstalling xmlrpc-c did helped.

Kim Eik

unread,
Apr 3, 2008, 7:37:32 PM4/3/08
to ntor...@googlegroups.com
Thats not the correct xmlrpc syntax for that method.

try deleting /usr/local/lib/*libxml* (i think)
then make clean on rtorrent source and rebuilde with xmlrpc-c.

Message has been deleted

larret

unread,
Apr 4, 2008, 3:10:31 AM4/4/08
to ntorrent
Well done. It did work - but only for 0.4 (it does connect through ssh
an locally).

BUT 0.5 hangs on when i do press SAVE (in profile window), and Help --
> Settings (which i see is unfinished anyway, so I won't

complain :) ), and it won't connect at all (nothing happens).

Error from logs for 0.5 :

========= 0.5 nTorrent =========
STDERR: Engine "clearlooks" is unsupported, ignoring
2008-04-04 08:01:26 ntorrent.locale.ResourcePool getString
INFO: Added new resource bundle to resource pool. (33219526)
2008-04-04 08:01:26
STDERR: java.io.FileNotFoundException: /home/larret/.ntorrent/data/
ntorrent.jpf.pluginset.dat (No such file or directory)
2008-04-04 08:01:26
STDERR: at java.io.FileInputStream.open(Native Method)
2008-04-04 08:01:26
STDERR: at java.io.FileInputStream.<init>(FileInputStream.java:
106)
2008-04-04 08:01:26
STDERR: at
ntorrent.tools.Serializer.deserialize(Serializer.java:48)
2008-04-04 08:01:26
STDERR: at
ntorrent.jpf.PluginHandlerMenuBar.restore(PluginHandlerMenuBar.java:
127)
2008-04-04 08:01:26
STDERR: at ntorrent.Main$1.run(Main.java:92)
2008-04-04 08:01:26 ntorrent.locale.ResourcePool getString
INFO: Added new resource bundle to resource pool. (16585653)
2008-04-04 08:01:27 org.java.plugin.standard.StandardPluginManager
activatePlugin
INFO: plug-in started - ntorr...@0.1.0 (active/total: 12 of 20)
2008-04-04 08:01:30 ntorrent.io.xmlrpc.XmlRpcConnection <init>
INFO: Connected to: Host debian Running: client 0.8.0, library 0.12.0,
pid=9190
2008-04-04 08:01:31
STDERR: Exception in thread "Thread-5"
2008-04-04 08:01:31
STDERR: java.lang.NoClassDefFoundError: ntorrent/torrenttable/model/
TorrentTableColumnModel$ColumnModel
2008-04-04 08:01:31
STDERR: at
ntorrent.torrenttable.model.TorrentTableColumnModel.<init>(TorrentTableColumnModel.java:
72)
2008-04-04 08:01:31
STDERR: at
ntorrent.torrenttable.view.TorrentTable.<clinit>(TorrentTable.java:56)
2008-04-04 08:01:31
STDERR: at
ntorrent.torrenttable.TorrentTableController.<init>(TorrentTableController.java:
47)
2008-04-04 08:01:31
STDERR: at
ntorrent.session.ConnectionSession.<init>(ConnectionSession.java:69)
2008-04-04 08:01:31
STDERR: at ntorrent.Session.run(Session.java:76)
2008-04-04 08:01:31
STDERR: at java.lang.Thread.run(Thread.java:595)

===================

Kim Eik

unread,
Apr 4, 2008, 8:32:42 AM4/4/08
to ntor...@googlegroups.com
larret wrote:
> Well done. It did work - but only for 0.4 (it does connect through ssh
> an locally).
>
> BUT 0.5 hangs on when i do press SAVE (in profile window), and Help --
>
>> Settings (which i see is unfinished anyway, so I won't
>>
> complain :) ), and it won't connect at all (nothing happens).
>
> Error from logs for 0.5 :
>
> ========= 0.5 nTorrent =========
> STDERR: Engine "clearlooks" is unsupported, ignoring
> 2008-04-04 08:01:26 ntorrent.locale.ResourcePool getString

> INFO: Added new resource bundle to resource pool. (33219526)
> 2008-04-04 08:01:26
> STDERR: java.io.FileNotFoundException: /home/larret/.ntorrent/data/
> ntorrent.jpf.pluginset.dat (No such file or directory)
> 2008-04-04 08:01:26
> STDERR: at java.io.FileInputStream.open(Native Method)
> 2008-04-04 08:01:26
> STDERR: at java.io.FileInputStream.<init>(FileInputStream.java:106)
> 2008-04-04 08:01:26
> STDERR: at ntorrent.tools.Serializer.deserialize(Serializer.java:48)
> 2008-04-04 08:01:26
> STDERR: at
> ntorrent.jpf.PluginHandlerMenuBar.restore(PluginHandlerMenuBar.java:
> 127)
> 2008-04-04 08:01:26
> STDERR: at ntorrent.Main$1.run(Main.java:92)
> 2008-04-04 08:01:26 ntorrent.locale.ResourcePool getString

> INFO: Added new resource bundle to resource pool. (16585653)
> 2008-04-04 08:01:27 org.java.plugin.standard.StandardPluginManager
> activatePlugin
> INFO: plug-in started - ntor...@0.1.0 (active/total: 12 of 20)
> larret@debian:~/.ntorrent/log$ cat ntorrent.0
> 2008-04-04 08:01:26
> STDERR: /home/larret/.themes/Darker theme/gtk-2.0/gtkrc:53:
> 2008-04-04 08:01:26

> STDERR: Engine "clearlooks" is unsupported, ignoring
> 2008-04-04 08:01:26 ntorrent.locale.ResourcePool getString

> INFO: Added new resource bundle to resource pool. (33219526)
> 2008-04-04 08:01:26
> STDERR: java.io.FileNotFoundException: /home/larret/.ntorrent/data/
> ntorrent.jpf.pluginset.dat (No such file or directory)
> 2008-04-04 08:01:26
> STDERR: at java.io.FileInputStream.open(Native Method)
> 2008-04-04 08:01:26
> STDERR: at java.io.FileInputStream.<init>(FileInputStream.java:106)
> 2008-04-04 08:01:26
> STDERR: at ntorrent.tools.Serializer.deserialize(Serializer.java:48)
> 2008-04-04 08:01:26
> STDERR: at
> ntorrent.jpf.PluginHandlerMenuBar.restore(PluginHandlerMenuBar.java:
> 127)
> 2008-04-04 08:01:26
> STDERR: at ntorrent.Main$1.run(Main.java:92)
> 2008-04-04 08:01:26 ntorrent.locale.ResourcePool getString

> INFO: Added new resource bundle to resource pool. (16585653)
> 2008-04-04 08:01:27 org.java.plugin.standard.StandardPluginManager
> activatePlugin
> INFO: plug-in started - ntor...@0.1.0 (active/total: 12 of 20)
looks like you have a corrupt 0.5 version as it isn't finding all the
classes it needs.

STDERR: java.lang.NoClassDefFoundError: ntorrent/torrenttable/model/

this should not happen.

So try redownloading.


larret

unread,
Apr 4, 2008, 10:15:37 AM4/4/08
to ntorrent
Crappy google... again:

That didn't helped. I did hovewer copied whole plugins catalog from
windows package to linux one. And it finally works.
Still the same problem with SAVE button (when killing nTorrent, proper
dialog for saving shows up for less then 1 second).
> > INFO: plug-in started - ntorr...@0.1.0 (active/total: 12 of 20)
> > INFO: plug-in started - ntorr...@0.1.0 (active/total: 12 of 20)

Kim Eik

unread,
Apr 4, 2008, 10:27:21 AM4/4/08
to ntor...@googlegroups.com
Well, guess i cant help you then. I have no idea whats going on with
your system, but it doesn't sound good. No one else has reported any
thing like you yourself are experiencing.

larret

unread,
Apr 4, 2008, 12:17:19 PM4/4/08
to ntorrent
Well, I can :P.
I totally uninstalled java5, replacing it with java 6. Reconfigured
jre.
Now everything works as it should be.

I belive that java 6 should be recommended for nTorrent.

BTW: interested in polish translate?
> >>> ntorrent.torrenttable.model.TorrentTableColumnModel.<init>(TorrentTableColu­mnModel.java:
> >>> 72)
> >>> 2008-04-04 08:01:31
> >>> STDERR:    at
> >>> ntorrent.torrenttable.view.TorrentTable.<clinit>(TorrentTable.java:56)
> >>> 2008-04-04 08:01:31
> >>> STDERR:    at
> >>> ntorrent.torrenttable.TorrentTableController.<init>(TorrentTableController.­java:
> >>> ntorrent.torrenttable.model.TorrentTableColumnModel.<init>(TorrentTableColu­mnModel.java:
> >>> 72)
> >>> 2008-04-04 08:01:31
> >>> STDERR:    at
> >>> ntorrent.torrenttable.view.TorrentTable.<clinit>(TorrentTable.java:56)
> >>> 2008-04-04 08:01:31
> >>> STDERR:    at
> >>> ntorrent.torrenttable.TorrentTableController.<init>(TorrentTableController.­java:

Kim Eik

unread,
Apr 4, 2008, 9:38:06 PM4/4/08
to ntor...@googlegroups.com
Java 6 is recommended in the README file. and yes nTorrent is always
interested in translations.
Reply all
Reply to author
Forward
0 new messages