tmux-continuum: Tmux resurrect file not found!
I get this error when running tmux.
Running on OSX Sierra 10.12.2 Tmux 2.3
Here is my tmux.conf file:
# TMUX Ressurect plugin
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-save-interval '5'
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'
About this issue
- Original URL
- State: open
- Created 10 years ago
- Reactions: 6
- Comments: 16
This error occurred for me when the symbolic link
lastwas pointing to a non-existent resurrect file. I’m guessing I quit tmux while tmux-resurrect was saving.To solve I created a new link pointing to the last created save:
ln -sf tmux_resurrect_2017-09-08T09:53:43.txt lastYeah… and this is obvious, but make sure you’ve actually saved a session (
prefix+ <kbd>ctrl</kbd>-<kbd>s</kbd>) before trying to restore (prefix+ <kbd>ctrl</kbd>-<kbd>r</kbd>). 🤦♂️I wrote a shell function to help dealing with this:
I had same error, after trying to save session. chmod 755 ~/.tmux fixed it. Problem was that it was never saving the session because of permission issues.
These is the solution!
The
resurrectdirectory did exist but looks like it was caused by the lack of saved session in the directory. This had me confused for the entire time and thought I installed the plugin incorrectly so after further reinstalls I finally got it. For newbs like me I think it would probably help if the error would be more specific.Happened to me on a Mac today after rebooting. After a lot testing, I finally decided to change the following in my
~/.tmux.conf.localfileTo hardcoding the path
No idea why using
$HOMEstopped working as I didn’t change anything and I’ve used that inresurrect-dirfor years. I use$HOMEsince I clone my dotfiles across many Linux and Mac systems, and the home directory / userid vary depending on the system.This happened to me just after restarting my computer using the “reboot” command line. I suppose it somehow caught the resurrect plugin in the middle of saving the session and it never got the chance to create the “last” symbolic link before the shutdown. Thank you @tim-phillips for the tip.
I had a same issue. Resolved the issue by
if your tmux folder is owned by “root”, not username like this
drwxr-xr-x 3 root root 4.0K Jul 21 17:33 .tmux/Make sure to change the ownership bysudo chown $(whoami):$(whoami) -R .tmuxMy stupidity of using root privilege whilst installing resurrect caused this issue…
This issue no longer happens on latest updates.
Still happening for me, latest version. I regularly come to this issue and try a couple of the solutions but never manage to find out which one actually does the trick.