Comments (7)
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.
Can you create a file in /home/.snapshots/2?
from snapper.
$ 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.
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.
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.
Seems as if SELinux is needed on Fedora. I have enabled it now.
from snapper.
I know this is closed, but I wanted to confirm the update does work for me as well. Thanks!
from snapper.
Related Issues (20)
- Snapshots do not have ACL applied
- 0.10.1: build fails because missing checking dependencies fro zlib HOT 2
- Undochange corrupts the directory mounted with "bind"
- how to rebuild dbus info if we rename files in /etc/snapper/configs? HOT 1
- Fedora & cronie: Where is the crontab? HOT 4
- Is this how snapper timeline snapshots are supposed to work? HOT 13
- Snapper does not clean, when you have nested snapshots HOT 1
- Unknown option '--config' for command 'delete-config' HOT 1
- Support Stratis snapshotting
- Integration with Stratis Storage HOT 1
- 0.10.3: build fails with 12.2.1 HOT 2
- /etc/sysconfig/ on Debian/Ubuntu?!
- Add an snapper rm delete all option? HOT 2
- snapper cannot to be built with btrfs-progs v6.1 HOT 3
- Feature Request: Allow multiple POST snapshots w.r.t. an existing PRE snapshot HOT 2
- IO Error (fopen failed errno:2 (No such file or directory)). HOT 2
- RFE: allow create snaphots every minute HOT 5
- Is it possible to auto-generate snapshots with read-write privileges? HOT 3
- timeline.timer runs even if no timeline configured HOT 2
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 snapper.