简体   繁体   English

在 Heroku 中启动我的 Python web 应用程序时出现应用程序错误

[英]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.

相关问题 应用程序错误:我的 Flask-web-app 已成功部署在 Heroku 上,但在加载站点时收到应用程序错误 - Application error: My Flask-web-app is successfully deploy on Heroku but receiving application error when loading site 我在 Heroku 上成功部署了我的 Web 应用程序,但显示应用程序错误 - I successfully deployed my web app on Heroku but shows Application Error 尝试访问我的 Heroku 应用程序(Python/Flask)时出现“没有网络进程运行”错误 - "No web processes running" error when trying to reach my Heroku app (Python/Flask) 我能够在 heroku 上构建我的 django web 应用程序,但在启动时显示这些错误(错误日志如下所示) - i am able to build my django web app on heroku but while launching its showing these error(error log shown below) Heroku 上的应用程序错误(Django Web-App) - Application Error on Heroku (Django Web-App) Heroku 应用程序错误(Django web App) - Heroku Application Error (Django web App) 在heroku中启动应用程序? 什么是procfile? “网络:”命令? - Launching an app in heroku? What is procfile? 'web:' command? Python Dash 应用程序:Heroku 应用程序错误 - Python Dash App: Heroku Application Error 部署 Dash 应用程序时出现 Heroku 应用程序错误 - Heroku Application Error when deploying Dash app Heroku 部署 Flask 应用程序时出现“应用程序错误” - Heroku "Application error" when deploying Flask app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM