Open jagthedrummer opened 2 weeks ago
Just for the record I originally did all of the above from a terminal session running inside of tmux
. I just tried with a plain session outside of tmux
and I'm getting the same results.
Hey, thanks for reporting.
Unfortunately, I can't reproduce this behaviour. Can your local tmux has some custom configuration?
I wonder what may be different for the first and other processes as overmind uses a bit different commands to run the first process: https://github.com/DarthSim/overmind/blob/a9907243c989baac013c705bcec415f8b82cb8c8/start/tmux.go#L85 and second to last: https://github.com/DarthSim/overmind/blob/a9907243c989baac013c705bcec415f8b82cb8c8/start/tmux.go#L98
Thanks for responding @Envek. I do have a little bit of custom tmux configuration, but I don't think anything unusual. Is there anything in particular that you can think of that I should look for?
Here's my tmux config file if it helps: https://github.com/jagthedrummer/dotfiles/blob/master/tmux/tmux.conf
I guess, set-environment
breaks the things since it rewrites PATH
Oooooh, good eye on that. I'll see if that makes a difference and report back.
But why set-environment PATH
doesn't break the things for the first command? :thinking:
@DarthSim, good call on that set-environment
call being in play. If I remove that from my .tmux.config
file then overmind
starts all of the processes in the Procfile
successfully. Definitely seems odd that it doesn't cause problems for the first process type, but does cause problems for all others.
At the time being I would recommend to craft separate config for Overmind and use it instead (you can declare path to it in OVERMIND_TMUX_CONFIG
env variable). See https://github.com/DarthSim/overmind?tab=readme-ov-file#specifying-tmux-config for details.
I have a simple
Procfile
that looks like this:When I do
overmind start -f Procfile
it throws this error:It seems that the
worker
process thinks that thebundle
command is not available. I originally thought that I was running into this issue: https://github.com/DarthSim/overmind/issues/74 But I don't think that's the case.I tried to simplify the
Procfile
to contain only theworker
process, and then that works.Procfile
:Likewise, if I leave only the
web
process enabled, it also works.If I try to run two web processes on different ports it fails in a different way:
And if I try to run two worker instances:
If I put the
worker
process before theweb
process:It seems like maybe the first process gets the same "environment" (not sure this is the right word for this) as the main shell that I'm in, but that subsequent processes somehow get something different.
With the original
web
/worker
Procfile
I can run it just fine withforeman
:Is there anything else I can to do try to help debug this? Does anyone have any ideas about what's going on?