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

ValueError: invalid literal for int() with base 10: 'COMPLETE' #2

Closed
pathennessy opened this issue Oct 4, 2012 · 1 comment
Closed

Comments

@pathennessy
Copy link

Running the backup-manager.py command while a backup is running started to list the backup sets and then died with this error..

Traceback (most recent call last):
File "/usr/local/sbin/backup-manager.py", line 420, in
main()
File "/usr/local/sbin/backup-manager.py", line 293, in main
hostnames = list_backups(bucket)
File "/usr/local/sbin/backup-manager.py", line 91, in list_backups
backupnum = int(keyparts.pop())
ValueError: invalid literal for int() with base 10: 'COMPLETE'

I browsed my S3 files and noticed one odd file. In one of the backup folders, I have a ..tar.COMPLETE.gpg file. That doesn't seem to match. I'm not exactly sure what the keyparts.pop() is doing in the script, but I think these things are related. I think I'll just delete this extra file and see what happens. Not sure if you thought any code changes were warranted for this condition.

@rtucker
Copy link
Owner

rtucker commented Nov 12, 2012

This might be fixed in 5b4d78f. Basically, the COMPLETE file was getting gpg'd when it shouldn't. Haven't tested this fix yet, though.

If it happens again, please re-open :-)

@rtucker rtucker closed this as completed Nov 12, 2012
flifloo pushed a commit to flifloo/backuppc-archive-b2 that referenced this issue Apr 8, 2022
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