Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 973
s_zhang Avatar asked Dec 26 '16 05:12

s_zhang


2 Answers

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?

like image 181
chadoh Avatar answered Sep 17 '22 15:09

chadoh


You must not run

tmux source-file ~/.tmux.conf 
  1. ~/.tmux.conf is launched automatically once on the tmux server start.
  2. If you need use other alternative.conf file, you must use '-f' option: tmux -f alternative.conf

  3. If you need run a source file, looked like the server must be started first, if it is not yet started: tmux start-server \; source-file source.tmux

like image 20
Olleg Avatar answered Sep 18 '22 15:09

Olleg