errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.08k stars 607 forks source link

Automatically reconnect XMPP after connection is lost #1680

Open drebs opened 5 months ago

drebs commented 5 months ago

Is your feature request related to a problem? Please describe.

When the XMPP connection is lost the Bot does not reconnect automatically.

Describe the solution you'd like

I would like a configuration option to force XMPP reconnect on connection lost. Maybe this should even be the default?

Is feature related to

Additional context

Using container image: docker.io/errbotio/errbot:latest

sijis commented 5 months ago

Hi, would you be able to do the following, so we can provide some feedback

drebs commented 4 months ago

Hi, would you be able to do the following, so we can provide some feedback

Sure! It took some time because I had to wait for it to happen again.

  • Provide a snippet of the log entries when this happens
2024-02-28 12:43:16,644 INFO     slixmpp.xmlstream.xmlstream connection_lost: (None,)
2024-02-28 12:43:16,657 INFO     errbot.core               Disconnect callback, deactivating all the plugins.
  • Does this occur with an older version of errbot, such as 6.1.9?

Hum, I expect to be running latest, as I'm using the container image from docker.io/errbotio/errbot:latest, but getting the version returns 9.9.9:

$ podman images
REPOSITORY                 TAG         IMAGE ID      CREATED      SIZE
docker.io/errbotio/errbot  latest      ad084cf8cddc  4 weeks ago  338 MB
$ podman run --rm -t -i docker.io/errbotio/errbot --version
Errbot version 9.9.9

(Maybe I should be pinning to a version tag, such as 6.2.0?)

  • how long did it take before it disconnected?

This time it took one month, it was the first time since container creation (on Jan 27th). I think the disconnect has to do with "legitimate" network issues, but then when it happens errbot has to be manually restarted in order to get it to connect once again to XMPP.

I hope this clarifies the issue, please let me know if you need more info.

And thanks for your attention and work! :-)