toniblyx / alfresco-backup-and-recovery-tool

Alfresco BART is a tool written in shell script on top of Duplicity to do Alfresco backups and restore from a local file system, FTP, SCP or Amazon S3.
Apache License 2.0
96 stars 48 forks source link

Getting errors while backuping to s3 #43

Closed monicakumari closed 5 years ago

monicakumari commented 5 years ago

Hello,

I am getting the below errors again and again while backuping to s3 bucket.

ERROR 30 AssertionError . Traceback (most recent call last): . File "/usr/bin/duplicity", line 1532, in . with_tempdir(main) . File "/usr/bin/duplicity", line 1526, in with_tempdir . fn() . File "/usr/bin/duplicity", line 1380, in main . do_backup(action) . File "/usr/bin/duplicity", line 1405, in do_backup . globals.archive_dir).set_values() . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 710, in set_values . self.get_backup_chains(partials + backend_filename_list) . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 835, in get_backup_chains . add_to_sets(f) . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 829, in add_to_sets . if new_set.add_filename(filename): . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 101, in add_filename . self.set_manifest(filename) . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 149, in set_manifest . self.set_files_changed() . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 128, in set_files_changed . mf = self.get_manifest() . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 250, in get_manifest . return self.get_local_manifest() . File "/usr/lib/python2.7/dist-packages/duplicity/collections.py", line 225, in get_local_manifest . return manifest.Manifest().from_string(manifest_buffer) . File "/usr/lib/python2.7/dist-packages/duplicity/manifest.py", line 207, in from_string . assert filecount == len(self.files_changed) . AssertionError .

Its was working fine till before 5-6 days. but now I am getting the above errors and its not working. Please guide me what to do to resolve this issue?.

douglascrp commented 5 years ago

Can you execute alfresco-bart again and share the full log file?

monicakumari commented 5 years ago

yes, sure. Please check the logs in attached file. alfresco-bart-2018-11-14.log

It was working fine till before 6-7 days. Thanks.

monicakumari commented 5 years ago

Its working fine If I create a new bucket in s3 and backup in it. but not working with the existing bucket which contains old backups.

douglascrp commented 5 years ago

I could not find anything wrong with your backup (log or config from the other issue), so I guess it might be a problem that happened in the past and let your volumes in a corrupted state. So, if you can start over again, simply delete all the content inside of that bucket and try again. And I also noticed you are still using the 0.2 version of bart, and there is already a 0.3 version.

It is not going to "solve" your problem, but you should try to used it instead.