backend.jar errors.

Discuss Tiny Tiny IRC here
User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

backend.jar errors.

Postby sleeper_service » 30 May 2013, 05:23

I just slapped ttirc on my server, and compiled backend.jar.

on it's first run, after answering the questions, I got a fair amount of output, plus some java errors:

Code: Select all

INFO: [1] Connection loop terminating.
java.lang.NullPointerException
        at org.schwering.irc.lib.IRCConnection.send(IRCConnection.java:394)
        at org.schwering.irc.lib.IRCConnection.doQuit(IRCConnection.java:1122)
        at org.fox.ttirc.NativeConnectionHandler.cleanup(Unknown Source)
        at org.fox.ttirc.NativeConnectionHandler.run(Unknown Source)
May 29, 2013 7:45:16 PM org.fox.ttirc.NativeConnectionHandler cleanup

this seems to have been happening at the same times it was trying and failing to contact the default server configured in the admin account.

also, I noticed that my connection to the server I had configured, pinged out after I'd logged out of the web interface, though I had "stay connected" checked.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 08:20

>this seems to have been happening at the same times it was trying and failing to contact the default server configured in the admin account.

That ircd isn't there anymore, maybe that's why. Don't worry about it.

>also, I noticed that my connection to the server I had configured, pinged out after I'd logged out of the web interface, though I had "stay connected" checked.

It works for me, not sure about this either. Maybe you need to reconnect or relogin once after changing this option or something.

In general it's not very polished, it's good enough for me and my friends, but that's about it. Also it has a ton of quite specific stuff you may need to disable, like rotating lols and shit. :)

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 08:43

I'm getting the same error now and then when it's connecting, or possibly after the server drops it due to ping timeout.

I've had to disable the 'stay connected' because it's not staying connected, the two accounts I've got on it at this point connect, then around two and a half minutes later, they ping out, then they connect in again, repeat.

it looks like a really neat thing. if I can get it to stay connected. ;)

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 08:50

Wait, stay connected doesn't do that. It is used to prevent automatic disconnect 15 minutes after frontend user disconnected or logged out. If you see connection drops while you actually use tt-irc, something else is going on.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 09:14

hrm, what I'm seeing is if I have stay connected off, I log into the web interface, and ttirc will log into the irc server, and things work great, when I log out, it pings out after a bit, and stays off till I log in again.

if I have stay connected on, the backend.jar will repeatedly make connections to the irc server, but then they get dropped after a bit due to ping timeouts. it looks like it'd reconnect about every 15 minutes, while nobody was logged into the web or android interface, then ping out, reconnect, etc.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 09:24

Nope, this isn't right. Not sure why this happens, last time I tried it worked pretty well here. Does the connection in question have permanent set to true in the database?

Maybe it's a combination of options that bugs out. Try setting autoconnect to false, permanent to true, connecting manually and logging off.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 09:41

is there a way to change those without diddling the db directly? I went into psql and made a guess at the table (ttirc_connections) and found that permanent was f and auto_connect was set to t, so I switched them. it's been nine minutes and the connections haven't pinged out... so, looks hopeful.

still getting these now and then:

Code: Select all

May 29, 2013 10:49:09 PM org.fox.ttirc.NativeConnectionHandler cleanup
INFO: [3] Connection loop terminating.
java.lang.NullPointerException
        at org.schwering.irc.lib.IRCConnection.send(IRCConnection.java:394)
        at org.schwering.irc.lib.IRCConnection.doQuit(IRCConnection.java:1122)
        at org.fox.ttirc.NativeConnectionHandler.cleanup(Unknown Source)
        at org.fox.ttirc.NativeConnectionHandler.run(Unknown Source)
May 29, 2013 10:49:10 PM org.fox.ttirc.NativeConnectionHandler cleanup
it's not like you to have a bug in your code ;)

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 09:55

I dunno, just tried it on latest trunk and it sets permanent just fine. You need to click on the connection to edit it to see this dialog:

http://i.imgur.com/rSDgcOo.png

Maybe you forgot to save? :)

The exception is okay, it tries to send QUIT to the server but the socket may be already closed, just ignore it.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 10:08

fox wrote:I dunno, just tried it on latest trunk and it sets permanent just fine. You need to click on the connection to edit it to see this dialog:

http://i.imgur.com/rSDgcOo.png

Maybe you forgot to save? :)

The exception is okay, it tries to send QUIT to the server but the socket may be already closed, just ignore it.


ok, yes, sorry, I had done that, and did save, but I'd been trying different settings.

also, now that I've set autoconnect to false and permanent to true, it is still connecting and disconnecting when nobody's logged in.

I was mistaken earlier when I said it wasn't doing it, I'd scrolled back and hadn't noticed, so my report that it was working was in error, sorry.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 10:17

Strange. Does it log this message?

Code: Select all

logger.info("[" + connectionId + "] Disconnecting due to user inactivity."

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 10:44

I'm presuming I'd see that on stdout.

I don't see it anywhere.

here's what I'm getting in a cycle (I'm not sure exactly where it starts)

Code: Select all

May 29, 2013 9:14:54 PM org.fox.ttirc.Master checkHandlers
INFO: Connection 2 terminated.
May 29, 2013 9:14:54 PM org.fox.ttirc.Master checkHandlers
INFO: Spawning connection 2
May 29, 2013 9:14:54 PM org.fox.ttirc.Master checkHandlers
INFO: Sleeping to prevent flood...
May 29, 2013 9:14:54 PM org.fox.ttirc.NativeConnectionHandler initConnection
INFO: [2] Establishing database connection...
May 29, 2013 9:14:54 PM org.fox.ttirc.NativeConnectionHandler lock
INFO: [2] Lock acquired successfully (handle.conn-2.lock).
May 29, 2013 9:14:54 PM org.fox.ttirc.NativeConnectionHandler$Listener onRegistered
INFO: [2] Connected to IRC.
*************user enters channel on irc server @ 9:14:55

********************* user pings out of server 9:17:33
May 29, 2013 9:19:03 PM org.fox.ttirc.Master purgeOldMessages
INFO: Purging old messages (purge_hours = 12)
May 29, 2013 9:29:03 PM org.fox.ttirc.Master purgeOldMessages
INFO: Purging old messages (purge_hours = 12)
May 29, 2013 9:30:11 PM org.fox.ttirc.NativeConnectionHandler cleanup
INFO: [2] Connection loop terminating.
java.lang.NullPointerException
        at org.schwering.irc.lib.IRCConnection.send(IRCConnection.java:394)
        at org.schwering.irc.lib.IRCConnection.doQuit(IRCConnection.java:1122)
        at org.fox.ttirc.NativeConnectionHandler.cleanup(Unknown Source)
        at org.fox.ttirc.NativeConnectionHandler.run(Unknown Source)
May 29, 2013 9:30:12 PM org.fox.ttirc.NativeConnectionHandler cleanup
INFO: [2] Lock released successfully.
May 29, 2013 9:30:12 PM org.fox.ttirc.NativeConnectionHandler cleanup
INFO: [2] Closing database connection...
May 29, 2013 9:30:13 PM org.fox.ttirc.Master checkHandlers
INFO: Connection 2 terminated.
May 29, 2013 9:30:13 PM org.fox.ttirc.Master checkHandlers
INFO: Spawning connection 2
May 29, 2013 9:30:13 PM org.fox.ttirc.Master checkHandlers
INFO: Sleeping to prevent flood...
May 29, 2013 9:30:13 PM org.fox.ttirc.NativeConnectionHandler initConnection
INFO: [2] Establishing database connection...
May 29, 2013 9:30:13 PM org.fox.ttirc.NativeConnectionHandler lock
INFO: [2] Lock acquired successfully (handle.conn-2.lock).
May 29, 2013 9:30:13 PM org.fox.ttirc.NativeConnectionHandler$Listener onRegistered
INFO: [2] Connected to IRC.
*****************  user enter channel @ 9:30:14


User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 10:53

Maybe server disconnects the client for some reason, because user is idle or something. Try getting on my ircd, I'll PM you the details.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 11:14

fox wrote:Maybe server disconnects the client for some reason, because user is idle or something. Try getting on my ircd, I'll PM you the details.

I think the server is sending irc pings and not getting a respose, and dropping the connection.

User avatar
sleeper_service
Bear Rating Overlord
Bear Rating Overlord
Posts: 884
Joined: 30 Mar 2013, 23:50
Location: Dallas, Texas

Re: backend.jar errors.

Postby sleeper_service » 30 May 2013, 11:42

seems to be losing and reestablishing connections to your server too

for what it's worth, I got what looked like the newest versions of the libs required, json-simple-1.1.1, postgresql-9.2-1002.jdbc4.jar, irclib-1.10, apache-ant-1.9.1, jdk 1.7.0_21

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: backend.jar errors.

Postby fox » 30 May 2013, 12:01

Strange. Ping-pong should be handled automatically in the backend regardless of anyone being connected to the frontend. Could this be a network issue? If your ircd is on the same host, probably not.


Return to “Tiny Tiny IRC”

Who is online

Users browsing this forum: No registered users and 1 guest