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

Unable to run containerized app in Heroku, it gives me an error message "gunicorn: error: unrecognized arguments: wsgi:app" #16

Open
carpiodanielj opened this issue Oct 29, 2021 · 1 comment

Comments

@carpiodanielj
Copy link

I followed the instructions from the Heroku site https://devcenter.heroku.com/articles/container-registry-and-runtime and everything looks good until I tried to run the app. It's displaying the following message in logs:

2021-10-29T18:28:47.688122+00:00 app[api]: Deployed web (cf684620e1d5) by user [email protected]
2021-10-29T18:28:47.688122+00:00 app[api]: Release v7 created by user d@____.com
2021-10-29T18:28:59.442743+00:00 heroku[web.1]: Starting process with command gunicorn --config /gunicorn_config.py wsgi:app
2021-10-29T18:29:00.243531+00:00 app[web.1]: usage: gunicorn [OPTIONS] [APP_MODULE]
2021-10-29T18:29:00.243568+00:00 app[web.1]: gunicorn: error: unrecognized arguments: wsgi:app
2021-10-29T18:29:00.428555+00:00 heroku[web.1]: Process exited with status 2
2021-10-29T18:29:00.588879+00:00 heroku[web.1]: State changed from starting to crashed

But when I run the app in Docker Desktop (Windows) everything is working fine, no problem.

Anyone can help me please? Thanks in advance.

@scollovati
Copy link

I've the same issue even if I added a Procfile like this web: gunicorn app.wsgi:app --preload.

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

2 participants