-
Notifications
You must be signed in to change notification settings - Fork 521
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
[Bug]: Websocket issue #3913
Comments
2.18.0 added a forced subdirectory of |
Can you please share your HAProxy setup? |
Config attached: Looks like it doesn't include my real servers info: |
Not to my knowledge. However, the websocket always fails to connect: |
Throwing the config at chatgpt says there is an issue with the |
Yeah, I've been through many iterations trying to resolve this. HAProxy does not require extra tooling to support websockets. It detects the initial header (or API) and switches from hhttp to websocket. The only changes needed are to edit timeout rules to ensure the server doesn't cut them too soon. For the sake of troubleshooting this in my original working config, I have removed all additional backend options except for forwardfor. |
Can you share the original config that is not working? |
Just to make sure: you have redacted the config, replacing your domain with EXAMPLE, right? Can you also share a screenshot of the status code, as well as the request and response headers for the wss request (in Edge developer tools, Network tab, select WS in the filter line, and click on the request line) |
Are you still working on this? |
I asked a question and am waiting for a response. |
What happened?
Issue #3868 was taken over by Synology users and the base problem was never reviewed.
I do not use Synology, just running Docker on an ubuntu server.
This seems unrelated to the Synology people since I never lost access to my front end.
This was working previously on 2.17.3 without error.
I was out of town so didn't patch between then and 2.18.0.
I am running through HAProxy. No config change on that end.
The only thing failing is the Socket error. I am able to load the GUI and playback items.
Direct to IP also works, but with the same socket error.
Something definitely changed, because previously there were no websocket issues when I used HAProxy (not Apache).
Now my console is filled with these errors:
Timing wise, I suspect this is what broke it: #3754
I added the env flag: EXP_PROXY_SUPPORT=1 to test, still not working.
So, I believe whatever fix was put into place for that issue broke proxy support for those of us it was already working for.
What did you expect to happen?
The websocket connects.
Steps to reproduce the issue
Audiobookshelf version
v2.18.0
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
Other (list in "Additional Notes" box)
Logs
The only thing I can see related to the websocket is: 2025-01-20 20:52:05.099 DEBUG [SocketAuthority] clientEmitter - no clients found for user 06835809-8b6a-47fe-81fd-1677b1ddf6c6
Additional Notes
UI errors:
Edge
Firefox (windows)
Fennec (Android)
as well as the Android Audiobookshelf App & Lissen app.
The text was updated successfully, but these errors were encountered: