Skip to content

Deploy to Heroku button crashes repeatedly #16

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

Open
Srol opened this issue Mar 4, 2017 · 6 comments
Open

Deploy to Heroku button crashes repeatedly #16

Srol opened this issue Mar 4, 2017 · 6 comments

Comments

@Srol
Copy link

Srol commented Mar 4, 2017

I attempted to set this up using the deploy to Heroku button in the readme. The bot deployed okay and started up fine. I could see in the console log that it had connected successfully to the Slack API and received a list of all the channels and groups I'm in.

But within 60 seconds of this, Heroku shut down the app with the following log message.

2017-03-04T14:50:49.937981+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2017-03-04T14:50:49.938076+00:00 heroku[web.1]: Stopping process with SIGKILL
2017-03-04T14:50:50.077437+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-04T14:50:50.056810+00:00 heroku[web.1]: Process exited with status 137

This happened every time the bot attempted to restart. I meant to try and clone the repo and deploy to Heroku manually to see if that has the same problem, but I am actually leaving on vacation in like 20 minutes. Just wanted to make sure I posted this before I left or I will never remember.

@shaunburdick
Copy link
Owner

Hmmm, it shouldn't be trying to start a web process seeing it's not a webserver. I haven't used Heroku in a while but I will take a look.

@shaunburdick
Copy link
Owner

Enjoy your vacation!

@shaunburdick
Copy link
Owner

Updated the app.json file with a type to see if I can get it to avoid deploying a web version. Unfortunately Heroku want's payment info to deploy it for me. I'm not inclined to give that to them so if you want to give it a try when you get back, let me know if that made a difference.

Looking around, it seems Heroku only deploys 'web' apps without needing payment info. :-/

@jesperorb
Copy link

Hey, also not able to deploy to Heroku via the button in the README. Couldn't see the whole error log on Heroku so I tried setting it up locally. The tests run and the bot can login to Slack and get the corresponding bot on my team but it crashes instantly with these errors:

Error on login

Stack trace

Not sure if it has to do with my config for the bot or just the bot and the communication to the Slack API?

@shaunburdick
Copy link
Owner

@jesperorb Is this a fresh install? Looks like you're missing moment-timezone I just added it last release.

@jesperorb
Copy link

@shaunburdick cloned it same day as I wrote the comment.moment-timezone is in both package.json and in node-modules and required right in bot.js.

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

No branches or pull requests

3 participants