Session restoration issue with tmux in remote server and when MacOS reboots
- iTerm2 version:3.3.12
- OS version:10.15.6
- Attach ~/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
Detailed steps to reproduce the problem:
- Have multiple tmux sessions attached to same no of tabs from iterm(tmux running in the remote server)
- The system(Mac OS) goes for a reboot
- The tabs are not able to attach themselves to previous iterm tabs( as all of the tmux sessions show as attached already)
What happened: The sessions restoration is not happening for me.
What should have happened: The session restoration is happening if I force quit iterm, but the same goes for a toss when macOS reboots. when macOS open up until the time I connect VPN it just time outs and asks me to enter the password again(I am using mosh)
When I enter the password for the remote server and it connects then I see that all my session are already attached and hence then I have to detach them one by one and attach them to tabs of itermscreen-recording-2020-08-31-at-40755-pm_hWOQtOZu.compressed
Note:
- only iterm tabs are restored but they are not attached to the corresponding tmux sessions of the remote server
- my login command :
mosh --server="LD_LIBRARY_PATH=/users/sumikum7/usr/lib /users/sumikum7/usr/bin/mosh-server" <remote_server> -- sh -c "tmux ls | grep -vq attached && tmux a || tmux new"