Bokeh sserver Error 403

Hi guys,

I am trying to deploy my Flask + Bokeh project on IIS now, so far, the job is partially done, I successfully deployed project on IIS. But, when I try to visit the websit, I get the error like this "

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."

when I try to have access to Bokeh server, I get error like this “”

I launch server use these statements:

@app.route(’/’, methods=[‘GET’])

def bkapp_page():

“”“Renders the home page.”""

url=“http://172.20.101.16:5006/

session=pull_session(url=url, app_path="\DataVisualizationWebApp\bk_plotter")

script = server_document(url=url)

return render_template(“embed.html”, script=script, template=“Flask”)

``

def bk_worker():

 server = Server({'/bk_plotter': bk_plter.plot_doc}, io_loop=IOLoop(), address="0.0.0.0", allow_websocket_origin=["172.20.101.16:8011"], host="http://172.20.101.16:5006")

server.start()

server.io_loop.start()

``

from os import environ

from DataVisualizationWebApp import app, views

from threading import Thread

import socket

from werkzeug.contrib.fixers import ProxyFix

Thread(target=views.bk_worker).start()

app.wsgi_app = ProxyFix(app.wsgi_app)

if name == ‘main’:

app.run(port=8080)

``

thanks for any feedback

when I visit localhost:8011 Console displays this:“localhost/:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)”

···

On Thursday, July 5, 2018 at 10:03:57 AM UTC-6, peng wang wrote:

Hi guys,

I am trying to deploy my Flask + Bokeh project on IIS now, so far, the job is partially done, I successfully deployed project on IIS. But, when I try to visit the websit, I get the error like this "

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."

when I try to have access to Bokeh server, I get error like this “”

I launch server use these statements:

@app.route(’/’, methods=[‘GET’])

def bkapp_page():

“”“Renders the home page.”""

url=“http://172.20.101.16:5006/

session=pull_session(url=url, app_path="\DataVisualizationWebApp\bk_plotter")

script = server_document(url=url)

return render_template(“embed.html”, script=script, template=“Flask”)

``

def bk_worker():

 server = Server({'/bk_plotter': bk_plter.plot_doc}, io_loop=IOLoop(), address="0.0.0.0", allow_websocket_origin=["[172.20.101.16:8011](http://172.20.101.16:8011)"], host="[http://172.20.101.16:5006](http://172.20.101.16:5006)")

server.start()

server.io_loop.start()

``

from os import environ

from DataVisualizationWebApp import app, views

from threading import Thread

import socket

from werkzeug.contrib.fixers import ProxyFix

Thread(target=views.bk_worker).start()

app.wsgi_app = ProxyFix(app.wsgi_app)

if name == ‘main’:

app.run(port=8080)

``

thanks for any feedback

Finally Solved.

···

On Thursday, July 5, 2018 at 10:17:56 AM UTC-6, peng wang wrote:

when I visit localhost:8011 Console displays this:“localhost/:1 Failed to load resource: the server responded with a status of 500 (INTERNAL SERVER ERROR)”

On Thursday, July 5, 2018 at 10:03:57 AM UTC-6, peng wang wrote:

Hi guys,

I am trying to deploy my Flask + Bokeh project on IIS now, so far, the job is partially done, I successfully deployed project on IIS. But, when I try to visit the websit, I get the error like this "

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."

when I try to have access to Bokeh server, I get error like this “”

I launch server use these statements:

@app.route(’/’, methods=[‘GET’])

def bkapp_page():

“”“Renders the home page.”""

url=“http://172.20.101.16:5006/

session=pull_session(url=url, app_path="\DataVisualizationWebApp\bk_plotter")

script = server_document(url=url)

return render_template(“embed.html”, script=script, template=“Flask”)

``

def bk_worker():

 server = Server({'/bk_plotter': bk_plter.plot_doc}, io_loop=IOLoop(), address="0.0.0.0", allow_websocket_origin=["[172.20.101.16:8011](http://172.20.101.16:8011)"], host="[http://172.20.101.16:5006](http://172.20.101.16:5006)")

server.start()

server.io_loop.start()

``

from os import environ

from DataVisualizationWebApp import app, views

from threading import Thread

import socket

from werkzeug.contrib.fixers import ProxyFix

Thread(target=views.bk_worker).start()

app.wsgi_app = ProxyFix(app.wsgi_app)

if name == ‘main’:

app.run(port=8080)

``

thanks for any feedback