Comments (10)
I found it with sudo find . -name "info.xml" -type f -empty
(with BTRFS root being the current directory)
from snapper.
I have the same problem. It would be great if snapper reported what file has formatting problem.
from snapper.
The error messages look as if a XML file cannot be read because it is empty.
Please check whether any file of /.snapshots/*/info.xml is empty or otherwise looks broken.
zypp-plugin.conf is of course also a XML file but that should only be read when using zypper.
from snapper.
You were right (of course…)
For the root & my home, both had an empty info.xml at the same date. I copied & adapted another file. Then the corresponding date re-appeared in snapper's lists and the warnings are no longer in my syslog.
If you want, I can change the “issue title” to request a better handling of an empty info.xml.
Thanks
from snapper.
Do you know whether your filesystem was full or the system crashed at that time?
Yes, please change the subject.
from snapper.
[title changed]
It looks as if the system crashed on that day…
But since snapper doesn't save the logs and it took me a while to find the problem, the syslogs are gone :-( But by looking at other logs, the system booted twice that day.
And it seems unlikely that both / and /home became full at the same time.
So I think a crash is a good guess.
from snapper.
It would be great if snapper reported what file has formatting problem.
That would be nice! Idid a
$ find . -name "info.xml" -exec ls -la {} \;
and I found the corrupted file very quickly…
from snapper.
find /.snapshots/ -maxdepth 2 -name "info.xml" - -lls
or even:
file /.snapshots/*/info.xml
from snapper.
Would it be possible to have the log message show the file that causes the parse error?
from snapper.
For once snapper does a fsync now after writing info.xml files (see #548). That could help to get rid of empty info.xml files in case of system crashes.
On the other hand the log does include the number of the snapshot that failed to load:
Snapshot.cc(read):266 - loading 370 failed
from snapper.
Related Issues (20)
- Add --dry-run option for cleanup HOT 3
- permission error HOT 1
- bcachefs support HOT 1
- Add --dry-run option for cleanup
- duplicate pre snapshots when updating with nala HOT 3
- xmlDocFormatDump failed HOT 3
- continue cleanup in case of failure HOT 5
- "Illegal snapshot" error during list HOT 1
- IO Error (fcntl(F_DUPFD_CLOEXEC) failed error:24 (Too many open files)). HOT 6
- Snapper does not find config file after a lot of modifications HOT 13
- Change default cleanup timer interval to 1h, to match default LIMIT_HOURLY HOT 2
- Small doubt/problem with submodules on / and /home HOT 4
- Feature request: Lock snapshots
- Snapper log spam, increasing log size 0.5-1GB a minute HOT 1
- BTRFS Snapshots failing since kernel 6.8.4rc1, still working on 6.8.2 HOT 14
- Get new on kde plasma 6 not working HOT 1
- Snapper is failing to create snapshots HOT 4
- snapper.io is not secure HOT 2
- build fails due to moved libstdc++.la HOT 6
- snapper cleanup garbage
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.