Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

WebSocket connection to 'wss://postfacto.[mydomain].de/cable' failed #435

Open
vekngs opened this issue Apr 14, 2022 · 1 comment
Open

Comments

@vekngs
Copy link

vekngs commented Apr 14, 2022

I've deployed postfacto version 4.3.11 by using the official docker image.

Additionally I did the following:

  • added google Auth
  • set DISABLE_SSL_REDIRECT to "false" (Not sure what this does)
  • Set USE_POSTGRES_FOR_ACTION_CABLE to "true" ( to not have a separate message queue via redis as documented in section Removing Redis dependency)
  • added nginx-tls-proxy server as reverse proxy

Everything seems to be working just fine, but when checking dev-tools, I can see the error message shown in the attached screenshot.

Could any of you please tell me, what is causing this and if I can solve it?

Just let me know if you need more information :)

WebSocketConnectionFailed

@aemengo
Copy link

aemengo commented Feb 17, 2023

@vekngs Postfacto allows realtime updates, for when you're performing a retro remotely with your team. It allows this by connecting your client to your deployed server via websocket.

If you read the server logs, you'll see that it's currently failing. It should look like:

Started GET "/cable" for 127.0.0.1 at 2023-02-16 23:32:21 +0000
Started GET "/cable/" [WebSocket] for 127.0.0.1 at 2023-02-16 23:32:21 +0000
Request origin not allowed: https://postfacto.[mydomain].de        #<---- THIS VALUE
Failed to upgrade to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
Finished "/cable/" [WebSocket] for 127.0.0.1 at 2023-02-16 23:32:21 +0000
  1. "THIS VALUE" needs to be passed to the server via the CLIENT_ORIGIN: environment variable.
    If you're using helm it's not exposed, so I made PR: Allow CLIENT_ORIGIN to be set #465

  2. You also need to proxy the websocket connection through the nginx proxy.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants