powered by Jive Software

IRC causes connection problems with the default Port 5222

I’m using Openfire 3.3.2 and IM Gateway 1.1.3a.

The registration with the IRC Transport is unproblematic, but after

2-3 days, the server doesn’t answer through the Port 5222. The SSL Port

5223 works fine.

The IRC Transport is after this moment not reachable. A restart of the Gateway

plugin doesn’t change anything.

The only thing that work is a server restart. But after a couple of days, the problem reappears.

I have tried PSI, Miranda and a self-written client, nothing works…

The server itself stops responding on port 5222 or just the IRC transport over it???

Both.

The port 5222 is still listening, all client can send the stream header to initiate the login, but no response from the server.

They get only response through port 5223.

The IRC Transport is not reachable and not detectable through Jabber disco. User registration to IRC cannot delete through the Web-Admin-Console.

The other Transport ICQ/AIM/ etc. are working.

EDIT : After an IRC Session and following unregistration of the IRC Transport, the server has the same strange behavior.

This is the debug log

2007.10.23 10:05:37 Received presence packet: <presence from="2455668@java1.gnw.de" to=“irc.java1.gnw.de” type=“unsubscribe”/>

2007.10.23 10:05:37 Ignoring this packet:

<presence from="2455668@java1.gnw.de" to=“irc.java1.gnw.de” type=“unsubscribe”/>

2007.10.23 10:05:37 Received presence packet: <presence from="2455668@java1.gnw.de" to=“irc.java1.gnw.de” type=“unsubscribed”/>

2007.10.23 10:05:37 Ignoring this packet:

<presence from="2455668@java1.gnw.de" to=“irc.java1.gnw.de” type=“unsubscribed”/>

2007.10.23 10:05:37 Received iq packet: <iq type=“set” id=“431-77” from="2455668@java1.gnw.de/Psi" to=“irc.java1.gnw.de”><query xmlns=“jabber:iq:roster”><item jid="2455668@java1.gnw.de" subscription=“remove”/></query></iq>

2007.10.23 10:05:37 irc: Sending packet: <iq type=“result” id=“431-77” from=“irc.java1.gnw.deto="2455668@java1.gnw.de/Psi"/>

2007.10.23 10:05:37 Received iq packet: <iq type=“get” to=“irc.java1.gnw.de” id=“abb0a” from="2455668@java1.gnw.de/Psi">

<query xmlns=“jabber:iq:register”/>

</iq>

2007.10.23 10:05:37 irc: Sending packet: <iq type=“result” id=“abb0a” from=“irc.java1.gnw.deto="2455668@java1.gnw.de/Psi"><query xmlns=“jabber:iq:register”><x xmlns=“jabber:x:data” type=“form”><instructions>Please enter your IRC username, password, and nickname. Nickname is the primary username used while username and password are used for authentication. If no password is required, leave it blank.</instructions><field label=“Username” var=“username” type=“text-single”><value>Frank</value></field><field label=“Password” var=“password” type=“text-private”/><field label=“Nickname” var=“nick” type=“text-single”><value>BMoon</value></field></x>& lt;instructions>Please enter your IRC username, password, and nickname. Nickname is the primary username used while username and password are used for authentication. If no password is required, leave it blank.</instructions><registered/><username>Frank</usernam e><password/><nick>BMoon</nick><x xmlns=“jabber:iq:gateway:register”></x></query></iq>

2007.10.23 10:05:37 Received iq packet: <iq type=“set” to=“irc.java1.gnw.de” id=“abb0a” from="2455668@java1.gnw.de/Psi">

<query xmlns=“jabber:iq:register”>

<remove/>

</query>

</iq>

2007.10.23 10:05:37 IRCConnection: SEND= QUIT :null

2007.10.23 10:05:38 IRCConnection: Removed state observer org.jivesoftware.openfire.gateway.protocols.irc.IRCListener@61f873dd

2007.10.23 10:05:38 IRCConnection: Processing events

2007.10.23 10:05:38 IRCConnection: RCV = ERROR :Closing Link: java1.gnw.de (Quit: null)

2007.10.23 10:05:38 IRCConnection: Unknown command

2007.10.23 10:05:38 Socket error called.

2007.10.23 10:05:38 Socket error

java.io.IOException: Socket disconnected

at f00f.net.irc.martyr.InputHandler.run(InputHandler.java:97)

2007.10.23 10:05:38 IRCConnection: Input handler has DIED!

2007.10.23 10:05:38 IRCConnection: Removed command observer org.jivesoftware.openfire.gateway.protocols.irc.IRCListener@61f873dd

Message was edited by: cruiser

I’m not seeing any strange behavior. =) (the logs towards the end there are actually valid, it’s just semi “scarey” looking log entries, but they really are normal when closing a session)

I don’t understand what difference it would make whether you connect over 5222 or 5223. Those are transparent to the plugin itself, only openfire itself would care. I don’t even get to know that information in the plugin. =) (well I guess I could probably find a way to look it up, but still)

Hi Daniel,

After an update to Openfire 3.4.1 and the IM Plugin 1.2.0 the login problem is solved.

But now I have sometimes problems to unregister from the IRC Gateway.

The debug log looks like this, after an unregister request.

2007.11.19 17:34:50 A final resource has gone offline: 2514607@java1.gnw.de/Psi2007.11.19 17:34:50 IRCConnection: SEND= QUIT :null2007.11.19 17:34:50 IRCConnection: Removed state observer org.jivesoftware.openfire.gateway.protocols.irc.IRCListener@30c01f1c2007.11.19 17:34:50 Socket error called.2007.11.19 17:34:50 Socket error

java.io.IOException: Socket disconnected

at f00f.net.irc.martyr.InputHandler.run(InputHandler.java:97)2007.11.19 17:34:50 IRCConnection: Input handler has DIED!2007.11.19 17:34:50 IRCConnection: Removed command observer org.jivesoftware.openfire.gateway.protocols.irc.IRCListener@30c01f1c2007.11.19 17:34:50 IRCConnection: Processing events2007.11.19 17:34:50 IRCConnection: RCV = ERROR :Closing Link: java1.gnw.de (Client Quit)2007.11.19 17:34:50 IRCConnection: Unknown command

The only way after this error to unregister, is through the admin web-interface.