overmind
overmind copied to clipboard
Weird interaction with asdf version manager
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
- Overmind v2.1.0
- Tmux 3.0a
- asdf v0.7.6
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.
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!