Closed rbur004 closed 5 months ago
ubuntu 22.04 had tmux 3.2a installed.
I tried the latest iTerm2-3_5_20231229-nightly, but get the same detached issue (on Sonoma 14.2.1) connecting with
ssh -t dbn '/usr/local/bin/tmux -u -CC new-session -A -t rbur004'
Compiled tmux 3.4 from a GitHub clone, and ran this instead, and I also get the same problem.
Just noticed that the last detach coincided with a broadcast message. I had a normal shell connected, without tmux, and it got the broadcast message. The tmux session didn't show it. i.e. Broadcast message from nut@db2 (somewhere) (Fri Jan 5 19:02:52 2024):
UPS wikk_core_ups@localhost is unavailable
Looks to be repeatable. Reattached, and it detaches when 'nut' sends its next broadcast message. I can kill the session with '/usr/bin/wall hello' too
Not just ubuntu 22.04. Running wall on FreeBSD 14.0 also caused iterm2 to detach from the session. Again, the ssh connection has not dropped. A second broadcast is printed in the window used to launch the tmux -CC ssh session. And again, the first broadcast message was not display in the tmux window, or the window used to launch the tmux window
The broadcast messages are visible when I reattach to the FreeBSD tmux session (tmux3.3a). They aren't when I reattach to the ubuntu 22.04 sessions.
Sorry, wrong place to log this. Logged it as https://gitlab.com/gnachman/iterm2/-/issues/11325
With an Ubuntu 22.04 Arm server, I am now getting sessions randomly detaching. Anywhere from a few seconds after login, to a few minutes. I don't know where to look to try and debug this.
The iTerm2 window has Unrecognized command from tmux. Did your ssh session die? The command was: Detached
The ssh session has not dropped. I still get wall messages in the iTerm2 window that says the session detached %extended-output %1 0 : \015 \015\015\012Broadcast message from root@db2 (pts/3) (Fri Jan 5 17:33:31 2024): \007\007\015\015\012 \015\015\012hello\015\015\012 \015\015\012
The tmux session hasn't died either. I can reconnect to it.
If I set the tmux window to not close, then it shows a line with ===== tmux detached =====