Open henrykotze opened 2 years ago
Can you check if there's a timeout we can increase?
Here are relevant links which help me solved the issue: bokeh-server-2-0-0-session-expiration-duration slow-response-protocol-exceptions-protocol-error-token-is-expired
I had to increase the DEFAULT_SESSION_TOKEN_EXPIRATION global variable which is used for the parameter session_token_expiration
in the BokehTornado object. BokehTornado. Thus I increased the global variable in the bokeh/server/tornado.py file in my local user path.
I dont see a way how to increase this parameter from flight review without extending bokeh to provide access to this variable from the bokeh.server.server object (Server)which is called from the serve.py
file.
It looks like you can just pass it in:
diff --git a/app/serve.py b/app/serve.py
index 0abc47f..6e8293d 100755
--- a/app/serve.py
+++ b/app/serve.py
@@ -95,6 +95,7 @@ server_kwargs['websocket_max_message_size'] = 100 * 1024 * 1024
# increase the maximum upload size (default is 100MB)
server_kwargs['http_server_kwargs'] = {'max_buffer_size': 300 * 1024 * 1024}
+server_kwargs['session_token_expiration'] = 300
show_ulog_file = False
Interesting, I thought I tried that, and it didn't work. Will inspect and report.
Did it work?
For logs which are large, and takes time to fully load the webapp results in Bokeh throwing "Token is expired" exception. This occurs when I run the webapp locally and launch it using the
./serve -f /path/to/ulog.ulg
The console output is the following:
The program than just waits here indefinitely with the web application waiting on "Loading Plots"