Gunicorn returns an error when running heroku logs

拜拜、爱过 提交于 2020-05-19 10:53:09

问题


When running heroku logs --tail I am getting the following error looping infinitely. The main error is this "unexpected extra argument" That I can't understand. My procfile is web: gunicorn app:app and my main ".py" file is app.py. So the procfile is fine. Don't really know what's happening here. Thanks in advance

[2020-05-06 22:18:21 +0000] [4256] [INFO] Worker exiting (pid: 4256)
2020-05-06T22:18:21.783472+00:00 app[web.1]: [2020-05-06 22:18:21 +0000] [4258] [INFO] Booting worker with pid: 4258
2020-05-06T22:18:21.803986+00:00 app[web.1]: Usage: gunicorn [OPTIONS]
2020-05-06T22:18:21.803987+00:00 app[web.1]: Try 'gunicorn --help' for help.
2020-05-06T22:18:21.803988+00:00 app[web.1]: 
2020-05-06T22:18:21.804014+00:00 app[web.1]: Error: Got unexpected extra argument (app:app)
2020-05-06T22:18:21.804437+00:00 app[web.1]: [2020-05-06 22:18:21 +0000] [4257] [INFO] Worker exiting (pid: 4257)
2020-05-06T22:18:21.891864+00:00 app[web.1]: [2020-05-06 22:18:21 +0000] [4259] [INFO] Booting worker with pid: 4259
2020-05-06T22:18:22.412798+00:00 app[web.1]: Usage: gunicorn [OPTIONS]
2020-05-06T22:18:22.412829+00:00 app[web.1]: Try 'gunicorn --help' for help.
2020-05-06T22:18:22.412829+00:00 app[web.1]: 
2020-05-06T22:18:22.412836+00:00 app[web.1]: Error: Got unexpected extra argument (app:app)
2020-05-06T22:18:22.413113+00:00 app[web.1]: [2020-05-06 22:18:22 +0000] [4258] [INFO] Worker exiting (pid: 4258)
2020-05-06T22:18:22.490604+00:00 app[web.1]: Usage: gunicorn [OPTIONS]
2020-05-06T22:18:22.490606+00:00 app[web.1]: Try 'gunicorn --help' for help.
2020-05-06T22:18:22.490606+00:00 app[web.1]: 
2020-05-06T22:18:22.490613+00:00 app[web.1]: Error: Got unexpected extra argument (app:app)
2020-05-06T22:18:22.490941+00:00 app[web.1]: [2020-05-06 22:18:22 +0000] [4259] [INFO] Worker exiting (pid: 4259)
2020-05-06T22:18:22.499552+00:00 app[web.1]: [2020-05-06 22:18:22 +0000] [4260] [INFO] Booting worker with pid: 4260

Down here is my profile:

web: gunicorn app:app

来源:https://stackoverflow.com/questions/61647978/gunicorn-returns-an-error-when-running-heroku-logs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!