Coder Social home page Coder Social logo

Comments (10)

zoechi avatar zoechi commented on August 17, 2024 2

I found it with sudo find . -name "info.xml" -type f -empty (with BTRFS root being the current directory)

from snapper.

anatol avatar anatol commented on August 17, 2024 1

I have the same problem. It would be great if snapper reported what file has formatting problem.

from snapper.

aschnell avatar aschnell commented on August 17, 2024

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.

mdhooge avatar mdhooge commented on August 17, 2024

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.

aschnell avatar aschnell commented on August 17, 2024

Do you know whether your filesystem was full or the system crashed at that time?

Yes, please change the subject.

from snapper.

mdhooge avatar mdhooge commented on August 17, 2024

[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.

rumpelsepp avatar rumpelsepp commented on August 17, 2024

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.

maridonkers avatar maridonkers commented on August 17, 2024

find /.snapshots/ -maxdepth 2 -name "info.xml" - -lls

or even:

file /.snapshots/*/info.xml

from snapper.

equaeghe avatar equaeghe commented on August 17, 2024

Would it be possible to have the log message show the file that causes the parse error?

from snapper.

aschnell avatar aschnell commented on August 17, 2024

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)

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.