Closed jenstroeger closed 2 years ago
Hmm. 3mux chooses this location via ($TMPDIR or /tmp)/3mux
. The temporary directory path here looks randomly generated rather than being a consistent place like /tmp/3mux.
If you create another session, is the path to /var/.../3mux different? If so, that might explain the error.
P.S. Thank you for the detailed bug report!
So, I have
> echo $TMPDIR
/var/folders/d5/6_9wptzx0ml6ys098gqncydm0000gn/T/
and when I run 3mux twice (creating different sessions) then they both open a socket
/var/folders/d5/6_9wptzx0ml6ys098gqncydm0000gn/T/3mux/{UUID}/fd.sock
with different UUIDs. The logs-server.txt
then contains the above error with the respective UUID. The value of $TMPDIR
seems to stay constant across multiple Terminal.app restarts and the same login session.
I have the same issue on macos.
@sikmir is that about the MacPorts ticket #62563? 😉
@sikmir is that about the MacPorts ticket #62563? 😉
Yes, I've just tried 1.1.0 and it doesn't work for me.
Generally, the detach server is supposed to run in order to keep sessions alive (making sure that background tasks don't end when you detach) after you detach from them.
Maybe the path is too long? https://github.com/golang/go/issues/6895
A way to test this would be seeing if 3mux works with the environment variable $TMPDIR set to something like /tmp. If so, we'll have to figure out in 3mux how to handle longer $TMPDIR paths
Maybe the path is too long? golang/go#6895
A way to test this would be seeing if 3mux works with the environment variable $TMPDIR set to something like /tmp. If so, we'll have to figure out in 3mux how to handle longer $TMPDIR paths
You are right! It works with TMPDIR=/tmp 3mux
.
@PotatoParser It sounds like $TMPDIR
is long by default on macOS. Thoughts on falling back on /tmp
when $TMPDIR
is too long to work?
That sounds like a good idea, though we could try changing the uuid generation first by shrinking it (using [a-zA-Z0-9\-_]
("base64") instead of [a-f\-0-9]
("base17") - I believe case-sensitivity is the defacto for unix systems) and then fallback to /tmp
if the new paths are still too long.
I believe case-sensitivity is the defacto for unix systems
Not on Mac whose HFS+ and APFS default to case _in_sensitve 🤦🏻♂️
Still getting this on macos, version 1.1.0
I still hit this in MacOS, fixed by TMPDIR=/tmp 3mux
I don’t use brew so I installed 3mux using
and when I try to run 3mux it asks me for a session name (I entered
test
) and I get this:where the log contains:
So, my question is: what server is expected to run here?