Jenkins - 1.6.22
Jabber plugin - 1.3.5
IM plugin - 1.3.5
Every now and then I'm getting a socket closure in the jenkins log and
jenkins can no longer publish build events to our chat room on our ejabberd
server. Also, I think because the server doesn't see the disconnect it
still thinks the jenkins is online and won't allow it to reconnect.
The error log in jenkins looks like...
Exception writing closing stream element
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at sun.security.ssl.OutputRecord.writeBuffer(Unknown Source)
at sun.security.ssl.OutputRecord.write(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecordInternal(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at sun.security.ssl.AppOutputStream.write(Unknown Source)
at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
at sun.nio.cs.StreamEncoder.flush(Unknown Source)
at java.io.OutputStreamWriter.flush(Unknown Source)
at java.io.BufferedWriter.flush(Unknown Source)
at java.io.FilterWriter.flush(Unknown Source)
at
org.jivesoftware.smack.tcp.PacketWriter.writePackets(PacketWriter.java:190)
at
org.jivesoftware.smack.tcp.PacketWriter.access$000(PacketWriter.java:40)
at org.jivesoftware.smack.tcp.PacketWriter$1.run(PacketWriter.java:77)
Aug 04, 2015 10:49:20 AM WARNING org.jivesoftware.smack.XMPPConnection
callConnectionClosedOnErrorListener
Connection closed with error
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at sun.security.ssl.InputRecord.readFully(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at sun.security.ssl.AppInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.read1(Unknown Source)
at java.io.BufferedReader.read(Unknown Source)
at
hudson.plugins.jabber.im.LoggingFilterReader.read(LoggingFilterReader.java:29)
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at
org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:291)
at
org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)
at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)
And the reconnect attempt error looks like:
Aug 04, 2015 10:49:50 AM INFO
hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run
Trying to reconnect
Aug 04, 2015 10:49:50 AM INFO
hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
Trying to connect to XMPP on /britishgas.co.uk
Aug 04, 2015 10:50:11 AM WARNING
hudson.plugins.jabber.im.transport.JabberIMConnection createConnection
org.jivesoftware.smack.SmackException$ConnectionException
at
org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:436)
at
org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:811)
at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)
at
hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:409)
at
hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:189)
at
hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
at
hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:59)
at
hudson.plugins.im.IMConnectionProvider.access$500(IMConnectionProvider.java:16)
at
hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:165)
at java.lang.Thread.run(Unknown Source)
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/52a11bdd-5252-4cfc-ba17-f1d130f5384e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.