-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please document websockets and Panel apps on Fly #1707
Comments
I guess the problem is that I don't have a correct fly.toml configuring the services? https://fly.io/docs/reference/configuration/#the-services-sections Should I simply try the one from here? https://fly.io/blog/websockets-and-fly/ Or anyone has a working example or knows how it should work? cc @philippjfr |
hey! generally speaking, there's nothing special that needs to happen to connect with a websocket. I cannot tell you at which time we will fully support Currently you are running the app with this command: CMD ["/app/.venv/bin/panel", "serve", "app.py", "--port", "8080", "--allow-websocket-origin=localhost"] The offender here is the Modify this line to accept connections from other hosts: CMD ["/app/.venv/bin/panel", "serve", "app.py", "--port", "8080", "--allow-websocket-origin=*"] |
@fliepeltje - thank you! I applied the change you suggested: cdeil/fly-panel@33011f6 Seems to work OK: I see this warning when running
What do I have to change (presumably in |
Hmm, incidentally this is something that I ran into myself; this seems like an issue in |
I checked back on https://fly-panel-test.fly.dev/ today (next day) and the app is down. I'm not a fly expert, to me it isn't obvious from the logs and admin interface why it went down and isn't working. :-( |
Soo, this seems like a |
I cannot reach this either today in the past hours: https://fly-panel-test.fly.dev/app So for you it responds? Then if it works for you but not me the issue is routing-related? |
Panel is running on Bokeh Server which is Tornado server. There's docs here with lots of infos: https://docs.bokeh.org/en/latest/docs/user_guide/server.html I'm not a web traffic / server expert. I don't know if there's anything special about Fly or Bokeh that makes both together challenging or some config settings to make HTTPS and WS work stable. |
I get DNS_PROBE_FINISHED_NXDOMAIN with Chrome on MacOS. https://downforeveryoneorjustme.com/fly-panel-test.fly.dev?proto=https
|
I'm in Heidelberg, Germany. I'm in corporate office network, there might be ZScaler or various network effects with my traffic. But my location and network shouldn't matter for status from "is up" services. |
Hey, revisiting this, here's what I see:
The app gets stopped for sure and it wakes up just fine, but only if you visit it from a browser. This makes me think that there some logic in |
Not aware of any mechanism in tornado, Bokeh or Panel that differentiates between browser based requests and other requests. Only the browser will actually initiate the websocket but the initial http(s) request is what should matter. |
I found an issue with this document.
Title: Python on Fly.io
Location: https://fly.io/docs/python/
Source: https://github.com/superfly/docs/blob/main/python/index.html.md
Describe the issue
Monkey tried to deploy a Python Panel app on Fly but Monkey no luck. 🙈 🙈 🙈
https://github.com/cdeil/fly-panel
Can fly experts please write 📖 how 🐒 can succeed with websockets?
The text was updated successfully, but these errors were encountered: