tmuxinator: tmuxinator won't run untill another tmux session exists
Tmuxinator can’t connect to tmux server (create new sessions) unless at least one session exists already.
When I have no sessions live and try to run tmuxinator project:
~ tmux list-sessions
no server running on /private/tmp/tmux-501/default
~ tmuxinator project_name
no server running on /private/tmp/tmux-501/default
lost server
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no server running on /private/tmp/tmux-501/default
no sessions
(the /private/tmp/tmux-501/default exists and is empty)
But when I create new tmux sessions (and at least one still exists):
~ tmux list-sessions
0: 1 windows (created Tue Jun 6 11:22:21 2017) [134x32] (attached)
all works fine, tmuxinator run tmux session and all commands are executed correctly.
I’m using tmux 2.5 (OS X 10.12) installed via homebrew.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 6
- Comments: 32 (8 by maintainers)
UPDATE: the bug in
tmuxthat was causing this issue has been fixed in master and will become part of that tool’s 2.6 release. Unfortunately, the fix won’t be back-ported to 2.5. If you really must have tmux 2.5 and use it with tmuxinator, you can pull the 2.5 branch from Github, apply the patch in the linked issue (also here) and be on your merry way. However, I would recommend simply sticking with 2.4 and jumping to 2.6 when it is released.Install formula from specific revision (I belive it’s how it’s called in git):
brew install https://raw.githubusercontent.com/Homebrew/brew/2d2034afc6e4dfab0a1c48f5edd2c5478576293b/Formula/tmux.rbI have tmux 2.7 and tmuxinator 0.11.1 installed and this problem affected me. The problem disappeared when I removed all of my tmux config files, which enabled me to identify the cause: the option
status-utf8was removed from tmux, but I still had this line in my config:Removing this line, as described in this comment above, fixed the problem. For more info, see https://github.com/tmux/tmux/issues/230.
FWIW, I landed on this issue after running into the same, initially described issue. Turned out my
tmux.confwas a few years old and tmux had changed how it wants you to specify style; updating these style-related settings got me up and running. For example:You can see more about what I ran into over here: https://github.com/tmux/tmux/issues/1689
I still run into this issue in 2.6 . Adding the following to my ~/.zshrc did the trick. Of course, this could be bundled up in a script or alias, but I wanted it to be run any time my shell starts and no tmux sessions are found.
It seems there are some wrong configs in my
.tmux.conf, usetmuxto start tmux session will show the errors/warings. When fixed,mux [project]works again.For me the line
set-option -g status-utf8 onwas causing the issue (the status-utf8 option is obsolete). I really would have expected a more visible error message and it was very strange that starting tmux directly worked, but everything was peachy after I removed that line.My issue was that I updated tmux to version 3.0a and that broke on the backslashes in my conf file. I needed to change
to
It seems that tmux changed some of its behavior that has to do with the
.tmux.conf. For me it was the line:that caused the trouble. It always worked until I upgraded to the latest version of tmux. After removing this line from my
.tmux.confI was able to runmux start [project]again without any problems.@danshumaker I was having the same issue.
Take a look at your tmux config. I am using the same config as my co-worker who is a bit more savvy than I with tmux and 2.4 broke a number of things in his config.
Once I updated my config the problem went away. I don’t know which specific issues were causing the problem; my co-worker had made numerous changes since I first copied it over.
This must be the change in the tmux 2.5. Reverting back to tmux 2.4 works fine (
brew switch tmux 2.4).@episage I’m not seeing where
tmuxinatorfits in here. Assuming you are usingtmuxinator, we should start a new issue for this as yours involvestmux-cssh, which may or may not affect what’s going on. If you do decide to create an issue, please include thetmuxinatordebug output. Just FYI, tho, this is the first time I personally have heard oftmux-cssh, so there’s no guarantee we’ll be able to get it working, but we’ll see what we can figure out.I didn’t use to have this problem, but I get it now that I switched to fish as my shell. In zsh it works fine, but in fish it does not. In both cases I have the same tmux configuration.
This is the output that I get when I run
tmuxinator my-project:Again, the above only happens under the fish shell, not under zsh.
tmuxinator debug my-project
In case it is helpful to figure out the problem, this is the output of
tuxminator debug my-projectfish shell version 2.7.1 tmux version 2.7 tmuxinator version 0.12.0
@adamstrickland Sorry for the late response, I do not have this issue anymore. Woot woot!
Upgraded to sierra last night and started getting this error. But, just tried compiling 2.6-rc on tmux and checked the contents of cmd-find.c to be sure the patch was included, and it is. Linked my compiled version to the /usr/local/bin dir and re-ran tmuxinator without a previously running tmux and I still get the error… bummer. I must be doing something wrong. rc3 For now I’ll just start dummy tmux session to use tmuxinator so it has something to start with. Anyone else try tmux 2.6? (tried with tmuxinator 0.9.0)