-
Notifications
You must be signed in to change notification settings - Fork 55
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
Socket error when starting Synapse - Cannot bind - No such file or directory #1054
Comments
this is probably something to do with unix sockets not working on mac os? |
or, specifically, the "abstract" namespace for unix sockets. Try changing |
@richvdh Woot! That's it! Thank you 🐳 And now looking back at my history, I can see that I searched for all of this sort of stuff back on 2020-12-30:
Now running successfully:
|
In order to make the codebase compatible with macOS out of the box, could we drop the abstract namespace? Otherwise some platform specific code to fallback ( |
happy to drop the abstract namespace if you can find a good place for the socket file to live. |
Fix #1054 Abstract namespaced sockets are only supported on Linux so moving the socket to a real temporary file. - https://apple.stackexchange.com/a/157509/164173 - "abstract socket name, supported only on Linux", https://docs.racket-lang.org/unix-socket/index.html
Fix #1054 Abstract namespaced sockets are only supported on Linux so moving the socket to a real temporary file. - https://apple.stackexchange.com/a/157509/164173 - "abstract socket name, supported only on Linux", https://docs.racket-lang.org/unix-socket/index.html
Fix #1054 Abstract namespaced sockets are only supported on Linux so moving the socket to a real temporary file. - https://apple.stackexchange.com/a/157509/164173 - "abstract socket name, supported only on Linux", https://docs.racket-lang.org/unix-socket/index.html
When trying to run Sytest against Synapse, I am running into the following error socket bind error,
Error starting server-0: Cannot bind - No such file or directory @details=bind IO::Socket::UNIX=GLOB(0x7feab5d1df20) #sytest-JXOAUKDFIBVQMRPNAJEO.sock No such file or directory at tests/05homeserver.pl line 128.
.Which probably corresponds to
lib/SyTest/Homeserver/ProcessManager.pm#L355-L361
I think I have run into this problem in the past because I have debug logging around the sockets code in this PR, but I can't remember how I solved it. I know for sure I've run local Sytest against local Dendrite before.
Full run with my random debugs
Just creating this issue so I can track the solution and reference it in the future if I figure it out.
Environment:
The text was updated successfully, but these errors were encountered: