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

If hubot reconnects due to a slow system, it answers messages twice #210

Closed
alitheg opened this issue Jul 11, 2015 · 9 comments · Fixed by hubotio/hubot#1069
Closed

If hubot reconnects due to a slow system, it answers messages twice #210

alitheg opened this issue Jul 11, 2015 · 9 comments · Fixed by hubotio/hubot#1069
Labels
bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented

Comments

@alitheg
Copy link

alitheg commented Jul 11, 2015

I'm running hubot on a raspberry pi, and I've had to turn up the timeout to avoid "last pong too old" problems on startup. The slack adapter has been made to deal with these errors by reconnecting, but I don't think it's correctly closing the old connection properly - every response hubot sends is duplicated unless I hack the timeout value to prevent the error.

@ptierno
Copy link

ptierno commented Jul 14, 2015

👍 just started noticing this today

@eriklindebratt
Copy link
Contributor

Yep, have the same issue as well.

@eiroh
Copy link

eiroh commented Sep 7, 2015

same issue

@technicalpickles
Copy link
Contributor

I was debugging some other issues with HUBOT_LOG_LEVEL=debug, and saw:

[Sun Sep 27 2015 01:24:37 GMT-0400 (EDT)] ERROR Last pong is too old: 3598.976
[Sun Sep 27 2015 01:24:37 GMT-0400 (EDT)] INFO Reconnecting in 1000ms
[Sun Sep 27 2015 01:24:38 GMT-0400 (EDT)] INFO Attempting reconnect
[Sun Sep 27 2015 01:24:38 GMT-0400 (EDT)] INFO Connecting...
[Sun Sep 27 2015 01:24:39 GMT-0400 (EDT)] INFO Logged in as examplebot of Hubot, but not yet connected
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] INFO Slack client now connected
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Loading scripts from /examplebot-slack/scripts
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/scripts/example.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Loading scripts from /examplebot-slack/src/scripts
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Loading hubot-scripts from /examplebot-slack/node_modules/hubot-scripts/src/scripts
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Loading external-scripts from npm packages
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-help/src/help.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-google-images/src/google-images.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-google-translate/src/google-translate.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-pugme/src/pugme.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-maps/src/maps.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-rules/src/rules.coffee
[Sun Sep 27 2015 01:24:42 GMT-0400 (EDT)] DEBUG Parsing help for /examplebot-slack/node_modules/hubot-shipit/src/shipit.coffee

I'll need to dig more, but something about the reconnect is causing scripts to be loaded a second time, which would explain getting two responses.

@technicalpickles
Copy link
Contributor

@EvanLomas
Copy link

I have this issue when running hubot on a Gen1 Raspberry Pi

@joekinley
Copy link

Any idea when this will be fixed? I have this bug every day, and it gets really annoying

@Krishna-teja
Copy link

I am running hubot in azure. Having the same issue. Can we know when this can be fixed?

@technicalpickles
Copy link
Contributor

We just released hubot 2.17.0 with a fix for this: hubotio/hubot#1083

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants