bokeh server problem - 403 Forbidden HTTP

Hello,

I have a problem with my bokeh app. The connection over the local network is fine.
But over the internet there is a problem with some GET Method. Error 403

GET /bokeh/app_multi9/ws?bokeh-protocol-version=1.0&bokeh-session-id=uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C HTTP/1.1
Host: …hl7mthpo.myfritz.net
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Sec-WebSocket-Version: 13
Origin: …hl7mthpo.myfritz.net
Sec-WebSocket-Extensions: permessage-deflate
Sec-WebSocket-Key: 1q8hoYXribMZQWRjKoWKTA==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket

Log from the bokeh server:
2016-08-30 15:39:00,852 200 GET /bokeh/app_multi9 (127.0.0.1) 423.15ms
2016-08-30 15:39:01,089 304 GET /bokeh/static/css/bokeh.min.css?v=aebc31f7f85efd69748ac7065c815c7f (127.0.0.1) 51.27ms
2016-08-30 15:39:01,113 304 GET /bokeh/static/js/bokeh-compiler.min.js?v=dbbd0d5aebe5ef1e92d86b8e1120e516 (127.0.0.1) 9.41ms
2016-08-30 15:39:01,128 304 GET /bokeh/static/js/bokeh-widgets.min.js?v=6d62f070a9287feeed92a3f269aef02f (127.0.0.1) 7.52ms
2016-08-30 15:39:01,143 304 GET /bokeh/static/css/bokeh-widgets.min.css?v=522d6173498a389c7f74f0e675195da0 (127.0.0.1) 7.47ms
2016-08-30 15:39:01,157 304 GET /bokeh/static/js/bokeh.min.js?v=60bb5dd2f5e2b46c72b11ddd9b9c362a (127.0.0.1) 7.34ms
2016-08-30 15:39:04,399 [pid 16881] 0 clients connected
2016-08-30 15:39:04,400 [pid 16881] /app_multi9 has 1 sessions with 1 unused
2016-08-30 15:39:18,410 Discarding session ‘uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C’ last in use 17577.238550066948 milliseconds ago

My Server works with nginx. My cherrypy website over nginx is reachable too.
location /bokeh {
proxy_pass http://127.0.0.1:5006;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_buffering off;
}

Any suggestion?

What exact command are you using to start the bokeh server?

Thanks,

Bryan

···

On Aug 30, 2016, at 8:56 AM, 'the_driver02' via Bokeh Discussion - Public <[email protected]> wrote:

Hello,

I have a problem with my bokeh app. The connection over the local network is fine.
But over the internet there is a problem with some GET Method. Error 403

GET /bokeh/app_multi9/ws?bokeh-protocol-version=1.0&bokeh-session-id=uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C HTTP/1.1
Host: ...hl7mthpo.myfritz.net
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Sec-WebSocket-Version: 13
Origin: ...hl7mthpo.myfritz.net
Sec-WebSocket-Extensions: permessage-deflate
Sec-WebSocket-Key: 1q8hoYXribMZQWRjKoWKTA==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket

Log from the bokeh server:
2016-08-30 15:39:00,852 200 GET /bokeh/app_multi9 (127.0.0.1) 423.15ms
2016-08-30 15:39:01,089 304 GET /bokeh/static/css/bokeh.min.css?v=aebc31f7f85efd69748ac7065c815c7f (127.0.0.1) 51.27ms
2016-08-30 15:39:01,113 304 GET /bokeh/static/js/bokeh-compiler.min.js?v=dbbd0d5aebe5ef1e92d86b8e1120e516 (127.0.0.1) 9.41ms
2016-08-30 15:39:01,128 304 GET /bokeh/static/js/bokeh-widgets.min.js?v=6d62f070a9287feeed92a3f269aef02f (127.0.0.1) 7.52ms
2016-08-30 15:39:01,143 304 GET /bokeh/static/css/bokeh-widgets.min.css?v=522d6173498a389c7f74f0e675195da0 (127.0.0.1) 7.47ms
2016-08-30 15:39:01,157 304 GET /bokeh/static/js/bokeh.min.js?v=60bb5dd2f5e2b46c72b11ddd9b9c362a (127.0.0.1) 7.34ms
2016-08-30 15:39:04,399 [pid 16881] 0 clients connected
2016-08-30 15:39:04,400 [pid 16881] /app_multi9 has 1 sessions with 1 unused
2016-08-30 15:39:18,410 Discarding session 'uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C' last in use 17577.238550066948 milliseconds ago

My Server works with nginx. My cherrypy website over nginx is reachable too.
        location /bokeh {
        proxy_pass http://127.0.0.1:5006;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_http_version 1.1;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host:$server_port;
        proxy_buffering off;
    }

Any suggestion?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/ea4d0d68-91f7-41a9-acbd-f8547a0b09f2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<inet.png>

bokeh serve app_multi9.py --log-level=debug --host hl7mthpo.myfritz.net:80 --prefix=bokeh --host localhost:5006

The server runs behind a router (fritzbox) and port forwarding is active (port 80).

···

Am Dienstag, 30. August 2016 16:20:10 UTC+2 schrieb Bryan Van de ven:

What exact command are you using to start the bokeh server?

Thanks,

Bryan

On Aug 30, 2016, at 8:56 AM, ‘the_driver02’ via Bokeh Discussion - Public [email protected] wrote:

Hello,

I have a problem with my bokeh app. The connection over the local network is fine.

But over the internet there is a problem with some GET Method. Error 403

GET /bokeh/app_multi9/ws?bokeh-protocol-version=1.0&bokeh-session-id=uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C HTTP/1.1

Host: …hl7mthpo.myfritz.net

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8

Accept-Language: de,en-US;q=0.7,en;q=0.3

Accept-Encoding: gzip, deflate

DNT: 1

Sec-WebSocket-Version: 13

Origin: …hl7mthpo.myfritz.net

Sec-WebSocket-Extensions: permessage-deflate

Sec-WebSocket-Key: 1q8hoYXribMZQWRjKoWKTA==

Connection: keep-alive, Upgrade

Pragma: no-cache

Cache-Control: no-cache

Upgrade: websocket

Log from the bokeh server:

2016-08-30 15:39:00,852 200 GET /bokeh/app_multi9 (127.0.0.1) 423.15ms

2016-08-30 15:39:01,089 304 GET /bokeh/static/css/bokeh.min.css?v=aebc31f7f85efd69748ac7065c815c7f (127.0.0.1) 51.27ms

2016-08-30 15:39:01,113 304 GET /bokeh/static/js/bokeh-compiler.min.js?v=dbbd0d5aebe5ef1e92d86b8e1120e516 (127.0.0.1) 9.41ms

2016-08-30 15:39:01,128 304 GET /bokeh/static/js/bokeh-widgets.min.js?v=6d62f070a9287feeed92a3f269aef02f (127.0.0.1) 7.52ms

2016-08-30 15:39:01,143 304 GET /bokeh/static/css/bokeh-widgets.min.css?v=522d6173498a389c7f74f0e675195da0 (127.0.0.1) 7.47ms

2016-08-30 15:39:01,157 304 GET /bokeh/static/js/bokeh.min.js?v=60bb5dd2f5e2b46c72b11ddd9b9c362a (127.0.0.1) 7.34ms

2016-08-30 15:39:04,399 [pid 16881] 0 clients connected

2016-08-30 15:39:04,400 [pid 16881] /app_multi9 has 1 sessions with 1 unused

2016-08-30 15:39:18,410 Discarding session ‘uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C’ last in use 17577.238550066948 milliseconds ago

My Server works with nginx. My cherrypy website over nginx is reachable too.
location /bokeh {

    proxy_pass [http://127.0.0.1:5006](http://127.0.0.1:5006);
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host:$server_port;
    proxy_buffering off;
}

Any suggestion?


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/ea4d0d68-91f7-41a9-acbd-f8547a0b09f2%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

<inet.png>

I'm afraid this is moving beyond my personal knowledge and experience of network operations. Is it possible the websocket traffic is not making it though the router? If the Bokeh server itself returns a 403, you would see that in the log. It looks like the static resources are being served, which is what makes me wonder about the websocket forwarding.

Is thee any error/output in the brower's JavaScript console?

Thanks,

Bryan

···

On Aug 30, 2016, at 9:29 AM, 'the_driver02' via Bokeh Discussion - Public <[email protected]> wrote:

bokeh serve app_multi9.py --log-level=debug --host hl7mthpo.myfritz.net:80 --prefix=bokeh --host localhost:5006

The server runs behind a router (fritzbox) and port forwarding is active (port 80).

Am Dienstag, 30. August 2016 16:20:10 UTC+2 schrieb Bryan Van de ven:
What exact command are you using to start the bokeh server?

Thanks,

Bryan

> On Aug 30, 2016, at 8:56 AM, 'the_driver02' via Bokeh Discussion - Public <[email protected]> wrote:
>
> Hello,
>
> I have a problem with my bokeh app. The connection over the local network is fine.
> But over the internet there is a problem with some GET Method. Error 403
>
> GET /bokeh/app_multi9/ws?bokeh-protocol-version=1.0&bokeh-session-id=uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C HTTP/1.1
> Host: ...hl7mthpo.myfritz.net
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: de,en-US;q=0.7,en;q=0.3
> Accept-Encoding: gzip, deflate
> DNT: 1
> Sec-WebSocket-Version: 13
> Origin: ...hl7mthpo.myfritz.net
> Sec-WebSocket-Extensions: permessage-deflate
> Sec-WebSocket-Key: 1q8hoYXribMZQWRjKoWKTA==
> Connection: keep-alive, Upgrade
> Pragma: no-cache
> Cache-Control: no-cache
> Upgrade: websocket
>
> Log from the bokeh server:
> 2016-08-30 15:39:00,852 200 GET /bokeh/app_multi9 (127.0.0.1) 423.15ms
> 2016-08-30 15:39:01,089 304 GET /bokeh/static/css/bokeh.min.css?v=aebc31f7f85efd69748ac7065c815c7f (127.0.0.1) 51.27ms
> 2016-08-30 15:39:01,113 304 GET /bokeh/static/js/bokeh-compiler.min.js?v=dbbd0d5aebe5ef1e92d86b8e1120e516 (127.0.0.1) 9.41ms
> 2016-08-30 15:39:01,128 304 GET /bokeh/static/js/bokeh-widgets.min.js?v=6d62f070a9287feeed92a3f269aef02f (127.0.0.1) 7.52ms
> 2016-08-30 15:39:01,143 304 GET /bokeh/static/css/bokeh-widgets.min.css?v=522d6173498a389c7f74f0e675195da0 (127.0.0.1) 7.47ms
> 2016-08-30 15:39:01,157 304 GET /bokeh/static/js/bokeh.min.js?v=60bb5dd2f5e2b46c72b11ddd9b9c362a (127.0.0.1) 7.34ms
> 2016-08-30 15:39:04,399 [pid 16881] 0 clients connected
> 2016-08-30 15:39:04,400 [pid 16881] /app_multi9 has 1 sessions with 1 unused
> 2016-08-30 15:39:18,410 Discarding session 'uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C' last in use 17577.238550066948 milliseconds ago
>
>
> My Server works with nginx. My cherrypy website over nginx is reachable too.
> location /bokeh {
> proxy_pass http://127.0.0.1:5006;
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection "upgrade";
> proxy_http_version 1.1;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header Host $host:$server_port;
> proxy_buffering off;
> }
>
> Any suggestion?
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/ea4d0d68-91f7-41a9-acbd-f8547a0b09f2%40continuum.io.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout.
> <inet.png>

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2fb2b85a-8bcc-462f-be35-103f7772fc7c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hello Bryan,

the server works the whole time. Sorry
At my workplace there seems to be a firewall that blocks the websocket connection.
Firefox for android can’t show the app too. Chrome works fine.

JavaScript console:
Bokeh: Failed to connect to Bokeh server Error: Could not open websocket.

I think the gallery examples work everywhere, because they use a https connection.

Best regards, the_driver02

···

Am Montag, 5. September 2016 21:55:17 UTC+2 schrieb Bryan Van de ven:

I’m afraid this is moving beyond my personal knowledge and experience of network operations. Is it possible the websocket traffic is not making it though the router? If the Bokeh server itself returns a 403, you would see that in the log. It looks like the static resources are being served, which is what makes me wonder about the websocket forwarding.

Is thee any error/output in the brower’s JavaScript console?

Thanks,

Bryan

On Aug 30, 2016, at 9:29 AM, ‘the_driver02’ via Bokeh Discussion - Public [email protected] wrote:

bokeh serve app_multi9.py --log-level=debug --host hl7mthpo.myfritz.net:80 --prefix=bokeh --host localhost:5006

The server runs behind a router (fritzbox) and port forwarding is active (port 80).

Am Dienstag, 30. August 2016 16:20:10 UTC+2 schrieb Bryan Van de ven:

What exact command are you using to start the bokeh server?

Thanks,

Bryan

On Aug 30, 2016, at 8:56 AM, ‘the_driver02’ via Bokeh Discussion - Public [email protected] wrote:

Hello,

I have a problem with my bokeh app. The connection over the local network is fine.
But over the internet there is a problem with some GET Method. Error 403

GET /bokeh/app_multi9/ws?bokeh-protocol-version=1.0&bokeh-session-id=uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C HTTP/1.1
Host: …hl7mthpo.myfritz.net

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: de,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Sec-WebSocket-Version: 13
Origin: …hl7mthpo.myfritz.net

Sec-WebSocket-Extensions: permessage-deflate
Sec-WebSocket-Key: 1q8hoYXribMZQWRjKoWKTA==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket

Log from the bokeh server:
2016-08-30 15:39:00,852 200 GET /bokeh/app_multi9 (127.0.0.1) 423.15ms
2016-08-30 15:39:01,089 304 GET /bokeh/static/css/bokeh.min.css?v=aebc31f7f85efd69748ac7065c815c7f (127.0.0.1) 51.27ms
2016-08-30 15:39:01,113 304 GET /bokeh/static/js/bokeh-compiler.min.js?v=dbbd0d5aebe5ef1e92d86b8e1120e516 (127.0.0.1) 9.41ms
2016-08-30 15:39:01,128 304 GET /bokeh/static/js/bokeh-widgets.min.js?v=6d62f070a9287feeed92a3f269aef02f (127.0.0.1) 7.52ms
2016-08-30 15:39:01,143 304 GET /bokeh/static/css/bokeh-widgets.min.css?v=522d6173498a389c7f74f0e675195da0 (127.0.0.1) 7.47ms
2016-08-30 15:39:01,157 304 GET /bokeh/static/js/bokeh.min.js?v=60bb5dd2f5e2b46c72b11ddd9b9c362a (127.0.0.1) 7.34ms
2016-08-30 15:39:04,399 [pid 16881] 0 clients connected
2016-08-30 15:39:04,400 [pid 16881] /app_multi9 has 1 sessions with 1 unused
2016-08-30 15:39:18,410 Discarding session ‘uxgh4ilVkRlMd5gQy8GMsX6ZLODgO1UD1W7Jgj3lbe8C’ last in use 17577.238550066948 milliseconds ago

My Server works with nginx. My cherrypy website over nginx is reachable too.
location /bokeh {
proxy_pass http://127.0.0.1:5006;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_buffering off;
}

Any suggestion?


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/ea4d0d68-91f7-41a9-acbd-f8547a0b09f2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<inet.png>


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/2fb2b85a-8bcc-462f-be35-103f7772fc7c%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.