Giter Club home page Giter Club logo

Comments (12)

tim-phillips avatar tim-phillips commented on July 18, 2024 51

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.

jimafisk avatar jimafisk commented on July 18, 2024 15

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.

reorx avatar reorx commented on July 18, 2024 14

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.

omenius avatar omenius commented on July 18, 2024 10

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.

forkjoseph avatar forkjoseph commented on July 18, 2024 3

I had a same issue. Resolved the issue by

  1. ls -lah ~/.tmux/tmux-resurrect/last
  2. 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.

 avatar commented on July 18, 2024 3

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.

 avatar commented on July 18, 2024 2

This issue no longer happens on latest updates.

from tmux-continuum.

janzenz avatar janzenz commented on July 18, 2024 1

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.

dreamflasher avatar dreamflasher commented on July 18, 2024 1

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.

cabaalexander avatar cabaalexander commented on July 18, 2024

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.

Blake-LeBlanc avatar Blake-LeBlanc commented on July 18, 2024

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.

Bogdan-Torkhov avatar Bogdan-Torkhov commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.