Web App (Discord Bot) Deploy Keeps Failing?

I have a Discord bot that I’m trying to move over to Render from Heroku. I’ve uploaded the files to GitHub (private repository because of the bot token) and tried to deploy it here. Whenever I do, it ends up looking like this at the end of the deploy:

Aug 25 08:14:26 PM  ==> Generating container image from build. This may take a few minutes...
Aug 25 08:22:01 PM  ==> Uploading build...
Aug 25 08:23:08 PM  ==> Build uploaded in 34s
Aug 25 08:23:08 PM  ==> Build successful 🎉
Aug 25 08:23:08 PM  ==> Deploying...
Aug 25 08:23:34 PM  ==> Starting service with 'python botname.py'

But the deploy fails every time, without any error messages. The bot does work very briefly after each deploy for about 5 minutes or so despite the failure, and then it goes offline. I’m not sure why this is happening or what is going wrong.

It looks similar to what was happening ~10 days ago with Frankfurt. I’ve put this one in Ohio; is there another problem happening there?

Any help would be greatly appreciated!

Hi there,

Thanks for reaching out.

I’m going to assume your bot on Heroku is using a “worker dyno” (not a “web dyno”). On Render, only Web Services (equivalent to a Heroku “web dyno”) are available on the free plan. Web Services expect (and check) the code is running a web server and is able to respond to HTTP web requests.

I’d expect you’d need a Background Worker (equivalent to a Heroku “worker dyno”) for the code you’re trying to run.

Hope that helps


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.