tmux no server running on /private/tmp/tmux-502/default

s_zhang picture s_zhang · Dec 26, 2016 · Viewed 11.6k times · Source

On macOS 10.12.1

tmux 2.3

When run:

tmux source-file ~/.tmux.conf

Got error:

no server running on /private/tmp/tmux-502/default

Answer

chadoh picture chadoh · May 2, 2018

I was getting the same error when running a script that automatically configures tmux workspaces and then attaches them.

However, when I ran the tmux command by itself, I got a more useful error. It told me that a few lines of my ~/.tmux.conf file were causing errors. They're out of date, I guess.

I commented out these lines and now everything works. Maybe that'll work for you, too?