DarthSim / overmind

Process manager for Procfile-based applications and tmux
MIT License
2.82k stars 79 forks source link

Weird interaction with asdf version manager #67

Open harmdewit opened 4 years ago

harmdewit commented 4 years ago

When trying to start an application with overmind s I got this error message: overmind: Can't find tmux. Did you forget to install it?. Of course I do have tmux installed so the message is incorrect.

Turns out that the issue is caused due to some interaction with the asdf-vm: https://asdf-vm.com/#/. I was missing a specific Node version specified in .node-version. After I removed the file or installed the correct version overmind s ran correctly again.

Installed versions

DarthSim commented 4 years ago

Overmind does nothing fancy here, it just runs which tmux and expects it to run without errors: https://github.com/DarthSim/overmind/blob/master/start/command.go#L148-L150. If Overmind can't find tmux, try to run which tmux yourself.

teaforchris commented 2 years ago

Just adding a comment in case someone comes here from google with the same error overmind: Can't find tmux. Did you forget to install it? but it's nothing to do with node/asdf.

This was my journey:

$ overmind start
overmind: Can't find tmux. Did you forget to install it?

no I didn't

$ which tmux
/usr/bin/tmux

ok, but on closer inspection, overmind actually runs this

$ tmux -V
tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968

bingo! That's why overmind was exiting. Fixed by running

$ sudo apt install locales-all

Now tmux -V exits cleanly, so overmind can run just fine!