On May 31 2017, Ben Hymers <[email protected]> wrote:
> The error for the upgrade is:
>
> xxx@xxx:~/# s3qladm upgrade s3://xxx
> Getting file system parameters..
> Using cached metadata.
> File system is damaged, need to run fsck before upgrade.
> ERROR: Uncaught top-level exception:
> Traceback (most recent call last):
>   File "/usr/local/bin/s3qladm", line 11, in <module>
>     load_entry_point('s3ql==2.21', 'console_scripts', 's3qladm')()
>   File 
> "/usr/local/lib/python3.5/dist-packages/s3ql-2.21-py3.5-linux-x86_64.egg/s3ql/adm.py"
> , line 93, in main
>     options.cachedir))
>   File 
> "/usr/local/lib/python3.5/dist-packages/s3ql-2.21-py3.5-linux-x86_64.egg/s3ql/adm.py"
> , line 248, in upgrade
>     print(get_old_rev_msg(param['revision'], 'fsck.s3ql'))
>   File 
> "/usr/local/lib/python3.5/dist-packages/s3ql-2.21-py3.5-linux-x86_64.egg/s3ql/adm.py"
> , line 206, in get_old_rev_msg
>     ''' % { 'version': REV_VER_MAP[rev],
> KeyError: 22

Ops, my bad. The attached patch should fix this issue. However, the
crash is not what's preventing you from the upgrade, it's just
preventing the rest of the message from being printed... which is to use
fsck.s3ql from version 2.16 or 2.15.

> And the error for the recommended fsck is:
>
> xxx@xxx:~/# fsck.s3ql s3://xxx
> Starting fsck of s3://xxx/
> Using cached metadata.
> WARNING: Remote metadata is outdated.
> ERROR: File system revision too old, please run `s3qladm upgrade`
> first.

Try running fsck.s3ql from 2.15, and then s3qladm upgrade from 2.21.

Best,
-Nikolaus

-- 
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/s3ql/__init__.py b/src/s3ql/__init__.py
--- a/src/s3ql/__init__.py
+++ b/src/s3ql/__init__.py
@@ -40,6 +40,7 @@
 # Maps file system revisions to the last S3QL version that
 # supported this revision.
 REV_VER_MAP = {
+    22: '2.16',
     21: '2.13',
     20: '2.9',
     16: '1.15',

Reply via email to