Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverflowError when attempting to create a backup #354

Open
jscinoz opened this issue Oct 5, 2015 · 5 comments
Open

OverflowError when attempting to create a backup #354

jscinoz opened this issue Oct 5, 2015 · 5 comments

Comments

@jscinoz
Copy link

jscinoz commented Oct 5, 2015

This seems to be the same as #108, which was closed due to being unreproducible against 0.16. When attempting to create a new backup, during the cache construction the following error is encountered (again, this is with Attic 0.16):

Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/attic/remote.py", line 298, in get_many
    yield self.load_object(*self.index[key])
  File "hashindex.pyx", line 95, in attic.hashindex.NSIndex.__getitem__ (attic/hashindex.c:2315)
KeyError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/attic", line 3, in <module>
    main()
  File "/usr/lib64/python3.4/site-packages/attic/archiver.py", line 715, in main
    exit_code = archiver.run(sys.argv[1:])
  File "/usr/lib64/python3.4/site-packages/attic/archiver.py", line 705, in run
    return args.func(args)
  File "/usr/lib64/python3.4/site-packages/attic/archiver.py", line 100, in do_create
    cache = Cache(repository, key, manifest)
  File "/usr/lib64/python3.4/site-packages/attic/cache.py", line 33, in __init__
    self.sync()
  File "/usr/lib64/python3.4/site-packages/attic/cache.py", line 163, in sync
    for key, chunk in zip(archive[b'items'], repository.get_many(archive[b'items'])):
  File "/usr/lib64/python3.4/site-packages/attic/remote.py", line 302, in get_many
    self.store_object(key, data)
  File "/usr/lib64/python3.4/site-packages/attic/remote.py", line 288, in store_object
    self.index[key] = offset - len(data), len(data)
  File "hashindex.pyx", line 101, in attic.hashindex.NSIndex.__setitem__ (attic/hashindex.c:2424)
OverflowError: value too large to convert to int

The error reoccurs whenever I attempt to create a backup, but it's not consistently failing on analysing any specific archive - it fails on a different archive each time I run it.

@ThomasWaldmann
Copy link
Contributor

This is because the RepoCache which is used for remote repos can only cache 2GB. I've fixed that in my repo.

@jscinoz
Copy link
Author

jscinoz commented Oct 5, 2015

@ThomasWaldmann Thanks for the information - is there any migration path for existing repositories from attic -> borg?

@ThomasWaldmann
Copy link
Contributor

Yes, the current git code (and the next release) has migration code.

@jscinoz
Copy link
Author

jscinoz commented Oct 5, 2015

Ah, great, thank you for that. I'll give it a try with borg.

@jscinoz
Copy link
Author

jscinoz commented Oct 11, 2015

@ThomasWaldmann Done: borgbackup/borg#269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants