Coder Social home page Coder Social logo

IO Error (mktemp failed). about snapper HOT 7 CLOSED

blueOkiris avatar blueOkiris commented on August 18, 2024
IO Error (mktemp failed).

from snapper.

Comments (7)

blueOkiris avatar blueOkiris commented on August 18, 2024

If I create /home/.snapshots/1 with mkdir, it correctly identifies that it needs to create snapshot 2. Unfortunately, it still fails lol

Perhaps some kind of permissions issue?

Permissions for /.snapshots (the error occurs on all subvolumes in the same way): drwxr-x---. 1 root root 0 Jan 20 16:36 .snapshots

from snapper.

aschnell avatar aschnell commented on August 18, 2024

Can you create a file in /home/.snapshots/2?

from snapper.

blueOkiris avatar blueOkiris commented on August 18, 2024
$ mkdir /home/.snapshots/2
mkdir: cannot create directory ‘/home/.snapshots/2’: Permission denied
$ sudo mkdir /home/.snapshots/2
$ sudo touch /home/.snapshots/2/tmp-file
$ sudo snapper -c Home create
IO Error (SDir::mktemp failed, errno:13 (Permission denied)).

The end of the log says this:

2023-01-23 09:18:36 WAR libsnapper(8403) FileUtils.cc(SDir):91 - THROW: open failed path:/home/.snapshots/3 errno:2 (No such file or directory)
2023-01-23 09:18:36 WAR libsnapper(8403) Btrfs.cc(checkSnapshot):482 - CAUGHT: open failed path:/home/.snapshots/3 errno:2 (No such file or directory)
2023-01-23 09:18:36 WAR libsnapper(8403) Snapshot.cc(writeInfo):508 - THROW: SDir::mktemp failed, errno:13 (Permission denied)
2023-01-23 09:18:36 WAR libsnapper(8403) Snapshot.cc(createHelper):731 - CAUGHT: SDir::mktemp failed, errno:13 (Permission denied)
2023-01-23 09:18:36 WAR libsnapper(8403) Snapshot.cc(createHelper):737 - RETHROW: SDir::mktemp failed, errno:13 (Permission denied)
2023-01-23 09:18:36 WAR libsnapper(8403) Client.cc(dispatch):1885 - CAUGHT: SDir::mktemp failed, errno:13 (Permission denied)

It's a little different than before.

I have updated my system, so potentially that's why there's a slight difference.

from snapper.

aschnell avatar aschnell commented on August 18, 2024

I have improved the error logging - it logs the errno now.

Please check the permissions on all dirs from /home/.snapshots/2. Do you compile snapper yourself or do you use RPMs? In case you compile it yourself, do you have libbtrfsutil (with headers) installed? Otherwise, which RPMs?

from snapper.

blueOkiris avatar blueOkiris commented on August 18, 2024

For /home/.snapshots:

$ sudo ls -la /home/.snapshots
total 0
drwxr-x---. 1 root root  4 Jan 23 10:00 .
drwxr-xr-x. 1 root root 30 Jan 19 16:23 ..
drwxr-xr-x. 1 root root  0 Jan 23 09:16 1
drwxr-xr-x. 1 root root 16 Jan 23 09:18 2

And in /home/.snapshots/2:

sudo ls -la /home/.snapshots/2
total 0
drwxr-xr-x. 1 root root 16 Jan 23 09:18 .
drwxr-x---. 1 root root  4 Jan 23 10:00 ..
-rw-r--r--. 1 root root  0 Jan 23 09:18 tmp-file

I use the Fedora repo from snapper.io and then install from dnf

from snapper.

aschnell avatar aschnell commented on August 18, 2024

Seems as if SELinux is needed on Fedora. I have enabled it now.

from snapper.

blueOkiris avatar blueOkiris commented on August 18, 2024

I know this is closed, but I wanted to confirm the update does work for me as well. Thanks!

from snapper.

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.