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

Hubot disconnecting and doesn't reconnect. Process still running. #284

Open
ghvillasboas opened this issue Jan 16, 2017 · 5 comments
Open

Comments

@ghvillasboas
Copy link

I'm having a very frustrating time deploying this adapter on HipChat Server, both on a Heroku like solution and a dedicated CentOS instance. In both cases the bot disconnects after around 1-2 hours and never reconnects. No log output. Processes is still active. I've seen other similar issues here with the same effect. Any workaround? Thanks.

@paulomsg
Copy link

I'm getting a similar issue here.
Hubot will disconnect for an unknown reason and not reconnect anymore.

>> Lot's of DEBUG OUT while idle
[Fri Apr 07 2017 16:30:48 GMT+0000 (UTC)] DEBUG OUT > <r/>
[Fri Apr 07 2017 16:30:48 GMT+0000 (UTC)] DEBUG Disconnecting here
[Fri Apr 07 2017 16:30:48 GMT+0000 (UTC)] INFO Connection went offline
>> The last 2 messages keep repeating forever.

Is there a way to generate more debug info so I can find out why it is disconnecting?
Also, do I need to configure something in order for it to reconnect?

thanks

@plutoid
Copy link

plutoid commented May 16, 2017

you may try:
export HUBOT_HIPCHAT_RECONNECT="true"
I'm still testing it.

@paulomsg
Copy link

I'm having the same issue here. The HUBOT_HIPCHAT_RECONNECT env var doesn't help.
I wonder if hubot-hipchat is still maintained.

@daniel-beard
Copy link

I am also seeing similar issues:

{snip lots of the exact same message}
...
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] INFO Connection went offline
[Wed Feb 21 2018 14:14:20 GMT+0000 (UTC)] ERROR RangeError: Maximum call stack size exceeded
  at Log.info (/var/iosbot/node_modules/log/lib/log.js:231:17)
  at Connector.onOffline (/var/iosbot/node_modules/hubot-hipchat/src/connector.coffee:502:10, <js>:454:17)
  at emitNone (events.js:106:13)
  at Client.emit (events.js:208:7)
  at Client.<anonymous> (/var/iosbot/node_modules/node-xmpp-client/lib/Client.js:157:12)
  at emitNone (events.js:111:20)
  at Connection.emit (events.js:208:7
{snip}

@cheenpo
Copy link

cheenpo commented Mar 16, 2018

fwiw, tried export HUBOT_HIPCHAT_RECONNECT=true (after suffering for some time and then finding this issue thread) ... worked out for me

I put the exports in a .sh file like this:
$ cat hipchat.sh
#!/bin/bash
export HUBOT_HIPCHAT_HOST="private_server"
export HUBOT_HIPCHAT_JID="[email protected]"
export HUBOT_HIPCHAT_PASSWORD="redacted"
export HUBOT_HIPCHAT_JOIN_PUBLIC_ROOMS=false
export HUBOT_HIPCHAT_JOIN_ROOMS_ON_INVITE=true
export HUBOT_HIPCHAT_XMPP_DOMAIN="btf.hipchat.com"
export HUBOT_HIPCHAT_RECONNECT=true
export HUBOT_LOG_LEVEL="debug"

bin/hubot --adapter hipchat

and then just ./hipchat.sh to start the bot

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

5 participants