errbot icon indicating copy to clipboard operation
errbot copied to clipboard

Automatically reconnect XMPP after connection is lost

Open drebs opened this issue 1 year ago • 2 comments

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

  • [ ] Backend support
  • [ ] Plugins (storage, flows)
  • [x] Functionality
  • [ ] Other

Additional context

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

drebs avatar Jan 25 '24 11:01 drebs

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

  • Provide a snippet of the log entries when this happens
  • Does this occur with an older version of errbot, such as 6.1.9?
  • how long did it take before it disconnected?

sijis avatar Jan 26 '24 07:01 sijis

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! :-)

drebs avatar Feb 28 '24 19:02 drebs