- 1 year ago
tmux no server running on /tmp/tmux-*/default - Windows msys2 terminal
The error message "no server running on /tmp/tmux-*/default" typically indicates that the tmux server is not running or not accessible. This can happen for various reasons, including incorrect installation, misconfiguration, or conflicting tmux sessions.
To resolve this issue, you can try the following steps:
Check if tmux is installed:
Ensure that tmux is properly installed on your MSYS2 terminal. You can use the following command to install it if it's missing:pacman -S tmux
Start a new tmux session:
If there are no existing tmux sessions running, you can start a new session by running thetmux
command.Kill existing tmux sessions:
If there are already existing tmux sessions that are causing conflicts, you can kill them by running the following command:perltmux kill-server
Verify the tmux server socket location:
The default location for the tmux server socket on Windows systems is different from the/tmp/tmux-*/default
path commonly seen on Unix-like systems. On MSYS2, the socket is usually located under/tmp/tmux-$USERNAME
.You can set the correct socket path explicitly by setting the
TMUX_TMPDIR
environment variable before starting tmux. For example:bashexport TMUX_TMPDIR=/tmp/tmux-$USERNAME
tmux
Alternatively, you can check the tmux configuration file (usually
~/.tmux.conf
) for any custom socket path configurations.
By following these steps, you should be able to resolve the "no server running on /tmp/tmux-*/default" error and successfully start and connect to a tmux session in your MSYS2 terminal on Windows.