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

Bot gets stuck half-offline #22

Open
cmsj opened this issue Jun 9, 2020 · 4 comments
Open

Bot gets stuck half-offline #22

cmsj opened this issue Jun 9, 2020 · 4 comments

Comments

@cmsj
Copy link

cmsj commented Jun 9, 2020

I seem to have to restart irccat every few days, when logs are getting this error every couple of minutes:

2020/06/08 22:24:12 Error, disconnected: SASL setup timed out. Does the server support SASL?
2020/06/08 22:24:13 Connected to irc.freenode.net:6697 (204.225.96.251:6697)

When it's in this state, it's still receiving events from GitHub, but is unable to relay them to IRC.

@russss
Copy link
Member

russss commented Jun 9, 2020

I think this is probably the same issue as #21? I haven't quite pinned it down yet, but it doesn't happen that often for me.

@cmsj
Copy link
Author

cmsj commented Jun 11, 2020

Possibly, although I haven’t noticed that same error message.

I was looking at go-ircevent as the possible culprit and found this commit: cpatulea/foubot2@49e7b95 which didn’t make me feel good about being able to fix this quickly!

@cpatulea
Copy link

cpatulea commented Oct 20, 2023

We're still running into this, even after disabling autoreconnect [edit] and adding a manual reconnect loop using irccon.Reconnect() (FOULAB/foubot2@c5e90db):

IRC: 01:36 -!- foubot [~foubot2@foulab/bot/foubot] has quit [Ping timeout: 258 seconds]

syslog:
Oct 19 01:36:51 foubot foubot[20658]: 2023/10/19 01:36:51 Error, disconnected: EOF
Oct 19 01:36:52 foubot foubot[20658]: 2023/10/19 01:36:52 Connected to irc.libera.chat:6697 (64.38.145.232:6697)
Oct 19 01:37:07 foubot foubot[20658]: Connect error: SASL setup timed out. This shouldn't happen.
Oct 19 01:38:07 foubot foubot[20658]: 2023/10/19 01:38:07 Connected to irc.libera.chat:6697 (176.58.122.119:6697)
Oct 19 01:38:22 foubot foubot[20658]: Connect error: SASL setup timed out. This shouldn't happen.
...
Oct 19 18:40:03 foubot foubot[20658]: 2023/10/19 18:40:03 Connected to irc.libera.chat:6697 (94.125.182.252:6697)
Oct 19 18:40:18 foubot foubot[20658]: Connect error: SASL setup timed out. This shouldn't happen.

This time a human noticed a problem and rebooted it.

@cpatulea
Copy link

This happened again for us, so there's definitely a bug. I'll take another stab at a workaround next week.

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

No branches or pull requests

3 participants