Launch Bokeh on the AWS EC2 server and get a blank page. No error messages

I am trying to defer my Bokeh server using AWS. It works fine locally, but on my Linux EC2 it creates a blank webpage until error messages are displayed. I assume that EC2 does not satisfy the demands of the environment for running interactive graphs. Does anyone have experience deploying Bokeh with AWS? Do I need to install something to display graphs? Thanks, thanks guys for the answers. This is what the magazine says, which I could not say about the problem:

2016-12-29 17:52:39,665 Starting Bokeh server version 0.12.3
2016-12-29 17:52:39,669 Starting Bokeh server on port 5006 with applications at paths ['/one_page']
2016-12-29 17:52:39,669 Starting Bokeh server with process id: 14082
2016-12-29 17:52:51,560 302 GET / (10.37.130.15) 0.68ms
2016-12-29 17:52:52,304 200 GET /one_page (10.37.130.15) 721.76ms
2016-12-29 17:52:52,343 200 GET /static/css/bokeh.min.css?v=882a547e86d77d573fefc67cb37bb345 (10.37.130.15) 11.88ms
2016-12-29 17:52:52,360 200 GET /static/js/bokeh-widgets.min.js?v=ce98d7a310ecac8b77374f1ac7c4819a (10.37.130.15) 31.21ms
2016-12-29 17:52:52,375 200 GET /static/css/bokeh-widgets.min.css?v=0161cfada7394f178079e5d79c611b3f (10.37.130.15) 45.41ms
2016-12-29 17:52:52,429 200 GET /static/js/bokeh.min.js?v=2489d3f55e068b60ead4375a27399865 (10.37.130.15) 104.27ms

And the console log says:

Failed to connect to Bokeh server Error: Could not open websocket
+4
source share
1 answer

(, amazon, linux disto ..). , .

, linux:

  • Amazon Linux AMI 2017.03.1 (HVM), redhat.
  • python 3.6 bokeh 0.12.5
  • , https amazon.

bokeh , , bokeh. : " - Origin" http://52.65.113.185:5006 '; --allow-websocket-origin = 52.65.113.185: 5006"

, , bokeh : "bokeh serve --allow-websocket-origin=52.65.113.185:5006"

. "bokeh serve --allow-websocket-origin={server_ip}:5006"

+2

Source: https://habr.com/ru/post/1665238/


All Articles