Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This sucks.

$ tmux attach-session
no sessions

My sysadmin upgraded tmux and now I can't reattach. My processes are still running according to ps ux. Is there any hope of recovering my session?

Update: There's a socket in /tmp/tmux-1234, so I tried tmux -L /tmp/tmux-1234/default attach, but tmux does nothing. Hooray.

share|improve this question

2 Answers 2

up vote 13 down vote accepted

This quickest way to determine if you can recover is:

killall -10 tmux

That will send the signal to recreate all socket files for any running tmux processes. If you're not root, no problem it will only signal your tmux process anyway.

Long story short, if tmux is not running (ps xu | grep tmux), you're screwed :(

share|improve this answer

tmux is not guaranteed to be compatible across updates; ask your sysadmin to let you know before doing upgrades or use a copy you built locally that he is less likely to mess with.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.