2017-05-04 45 views
2

嗯..我想要做的事情完全一樣,在這篇文章Serving interactive bokeh figure on heroku 這似乎是一個重複,除非我無法讓它工作。Heroku運行散景服務器--H12超時

也就是說,運行背景虛化的movies examplegithub)。

這裏是我的requirements.txt:

dj-database-url==0.4.1 
Django==1.9.7 
gunicorn==19.6.0 
psycopg2==2.6.2 
whitenoise==2.0.6 
requests==2.9.1 
bokeh==0.12.2 
appdirs==1.4.3 
pandas==0.18.0 
six >=1.5.2 
PyYAML >=3.10 
python-dateutil >=2.1 
Jinja2 >=2.7 
numpy >=1.7.1 
tornado >=4.3 

這裏是我的Procfile,其中引用了背景虛化/例子/應用/電影目錄拷貝movies_local,位於應用程序目錄:

web: bokeh serve --port=$PORT --host=sitename.herokuapp.com --host=localhost:5000 --address=0.0.0.0 --use-xheaders movies_local/main.py 

它運行正常,當我運行heroku local但超時,當我嘗試部署它。我輕輕地編輯日誌:

2017-05:00 heroku[web.1]: Starting process with command `bokeh serve --port=19727 --host=sitename.herokuapp.com --host=localhost:5000 --address=0.0.0.0 --use-xheaders movies_local/main.py` 
2017-05:00 heroku[web.1]: State changed from starting to up 
2017-05:00 app[web.1]: 2017-05-04 21:23:40,315 Starting Bokeh server version 0.12.2 
2017-05:00 app[web.1]: 2017-05-04 21:23:40,341 Starting Bokeh server on port 19727 address 0.0.0.0 with applications at paths ['/main'] 
2017-05:00 app[web.1]: 2017-05-04 21:23:40,342 Starting Bokeh server with process id: 4 
2017-05:00 heroku[router]: at=info method=GET path="/" host=sitename.herokuapp.com request_id=3d86a460-cfa0-4d22-bb0e-2b984527fa8b fwd="47.16.208.6" dyno=web.1 connect=1ms service=3ms status=302 bytes=164 protocol=https 
2017-05:00 app[web.1]: 2017-05-04 21:23:43,099 302 GET/(47.16.208.6) 1.03ms 
2017-05:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/main" host=sitename.herokuapp.com request_id=35ca7816-6956-44b9-9d97-b8b27c273244 fwd="47.16.208.6" dyno=web.1 connect=2ms service=30000ms status=503 bytes=0 protocol=https 

很抱歉,但我非常新整體的Heroku &網頁內容。非常感謝你的任何見解。

+0

我有完全一樣的問題。我問過Heroku的支持,如果他們回覆我,我會告訴你。 – EddyTheB

回答

2

我不得不嘗試部署一個背景虛化應用的Heroku使用此完全相同的問題。在我的requirements.txt文件中將龍捲風降級到版本4.4.2後,我終於可以部署應用了。我相信這個問題是由於Bokeh服務器目前與tornado = 4.5不兼容導致的。

這裏是我的requirements.txt文件結束什麼看起來像:

bokeh==0.12.5 
certifi==2017.4.17 
chardet==3.0.4 
idna==2.5 
Jinja2==2.9.6 
MarkupSafe==1.0 
numpy==1.12.1 
pandas==0.20.1 
python-dateutil==2.6.0 
pytz==2017.2 
PyYAML==3.12 
requests==2.18.1 
six==1.10.0 
tornado==4.4.2 
urllib3==1.21.1 
xlrd==1.0.0 

我希望這有助於。

+0

這種不相容性是最近固定的(見對方的回答) – bigreddot

1

Tornado 4.5.x不兼容所有版本的散景高達0.12.5(它發佈後0.12.5發佈後的突破變化)。您可以:

  • 升級背景虛化版本0.12.6
  • 降級龍捲風< 4.5