Giter VIP home page Giter VIP logo

Comments (6)

ginkel avatar ginkel commented on June 1, 2024 1

It seems that borg check --repair fixed the issue:

borg check --repair ssh://[email protected]:23/./borg/pegasus                                                              /usr/bin/borg:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import load_entry_point
This is a potentially dangerous function.
check --repair might lead to data loss (for kinds of corruption it is not
capable of dealing with). BE VERY CAREFUL!

Type 'YES' if you understand this and want to continue: YES
Enter passphrase for key ssh://[email protected]:23/./borg/pegasus: 
Unpacker crashed while unpacking item metadata, trying to resync... [chunk: 003515_7cddc8c390eb7ab3643fc106e4bf98efad5f3c26fbc4e0fc534efa0e8604d715]
5042 orphaned objects found!
Archive consistency check complete, problems found.

New backups are no longer failing.

Thanks for your help!

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on June 1, 2024

Hmm, that code reads the archive metadata streams from the repo and rebuild the local chunkindex from that.

Looks like one archive (can be also a "hidden" .checkpoint archive) might be corrupt.

Guess I would do the following:

If you used borg < 1.2.5 for that repo follow the CVE-related steps from the top of the changelog (that is important in case you want to use borg check --repair later)

Then:

  • borg list --consider-checkpoints REPO
  • borg delete REPO::latest.checkpoint (you can also try adding 1 or 2 times --force and deleting the latest non-checkpoint archive, if you don't need it)

Does that fix it?

If not, run borg check --repair REPO.

from borg.

ginkel avatar ginkel commented on June 1, 2024

Thanks for the speedy response! :-)

The oldest archive in the repo is from Jan 2023, so the repo has been touched by a pre-1.2.5 version. The PPA I am using to install borg, does not yet prove 1.2.8, though. :-/

There is one .checkpoint archive. Is it safe to execute the steps you mentioned as long as I do not run borg check --repair before applying the steps from the changelog?

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on June 1, 2024

Yes, as long as you don't run borg check --repair, it won't kill any archives with TAM issues.

For the CVE-related upgrade steps, make sure to read the docs for your borg version (e.g. the steps in the 1.2.8 docs won't work when using borg 1.2.7).

from borg.

ThomasWaldmann avatar ThomasWaldmann commented on June 1, 2024

I checked the current (1.2.7) source: yes, this seems the same issue (a corrupt archive) as described there:

#3454 (comment)

from borg.

ginkel avatar ginkel commented on June 1, 2024

Thanks! I applied the upgrade steps from the 1.2.7 changelog - the repo was't affected. Deleting the candidates of the affected archives did not work, currently running borg check --repair.

from borg.

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.