Comments (12)
This error occurred for me when the symbolic link last
was 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 last
from tmux-continuum.
Yeah.... and this is obvious, but make sure you've actually saved a session (prefix
+ ctrl-s) before trying to restore (prefix
+ ctrl-r). 🤦♂️
from tmux-continuum.
I wrote a shell function to help dealing with this:
function tmux-resurrect-reset-last() {
cd ~/.tmux/resurrect && \
ln -f -s $(/bin/ls -t tmux_resurrect_*.txt | head -n 1) last && \
/bin/ls -l last
}
from tmux-continuum.
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.
from tmux-continuum.
I had a same issue. Resolved the issue by
- ls -lah ~/.tmux/tmux-resurrect/last
- cd ~/ && ls -lah .
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 by
sudo chown $(whoami):$(whoami) -R .tmux
My stupidity of using root privilege whilst installing resurrect caused this issue....
from tmux-continuum.
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.
from tmux-continuum.
This issue no longer happens on latest updates.
from tmux-continuum.
The resurrect
directory 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.
from tmux-continuum.
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.
from tmux-continuum.
If you try to save it from a vagrant machine into the host via shared folder it wont work because of the permissions as @omenius said :'/
from tmux-continuum.
UPDATE 20180627: To follow up with what user errors were causing my issue... I regularly transition between a VM and laptop, which means I'm always pushing and pulling changes from my repos. In the case of tmux-resurrect, I tried simplifying my dotfile management by using $ git add -u
, which as I know now, will NOT bring in any newly created files, only update those that were already part of the repo. This caused the last file to point to a .txt file reference that, after pulling down from git, did not exist in the pull. Going back to manually adding things through $ git add .tmux-resurrect
and things are now smooth sailing again :)
Thank you @tim-phillips, your solution is what did the trick on my end!
from tmux-continuum.
Yeah.... and this is obvious, but make sure you've actually saved a session (
prefix
+ ctrl-s) before trying to restore (prefix
+ ctrl-r). man_facepalming
These is the solution!
from tmux-continuum.
Related Issues (20)
- Is it possible to add a running script to resurrect-processes list and automatically restore it? HOT 1
- Restoring environment variables HOT 1
- Tmux exits after started with @continuum-restore 'on' HOT 11
- AppleScript syntax errors in iterm automatic start osx script HOT 1
- Continuum starts a new tmux session with every ssh login HOT 1
- Add support for Wezterm terminal HOT 1
- iTerm2 launch in fullscreen mode
- Issue while starting via shell configuration in Alacritty
- add option for working on multiple tmux server
- macOS Ventura: "Background Item Added" notification on each boot HOT 6
- Autostart session with a specific name?
- Customise status with time remaining HOT 4
- Systemd user service disabled even if not managed by continuum
- Restore to named session if name provided
- Programs are not restarting
- High CPU usage on MacOS after long sleep/hibernate time HOT 2
- Hardcoded DISPLAY Variable Issues
- XAUTHORITY environment variable is not set when using automatic tmux start with systemd HOT 2
- How to restore multiple tmux sessions independently and simultaneously
- Disable auto save before manual save session
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-continuum.