Infinidoge / nix-minecraft

An attempt to better support Minecraft-related content for the Nix ecosystem
MIT License
246 stars 26 forks source link

Only one tmux socket is accessible at a time #14

Closed oatmealine closed 1 year ago

oatmealine commented 1 year ago

When running 2+ servers, only the most recently started server will have its associated tmux socket file work - the other will just say that there are no sessions:

$ doas systemctl restart minecraft-server-dark-firepit

$ doas tmux -S /run/minecraft/gbj.sock attach
no sessions

$ doas systemctl restart minecraft-server-gbj

$ doas tmux -S /run/minecraft/gbj.sock attach
<works perfectly fine>
Infinidoge commented 1 year ago

Yeah I've been running into this too, and honestly I have no idea why this is the case. Clearly both servers are still running, so the tmux session for the other server is definitely running.

Infinidoge commented 1 year ago

Weirdly, I'm just... not experiencing this problem anymore? I have no idea what changed, it might have just been caused by a tmux bug that was resolved upstream. Could you double check in your setup to see if that is the case?

image