Open MattMencel opened 8 years ago
Similar problem, different spot. No reconnect. Hipchat's xmpp service had some issues today and lita threw the following. Ideally it would reconnect. Alternatively, lita could die and some other god process would restart it. As it is, it's take manual intervention.
W, [2016-01-12T20:20:36.070537 #1] WARN -- : EXCEPTION:
Errno::ECONNRESET
Connection reset by peer
/var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/connection.rb:45:in sysread' /var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/connection.rb:45:in
sysread'
/usr/local/lib/ruby/2.2.0/openssl/buffering.rb:61:in fill_rbuff' /usr/local/lib/ruby/2.2.0/openssl/buffering.rb:301:in
eof?'
/usr/local/lib/ruby/2.2.0/rexml/source.rb:235:in empty?' /usr/local/lib/ruby/2.2.0/rexml/parsers/baseparser.rb:148:in
empty?'
/usr/local/lib/ruby/2.2.0/rexml/parsers/baseparser.rb:196:in pull_event' /usr/local/lib/ruby/2.2.0/rexml/parsers/baseparser.rb:184:in
pull'
/usr/local/lib/ruby/2.2.0/rexml/parsers/sax2parser.rb:92:in parse' /var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/streamparser.rb:91:in
parse'
/var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/stream.rb:75:in block in start' D, [2016-01-12T20:20:36.070707 #1] DEBUG -- : SENDING: </stream:stream> W, [2016-01-12T20:20:36.070881 #1] WARN -- : EXCEPTION: Errno::EPIPE Broken pipe /usr/local/lib/ruby/2.2.0/openssl/buffering.rb:326:in
syswrite'
/usr/local/lib/ruby/2.2.0/openssl/buffering.rb:326:in do_write' /usr/local/lib/ruby/2.2.0/openssl/buffering.rb:391:in
<<'
/var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/stream.rb:346:in block in send_data' /var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/stream.rb:344:in
synchronize'
/var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/stream.rb:344:in send_data' /var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/stream.rb:378:in
send'
/var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/client.rb:80:in close' /var/bundle/ruby/2.2.0/gems/xmpp4r-0.5.6/lib/xmpp4r/stream.rb:89:in
block (2 levels) in start'
[2016-01-12 20:20:36 UTC] INFO: Disconnecting from HipChat.
[2016-01-12 20:20:36 UTC] INFO: Disconnecting from HipChat.
Duplication of https://github.com/litaio/lita-hipchat/issues/20
My Lita bot disconnects from HipChat fairly regularly. The debug looks like this for each of the rooms when the disconnect happens.