hipchat / hubot-hipchat

HipChat adapter for GitHub's Hubot
https://www.hipchat.com/help/page/bots
MIT License
666 stars 252 forks source link

Connection went offline, Maximum call stack size exceeded #292

Closed arca223 closed 7 years ago

arca223 commented 7 years ago

Hello everyone,

I've been facing an issue I cannot resolve because my knowledge of this repo and heroku is inexistant. Arrived in the company with a whole stack already in place, it always worked perfectly until now so I never took a look, and no modifications were made.

Since yesterday (Last use of hubot was friday so I could have been down since then), hubot is offline on hipchat and I cannot make it works.

When I restart the dynos, I get :

2017-04-27T11:17:29.263648+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.263701+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.263795+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.263907+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.275209+00:00 app[web.1]:
2017-04-27T11:17:29.275211+00:00 app[web.1]: (null):0
2017-04-27T11:17:29.275211+00:00 app[web.1]: (null)
2017-04-27T11:17:29.275211+00:00 app[web.1]:
2017-04-27T11:17:29.276226+00:00 app[web.1]: RangeError: Maximum call stack size exceeded
2017-04-27T11:17:29.261910+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.261982+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.262912+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.263346+00:00 app[web.1]: [Thu Apr 27 2017 11:17:29 GMT+0000 (UTC)] INFO Connection went offline
2017-04-27T11:17:29.393855+00:00 heroku[web.1]: Process exited with status 7
2017-04-27T11:17:29.409268+00:00 heroku[web.1]: State changed from starting to crashed

Also, something to notice is the app crashing with error H10 logs :

2017-04-27T11:40:50.917875+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=dry-wildwood-8501.herokuapp.com request_id=b169b0d6-70db-49d3-bb49-6a15f159b434 fwd="82.251.104.67" dyno= connect= service= status=503 bytes= protocol=https
2017-04-27T11:40:51.493753+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=dry-wildwood-8501.herokuapp.com request_id=c916d564-3330-4291-8444-62d0e61559b8 fwd="82.251.104.67" dyno= connect= service= status=503 bytes= protocol=https

But I don't know if the app ever worked ?

Anyone crossed or know this issue ?

Thanks a lot for your advices and help.

EDIT :

I tried going through the whole process from scratch, recreating everything.

It loops on :

2017-04-27T13:10:24.872050+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_new_relic_-_company@conf.hipchat.com
2017-04-27T13:10:24.872212+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_ci_-_company@conf.hipchat.com
2017-04-27T13:10:24.872335+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_company@conf.hipchat.com
2017-04-27T13:10:24.872454+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_company_-_sentry@conf.hipchat.com
2017-04-27T13:10:24.872577+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_librato_-_company@conf.hipchat.com
2017-04-27T13:10:24.872703+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_random@conf.hipchat.com
2017-04-27T13:10:24.872819+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_sensu@conf.hipchat.com
2017-04-27T13:10:24.872937+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_news@conf.hipchat.com
2017-04-27T13:10:24.873058+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO Joining 122145_datadog@conf.hipchat.com
2017-04-27T13:10:24.877213+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO hubot-redis-brain: Successfully authenticated to Redis
2017-04-27T13:10:24.878956+00:00 app[web.1]: [Thu Apr 27 2017 13:10:24 GMT+0000 (UTC)] INFO hubot-redis-brain: Initializing new data for hubot brain
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...

Hope it helps.. :)

arca223 commented 7 years ago

Issue resolved.

24 April, HipChat reseted all account's password due to a security incident. That way, the bot's password had to be reseted to let it connect again.

If anyone comes across this problem, it might be this.

Have a nice day.