-
Notifications
You must be signed in to change notification settings - Fork 71
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
Cog stops replying to commands or triggers #1153
Comments
The Trigger invoking script pasted in my initial comment might not be relevant to this issue after all. I'm executing it for 30 min. and everything is still normal. |
We've added some more logging in different points inside Cog and we compared the logs of a It seems that after |
During the port from the old to new chat provider interface we somehow overlooked sending Slack pings (as documented here). My current theory is that at some point Slack decides Cog is offline/unresponsive due to lack of traffic and we enter this zombie state. I have reimplemented ping/pong in the @agis- is currently testing my branch in his environment to see if my changes fix the problem for him. |
It's been about 24 hours and I haven't heard any news (good or bad) regarding @agis- Please update this ticket if you're still experiencing the issue with the changed code. |
@kevsmith I was on a trip, thus the delayed answer. The issue hasn't popped up yet, I guess the PR fixed it 🎉 |
Occassionally, Cog stops replying to commands from Slack (even
help
too) and triggers.However the process is still up and Cog is emitting presence chat events in the logs. It doesn't emit any events in audit_log when commands are called though.
The problem goes away by restarting Cog. This typically happens every ~20mins.
We use the following command to trigger the issue sooner:
$ watch -n 5 curl -s --fail --data-urlencode 'body=ping' http://cog.xxx.xxx:4001/v1/triggers/29619c59-d990-4205-a7db-de75c73e1fc4
The trigger invoked is the following:
We're on Cog 0.16.1 but this happened in 0.16.0 too.
The text was updated successfully, but these errors were encountered: