I have had a tmux session running for a while, and I can see it's running using pstree
:
systemd─┬─accounts-daemon───2*[{accounts-daemon}]
├─2*[agetty]
├─containerd───11*[{containerd}]
├─cron
├─dbus-daemon
├─4*[dd]
├─dockerd───12*[{dockerd}]
├─fail2ban-server───2*[{fail2ban-server}]
├─irqbalance───{irqbalance}
├─networkd-dispat
├─polkitd───2*[{polkitd}]
├─qemu-ga
├─rsyslogd───3*[{rsyslogd}]
├─ssh-agent
├─sshd───sshd───sshd───bash───pstree
├─systemd───(sd-pam)
├─systemd-journal
├─systemd-logind
├─systemd-network
├─systemd-resolve
├─systemd-timesyn───{systemd-timesyn}
├─systemd-udevd
├─tmux: server─┬─bash───find_cli
│ └─3*[bash]
└─unattended-upgr───{unattended-upgr}
(it's down the bottom there)
However, tmux
itself insists there are no sessions:
$ tmux attach
no sessions
$ tmux ls
no server running on /tmp/tmux-1000/default
Is there any way to recover a tmux session in this situation?
man 1 tmux
, options-L
and-S
. Can it be the case? On the other hand, if you started a server in a non-default way, you would probably know.w
tmux
as root, disconnected from it, and forgotten about it.ubuntu
), becauseps -aux
returnsubuntu 23508 0.8 0.0 19116 7696 ? Ss Mar02 673:09 tmux