Quite often, when I try to attach to an existing tmux session, the following error pops up:
It seems like tmux
has disappeared or crashed. Fortunately, to this date that
has never been the case. It’s just a simple case of a deleted socket. To cut a
long story short, fixing it requires sending tmux
a signal to recreate the
socket:
Here’s a reference to a stackexchange question which gives slightly more information.