Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
346 views
in Technique[技术] by (71.8m points)

Plotly Application Deployment Failed On heroku

I am trying to deploy my plotly app to the website using heroku. I followed the below steps for the same:

  1. Created a virtual environment using pycharm using the version 3.8 of Python

  2. Installed all the necessary libraries required to run my app on the virtual environment. which are Numpy, Plotly, Dash, Pandas=1.0.0 and gunicorn

  3. Created a .gitignore file with the following contents:

enter image description here

  1. Created a Procfile with the following contents(dashboard-1 is the main .py file where my code is written):

enter image description here

6.. Used heroku cli and git to build and deploy my applications to the server. The application is successfully deployed but when I go to launch the application it gives me an error. The logs are as shown:

2021-01-07T07:32:47.773278+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 393, in stop
2021-01-07T07:32:47.773697+00:00 app[web.1]:     time.sleep(0.1)
2021-01-07T07:32:47.773759+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 242, in handle_chld
2021-01-07T07:32:47.774108+00:00 app[web.1]:     self.reap_workers()
2021-01-07T07:32:47.774157+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
2021-01-07T07:32:47.774678+00:00 app[web.1]:     raise HaltServer(reason, self.WORKER_BOOT_ERROR)
2021-01-07T07:32:47.774743+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
2021-01-07T07:32:47.930226+00:00 heroku[web.1]: Process exited with status 1
2021-01-07T07:32:47.978712+00:00 heroku[web.1]: State changed from up to crashed
2021-01-07T07:32:48.514470+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=dashboard-1995.herokuapp.com request_id=a6a82e6b-0012-44d8-afb9-53f2976f5356 fwd="114.79.136.133" dyno=web.1 connect=1ms service= status=503 bytes= protocol=https
2021-01-07T07:49:30.057615+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=dashboard-1995.herokuapp.com request_id=5f577916-82cf-46c0-bd44-0310a16f24e8 fwd="18.212.132.42" dyno= connect= service= status=503 bytes= protocol=http
  

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...