我试图通过Heroku env用烧瓶创建具有学习模型的应用程序
2019-11-17T01:24:29.506868 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py”,第583行,在spawn_worker中
2019-11-17T01:24:29.506869 + 00:00 app [web.1]:worker.init_process()
2019-11-17T01:24:29.506871 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py”,行133,在init_process中
2019-11-17T01:24:29.506872 + 00:00 app [web.1]:self.load_wsgi()
2019-11-17T01:24:29.506874 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py”,行142,在load_wsgi中
2019-11-17T01:24:29.506875 + 00:00 app [web.1]:self.wsgi = self.app.wsgi()
2019-11-17T01:24:29.506877 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py”,行67,在wsgi中
2019-11-17T01:24:29.506878 + 00:00 app [web.1]:self.callable = self.load()
2019-11-17T01:24:29.506880 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py”,行49,在负载中
2019-11-17T01:24:29.506881 + 00:00 app [web.1]:返回self.load_wsgiapp()
2019-11-17T01:24:29.506883 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py”,行39,在load_wsgiapp中
2019-11-17T01:24:29.506884 + 00:00 app [web.1]:返回util.import_app(self.app_uri)
2019-11-17T01:24:29.506885 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py”,第331行在import_app中
2019-11-17T01:24:29.506887 + 00:00 app [web.1]:mod = importlib.import_module(模块)
2019-11-17T01:24:29.506889 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/importlib/init.py”, import_module中的第126行
2019-11-17T01:24:29.506890 + 00:00 app [web.1]:返回_bootstrap._gcd_import(name [level:],package,level)
2019-11-17T01:24:29.506892 + 00:00 app [web.1]:文件“”,行994,_gcd_import
2019-11-17T01:24:29.506893 + 00:00 app [web.1]:文件“”,第971行,在_find_and_load中
2019-11-17T01:24:29.506894 + 00:00 app [web.1]:文件“”,第953行,在_find_and_load_unlocked中
2019-11-17T01:24:29.506896 + 00:00 app [web.1]:ModuleNotFoundError:没有名为'application'的模块
2019-11-17T01:24:29.506986 + 00:00 app [web.1]:[2019-11-17 01:24:29 +0000] [11] [INFO]工人退出(pid:11)
2019-11-17T01:24:29.533341 + 00:00 app [web.1]:[2019-11-17 01:24:29 +0000] [4] [INFO]关机:主
2019-11-17T01:24:29.533421 + 00:00 app [web.1]:[2019-11-17 01:24:29 +0000] [4] [INFO]原因:工作程序无法启动。
2019-11-17T01:24:29.601346 + 00:00 heroku [web.1]:进程退出,状态为3
2019-11-17T04:07:39.025573 + 00:00 heroku [router]:at =错误代码= H10 desc =“ App崩溃”方法= GET路径=“ /” host = ny-cab-fare-prediction-api。 herokuapp.com request_id = c63bd1ad-8314-452b-b9ea-5f72a0c524cf fwd =“ 103.5.134.31” dyno = connect =服务=状态= 503字节=协议= https
2019-11-17T04:07:39.936881 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ / favicon.ico”主机= ny-cab-fare-prediction -api.herokuapp.com request_id = 4dd5e588-dd2c-486e-a998-6bd6cbf5298d fwd =“ 103.5.134.31” dyno = connect = service = status = 503 bytes = protocol = https
2019-11-17T05:18:07.225765 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃” method = GET path =“ /” host = ny-cab-fare-prediction-api。 herokuapp.com request_id = fc42949c-9825-4ecb-877e-b13983bbb948 fwd =“ 103.5.134.31” dyno = connect =服务=状态= 503字节=协议= https
2019-11-17T05:18:07.906552 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ / favicon.ico”主机= ny-cab-fare-prediction -api.herokuapp.com request_id = 3e214acf-6344-418e-ac4f-9fc064471329 fwd =“ 103.5.134.31” dyno = connect =服务=状态= 503字节=协议= https
2019-11-17T05:18:33.000000 + 00:00 app [api]:构建由用户yegavintin@gmail.com开始
2019-11-17T05:19:07.395350 + 00:00 heroku [web.1]:状态从崩溃更改为开始
2019-11-17T05:19:07.061059 + 00:00 app [api]:由用户yegavintin@gmail.com部署1345edea
2019-11-17T05:19:07.061059 + 00:00 app [api]:由用户yegavintin@gmail.com创建的v7版本
2019-11-17T05:19:14.659794 + 00:00 heroku [web.1]:使用命令gunicorn application:app
启动进程
2019-11-17T05:19:17.128085 + 00:00 heroku [web.1]:状态从开始更改为崩溃
2019-11-17T05:19:17.132088 + 00:00 heroku [web.1]:状态从崩溃更改为开始
2019-11-17T05:19:16.965846 + 00:00 app [web.1]:[2019-11-17 05:19:16 +0000] [4] [INFO]开始使用古尼康20.0.0
2019-11-17T05:19:16.966852 + 00:00 app [web.1]:[2019-11-17 05:19:16 +0000] [4] [INFO]聆听:http://0.0.0.0:32063(4 )
2019-11-17T05:19:16.967039 + 00:00 app [web.1]:[2019-11-17 05:19:16 +0000] [4] [INFO]使用worker:同步
2019-11-17T05:19:16.971935 + 00:00 app [web.1]:[2019-11-17 05:19:16 +0000] [11] [INFO]使用pid启动工人:11
2019-11-17T05:19:16.977535 + 00:00 app [web.1]:[2019-11-17 05:19:16 +0000] [11] [ERROR]辅助进程异常
2019-11-17T05:19:16.977539 + 00:00 app [web.1]:追溯(最近一次拨打电话):
2019-11-17T05:19:16.977542 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py”,第583行,在spawn_worker中
2019-11-17T05:19:16.977544 + 00:00 app [web.1]:worker.init_process()
2019-11-17T05:19:16.977546 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py”,行133,在init_process中
2019-11-17T05:19:16.977548 + 00:00 app [web.1]:self.load_wsgi()
2019-11-17T05:19:16.977550 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py”,行142,在load_wsgi中
2019-11-17T05:19:16.977552 + 00:00 app [web.1]:self.wsgi = self.app.wsgi()
2019-11-17T05:19:16.977554 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py”,行67,在wsgi中
2019-11-17T05:19:16.977556 + 00:00 app [web.1]:self.callable = self.load()
2019-11-17T05:19:16.977558 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py”,行49,在负载中
2019-11-17T05:19:16.977560 + 00:00 app [web.1]:返回self.load_wsgiapp()
2019-11-17T05:19:16.977562 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py”,行39,在load_wsgiapp中
2019-11-17T05:19:16.977564 + 00:00 app [web.1]:返回util.import_app(self.app_uri)
2019-11-17T05:19:16.977566 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py”,第331行在import_app中
2019-11-17T05:19:16.977568 + 00:00 app [web.1]:mod = importlib.import_module(模块)
2019-11-17T05:19:16.977570 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/importlib/init.py”, import_module中的第126行
2019-11-17T05:19:16.977573 + 00:00 app [web.1]:返回_bootstrap._gcd_import(name [level:],package,level)
2019-11-17T05:19:16.977575 + 00:00 app [web.1]:文件“”,行994,_gcd_import
2019-11-17T05:19:16.977577 + 00:00 app [web.1]:文件“”,第971行,在_find_and_load中
2019-11-17T05:19:16.977579 + 00:00 app [web.1]:文件“”,第953行,在_find_and_load_unlocked中
2019-11-17T05:19:16.977587 + 00:00 app [web.1]:ModuleNotFoundError:没有名为'application'的模块
2019-11-17T05:19:16.977747 + 00:00 app [web.1]:[2019-11-17 05:19:16 +0000] [11] [INFO]工人退出(pid:11)
2019-11-17T05:19:17.019314 + 00:00 app [web.1]:[2019-11-17 05:19:17 +0000] [4] [INFO]关机:主
2019-11-17T05:19:17.019530 + 00:00 app [web.1]:[2019-11-17 05:19:17 +0000] [4] [INFO]原因:工作程序无法启动。
2019-11-17T05:19:17.104870 + 00:00 heroku [web.1]:进程退出,状态为3
2019-11-17T05:19:25.549819 + 00:00 heroku [web.1]:使用命令gunicorn application:app
启动进程
2019-11-17T05:19:27.758021 + 00:00 heroku [web.1]:状态从开始更改为崩溃
2019-11-17T05:19:27.630416 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [4] [INFO]开始使用金枪鱼20.0.0
2019-11-17T05:19:27.630968 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [4] [INFO]聆听:http://0.0.0.0:30205(4 )
2019-11-17T05:19:27.631086 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [4] [INFO]使用worker:同步
2019-11-17T05:19:27.636390 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [11] [INFO]使用pid启动工人:11
2019-11-17T05:19:27.642955 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [11] [ERROR]辅助进程异常
2019-11-17T05:19:27.642958 + 00:00 app [web.1]:追溯(最近一次通话):
2019-11-17T05:19:27.642959 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py”,第583行,在spawn_worker中
2019-11-17T05:19:27.642964 + 00:00 app [web.1]:worker.init_process()
2019-11-17T05:19:27.642965 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py”,行133,在init_process中
2019-11-17T05:19:27.642967 + 00:00 app [web.1]:self.load_wsgi()
2019-11-17T05:19:27.642968 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/workers/base.py”,行142,在load_wsgi中
2019-11-17T05:19:27.642970 + 00:00 app [web.1]:self.wsgi = self.app.wsgi()
2019-11-17T05:19:27.642972 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/base.py”,行67,在wsgi中
2019-11-17T05:19:27.642973 + 00:00 app [web.1]:self.callable = self.load()
2019-11-17T05:19:27.642975 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py”,行49,在负载中
2019-11-17T05:19:27.642976 + 00:00 app [web.1]:返回self.load_wsgiapp()
2019-11-17T05:19:27.642978 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py”,行39,在load_wsgiapp中
2019-11-17T05:19:27.642979 + 00:00 app [web.1]:返回util.import_app(self.app_uri)
2019-11-17T05:19:27.642980 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/site-packages/gunicorn/util.py”,第331行在import_app中
2019-11-17T05:19:27.642982 + 00:00 app [web.1]:mod = importlib.import_module(模块)
2019-11-17T05:19:27.642983 + 00:00 app [web.1]:文件“ /app/.heroku/python/lib/python3.6/importlib/init.py”, import_module中的第126行
2019-11-17T05:19:27.642985 + 00:00 app [web.1]:返回_bootstrap._gcd_import(name [level:],package,level)
2019-11-17T05:19:27.642987 + 00:00 app [web.1]:文件“”,行994,_gcd_import
2019-11-17T05:19:27.642988 + 00:00 app [web.1]:文件“”,第971行,在_find_and_load中
2019-11-17T05:19:27.642990 + 00:00 app [web.1]:文件“”,第953行,在_find_and_load_unlocked中
2019-11-17T05:19:27.642994 + 00:00 app [web.1]:ModuleNotFoundError:没有名为``应用程序''的模块
2019-11-17T05:19:27.643170 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [11] [INFO]工人退出(pid:11)
2019-11-17T05:19:27.682204 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [4] [INFO]关机:主
2019-11-17T05:19:27.682293 + 00:00 app [web.1]:[2019-11-17 05:19:27 +0000] [4] [INFO]原因:工作程序无法启动。
2019-11-17T05:19:27.742185 + 00:00 heroku [web.1]:进程退出,状态为3
2019-11-17T05:19:28.000000 + 00:00 app [api]:构建成功
2019-11-17T05:21:57.875588 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法=获取路径=“ /”主机= ny-cab-fare-prediction-api。 herokuapp.com request_id = cf5e1a0c-7b15-4344-a7d6-1e9d18950322 fwd =“ 103.5.134.31” dyno = connect =服务=状态= 503字节=协议= https
2019-11-17T05:21:58.581392 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ / favicon.ico”主机= ny-cab-fare-prediction -api.herokuapp.com request_id = 3ab91fae-db55-4a87-a571-64dc5d3dafb9 fwd =“ 103.5.134.31” dyno = connect = service = status = 503 bytes = protocol = https
答案 0 :(得分:0)
不确定为什么您在Procefile中拥有web: gunicorn application:app
。您的存储库没有应用程序模块。
请将您的Procfile内容更改为web: gunicorn app:app
。