After a while of using tmux, you might see that you cannot reconnect it from another terminal windows with the error message
error connecting to /tmp/tmux-1000/default (No such file or directory
The solution is easy but hard to find. Here is the magical command worked for me. Hope it works for you too!
pkill -USR1 tmux