[英]Application Error when launching my Python web app in Heroku
I am unable to delpy my app I am getting an Application Error
An error occurred in the application and your page could not be served.我无法删除我的应用程序 我收到Application Error
应用程序发生错误,无法提供您的页面。 It's a python flask based web app.这是一个基于 python flask 的 web 应用程序。
2022-02-17T12:53:43.416670+00:00 app[web.1]: self.reap_workers()
2022-02-17T12:53:43.416683+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.9/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2022-02-17T12:53:43.416918+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2022-02-17T12:53:43.417009+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2022-02-17T12:53:43.569838+00:00 heroku[web.1]: Process exited with status 1
2022-02-17T12:53:43.622927+00:00 heroku[web.1]: State changed from up to crashed
2022-02-17T12:53:48.830408+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ink-brew.herokuapp.com request_id=b7e91572-f0fa-4b84-87cb-6f73672d5d2b fwd="103.204.157.38" dyno=web.1 connect=0ms service= status=503 bytes= protocol=https
2022-02-17T12:53:49.639715+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ink-brew.herokuapp.com request_id=d4de9715-4533-42b7-af28-71dca168d64b fwd="103.204.157.38" dyno= connect= service= status=503 bytes= protocol=https
2022-02-17T12:53:56.584056+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ink-brew.herokuapp.com request_id=6422bc91-2df9-49c1-9ab7-70905e6ce68f fwd="103.204.157.38" dyno= connect= service= status=503 bytes= protocol=https
2022-02-17T12:53:57.039130+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ink-brew.herokuapp.com request_id=8f758644-1e66-4997-8085-b0115dcece3a fwd="103.204.157.38" dyno= connect= service= status=503 bytes= protocol=https
Please help me.请帮我。
I solved it by removing all the unused libraries and creating new requirement.txt file and committed to the git我通过删除所有未使用的库并创建新的 requirement.txt 文件并提交给 git 来解决它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.