On Jul 26 2018, Florian Ludwig <
f.lu...@greyrook.com> wrote:
> Hi there,
>
> I am trying to use s3ql 2.29 with swift backend. I always end up with a
> corrupted backend. (logs below)
My guess is that the backend does not store/return object metadata
correctly.
> Downloading the files created by mkfs and
> using local:// as a backend also does result in the same error message
The file format is different, this can't work.
> so I
> assume the upload part is the problem, not the downloading part.
No, it may be either.
> Any ideas what could be the culprit?
You could try to uncomment the catching of the exception in
src/s3ql/common.py. This will not fix the problem, but may narrow it
down. Comment out the following lines:
diff --git a/src/s3ql/common.py b/src/s3ql/common.py
--- a/src/s3ql/common.py
+++ b/src/s3ql/common.py
@@ -279,9 +279,9 @@
except DanglingStorageURLError as exc:
raise QuietError(str(exc), exitcode=16)
- except CorruptedObjectError:
- raise QuietError('Backend data corrupted, or file system '
- 'revision needs upgrade.', exitcode=17)
+# except CorruptedObjectError:
+# raise QuietError('Backend data corrupted, or file system '
+# 'revision needs upgrade.', exitcode=17)
except NoSuchObject:
encrypted = False
@@ -309,16 +309,16 @@
compress = getattr(options, 'compress', ('lzma', 2))
with ComprencBackend(fs_passphrase, compress, backend) as tmp_backend:
- try:
+# try:
if encrypted:
data_pw = tmp_backend['s3ql_passphrase']
else:
data_pw = None
# Try to read metadata to detect old file system revision
tmp_backend.fetch('s3ql_metadata')
- except CorruptedObjectError:
- raise QuietError('Backend data corrupted, or file system '
- 'revision needs upgrade.', exitcode=17)
+# except CorruptedObjectError:
+# raise QuietError('Backend data corrupted, or file system '
+# 'revision needs upgrade.', exitcode=17)
return lambda: ComprencBackend(data_pw, compress, options.backend_class(options))
Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«