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
267 views
in Technique[技术] by (71.8m points)

python 3.x - Panel Holoviz application deployed successfully in Azure but giving error : :( Application Error

I developed a python based application used Panel Holoviz, bokeh server inside Tornado web server. The business logic of application is once the server starts its calling some functions for creating machine learning models and use those models to predict and visualize the result using Panel widgets. This application is working perfectly in my local machine. I tried to deploy this application on Azure. Deployment is successful. But the application is taking long time to display and giving Application Error.

In the log its giving below details:

2021-01-07T11:13:18.566550827Z Build Operation ID: |7GujWPDGl/E=.4298993f_
2021-01-07T11:13:18.568124536Z Oryx Version: 0.2.20201112.1, Commit: a120bb248aa8d208ca5e02d7d9d075196e79cffd, ReleaseTagName: 20201112.1
2021-01-07T11:13:19.099754609Z Writing output script to '/opt/startup/startup.sh'
2021-01-07T11:13:19.823092672Z Using packages from virtual environment pythonenv3.7 located at /home/site/wwwroot/pythonenv3.7.
2021-01-07T11:13:19.823761819Z Updated PYTHONPATH to ':/home/site/wwwroot/pythonenv3.7/lib/python3.7/site-packages'
2021-01-07T11:13:26.658191439Z 2021-01-07 11:13:26,657 Starting Bokeh server version 2.2.3 (running on Tornado 6.1)
2021-01-07T11:13:26.666471023Z 2021-01-07 11:13:26,666 User authentication hooks NOT provided (default user enabled)
2021-01-07T11:13:26.684140469Z 2021-01-07 11:13:26,683 Bokeh app running at: http://localhost:5006/app
2021-01-07T11:13:26.684971328Z 2021-01-07 11:13:26,684 Starting Bokeh server with process id: 38

2021-01-07T11:15:30.732Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 132.2881531 sec
2021-01-07T11:15:45.816Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 147.37189 sec
2021-01-07T11:16:00.905Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 162.4617301 sec
2021-01-07T11:16:15.987Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 177.5434283 sec
2021-01-07T11:16:31.085Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 192.6412226 sec
2021-01-07T11:16:46.723Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 208.2795474 sec
2021-01-07T11:17:02.190Z INFO - Waiting for response to warmup request for container mediaforecast_0_13f9131d. Elapsed time = 223.7464665 sec
2021-01-07T11:17:09.251Z ERROR - Container mediaforecast_0_13f9131d for site mediaforecast did not start within expected time limit. Elapsed time = 230.8073655 sec
2021-01-07T11:17:09.252Z ERROR - Container mediaforecast_0_13f9131d didn't respond to HTTP pings on port: 8000, failing site start. See container logs for debugging.
2021-01-07T11:17:09.259Z INFO - Stopping site mediaforecast because it failed during startup.

From the log what I came to know its not my code deployment issue, rather about the timeout issue. Could some one help me to find the issue (whether my finding is correct or not) and provide a solution.

In app.py, my launching file I gave .show(host='0.0.0.0', port=8000).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
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

...