Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically reconnect XMPP after connection is lost #1680

Open
1 of 4 tasks
drebs opened this issue Jan 25, 2024 · 2 comments
Open
1 of 4 tasks

Automatically reconnect XMPP after connection is lost #1680

drebs opened this issue Jan 25, 2024 · 2 comments

Comments

@drebs
Copy link

drebs commented Jan 25, 2024

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)
  • Functionality
  • Other

Additional context

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

@sijis
Copy link
Contributor

sijis commented Jan 26, 2024

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?

@drebs
Copy link
Author

drebs commented Feb 28, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants