<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #70: s3ql backup error</title>
    <link>https://trac.crin.org/trac/ticket/70</link>
    <description>&lt;p&gt;
Email from &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin3"&gt;Crin3&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Starting fsck of s3c://s.qstack.advania.com:443/crin4/
Using cached metadata.
WARNING: Remote metadata is outdated.
ERROR: File system revision too old, please run `s3qladm upgrade` first.
&lt;/pre&gt;</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/70</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 11 Apr 2016 10:10:21 GMT</pubDate>
      <title>description changed</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/trac/ticket/70?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 11 Apr 2016 10:53:53 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I missed that &lt;tt&gt;s3ql&lt;/tt&gt; was being upgraded with the other updates on &lt;a class="new ticket" href="https://trac.crin.org/trac/ticket/17#comment:77" title="task: Debian System Updates (new)"&gt;ticket:17#comment:77&lt;/a&gt;.
&lt;/p&gt;
&lt;pre class="wiki"&gt;s3qladm upgrade s3c://s.qstack.advania.com:443/crin4
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/bin/s3qladm", line 9, in &amp;lt;module&amp;gt;
    load_entry_point('s3ql==2.17.1+hg2', 'console_scripts', 's3qladm')()
  File "/usr/lib/s3ql/s3ql/adm.py", line 94, in main
    return upgrade(options)
  File "/usr/lib/s3ql/s3ql/common.py", line 514, in wrapper
    return fn(*a, **kw)
  File "/usr/lib/s3ql/s3ql/adm.py", line 264, in upgrade
    print(get_old_rev_msg(param['revision'], 'fsck.s3ql'))
  File "/usr/lib/s3ql/s3ql/adm.py", line 209, in get_old_rev_msg
    ''' % { 'version': REV_VER_MAP[rev],
KeyError: 22
fsck.s3ql s3c://s.qstack.advania.com:443/crin4
Starting fsck of s3c://s.qstack.advania.com:443/crin4/
Using cached metadata.
WARNING: Remote metadata is outdated.
ERROR: File system revision too old, please run `s3qladm upgrade` first.
&lt;/pre&gt;&lt;p&gt;
Not sure what to try next, spent some time reading the list archives and have &lt;a class="ext-link" href="https://groups.google.com/forum/?_escaped_fragment_=topic/s3ql/xXQjtOo1NeQ#!topic/s3ql/xXQjtOo1NeQ"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;sent a email to the list&lt;/a&gt;.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 11 Apr 2016 11:33:17 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.23&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.75&lt;/em&gt; to &lt;em&gt;0.98&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Checking through the emails sent by the backup jobs and the last good backup appears to have been made on 3rd March 2016 for &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; and 4th March 2016 for &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin2"&gt;Crin2&lt;/a&gt; and &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin4"&gt;Crin4&lt;/a&gt;, very sorry not to have noticed the errors sooner.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 12 Apr 2016 09:19:07 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.98&lt;/em&gt; to &lt;em&gt;1.48&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I spent some time last night emailing the list, see &lt;a class="ext-link" href="https://groups.google.com/forum/?_escaped_fragment_=topic/s3ql/xXQjtOo1NeQ#!topic/s3ql/xXQjtOo1NeQ"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;the thread&lt;/a&gt;, Nikolaus has advised:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
Go back to the S3QL version that you used before, and then go forward
one minor version after another until you reach 2.17.1. (not every minor
version will require a file system update though, for most updates
you'll just get a "file system revision is up-to-date" message).
&lt;/p&gt;
&lt;/blockquote&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 12 Apr 2016 11:20:59 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:5</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:5</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.48&lt;/em&gt; to &lt;em&gt;1.98&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Downgrading &lt;tt&gt;s3ql&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;sudo -i
aptitude remove s3ql
wget http://snapshot.debian.org/archive/debian/20160229T214851Z/pool/main/s/s3ql/s3ql_2.16%2Bdfsg-1_amd64.deb
shasum s3ql_2.16+dfsg-1_amd64.deb | grep 0fcba074d3f8c69e1841285fee059d2ad6a7793a
aptitude install python3-apsw python3-crypto python3-crypto python3-defusedxml python3-dugong  python3-llfuse python3-requests libjs-sphinxdoc python3-pkg-resources
dpkg -i /root/s3ql_2.16+dfsg-1_amd64.deb
&lt;/pre&gt;&lt;p&gt;
Mounting the file systems:
&lt;/p&gt;
&lt;pre class="wiki"&gt;mnt-s3ql crin1
mnt-s3ql crin2
mnt-s3ql crin4
&lt;/pre&gt;&lt;p&gt;
And waiting for the results...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 12 Apr 2016 13:04:09 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:6</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:6</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;1.98&lt;/em&gt; to &lt;em&gt;2.48&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The filesystems have now mounted OK:
&lt;/p&gt;
&lt;pre class="wiki"&gt;df -h
s3c://s.qstack.advania.com:443/crin4/  1.0T   21G 1004G   2% /media/s3ql/crin4
s3c://s.qstack.advania.com:443/crin1/  1.0T  242G  783G  24% /media/s3ql/crin1
s3c://s.qstack.advania.com:443/crin2/  1.0T   76G  949G   8% /media/s3ql/crin2
&lt;/pre&gt;&lt;p&gt;
So upgrading s3ql and everything else installed the following:
&lt;/p&gt;
&lt;pre class="wiki"&gt;2016-04-12      chris
        *       apt:amd64/stretch apt-listchanges:all/stretch apt-utils:amd64/stretch bind9-host:amd64/stretch console-setup:all/stretch console-setup-linux:all/stretch dnsutils:amd64/stretch gnupg:amd64/stretch gnupg-curl:amd64/stretch gpgv:amd64/stretch host:all/stretch isc-dhcp-client:amd64/stretch isc-dhcp-common:amd64/stretch iso-codes:all/stretch keyboard-configuration:all/stretch kmod:amd64/stretch libapt-inst2.0:amd64/stretch libapt-pkg5.0:amd64/stretch libatk1.0-0:amd64/stretch libatk1.0-data:all/stretch libdebconfclient0:amd64/stretch libgraphite2-3:amd64/stretch libio-socket-ssl-perl:all/stretch libkmod2:amd64/stretch libnghttp2-14:amd64/stretch libpng12-0:amd64/stretch libseccomp2:amd64/stretch libxapian22v5:amd64/stretch s3ql:amd64/stretch : updated
&lt;/pre&gt;&lt;p&gt;
Upgrading the filesystems:
&lt;/p&gt;
&lt;pre class="wiki"&gt;s3qladm upgrade s3c://s.qstack.advania.com:443/crin4
  ERROR: Can not work on mounted file system.
umnt-s3ql crin4
s3qladm upgrade s3c://s.qstack.advania.com:443/crin4
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/bin/s3qladm", line 9, in &amp;lt;module&amp;gt;
    load_entry_point('s3ql==2.17.1+hg2', 'console_scripts', 's3qladm')()
  File "/usr/lib/s3ql/s3ql/adm.py", line 94, in main
    return upgrade(options)
  File "/usr/lib/s3ql/s3ql/common.py", line 514, in wrapper
    return fn(*a, **kw)
  File "/usr/lib/s3ql/s3ql/adm.py", line 264, in upgrade
    print(get_old_rev_msg(param['revision'], 'fsck.s3ql'))
  File "/usr/lib/s3ql/s3ql/adm.py", line 209, in get_old_rev_msg
    ''' % { 'version': REV_VER_MAP[rev],
KeyError: 22
&lt;/pre&gt;&lt;p&gt;
So reverting again:
&lt;/p&gt;
&lt;pre class="wiki"&gt;cd
aptitude remove s3ql
shasum s3ql_2.16+dfsg-1_amd64.deb | grep 0fcba074d3f8c69e1841285fee059d2ad6a7793a
aptitude install python3-apsw python3-crypto python3-crypto python3-defusedxml python3-dugong  python3-llfuse python3-requests libjs-sphinxdoc python3-pkg-resources
dpkg -i /root/s3ql_2.16+dfsg-1_amd64.deb
&lt;/pre&gt;&lt;p&gt;
And fsck'ing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;fsck.s3ql s3c://s.qstack.advania.com:443/crin1
fsck.s3ql s3c://s.qstack.advania.com:443/crin2
fsck.s3ql s3c://s.qstack.advania.com:443/crin4
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 13 Apr 2016 14:31:49 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:7</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:7</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;1&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;2.48&lt;/em&gt; to &lt;em&gt;3.48&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
I have run &lt;tt&gt;fsck.s3ql --force&lt;/tt&gt; several times until for each bucket it has run without this error:
&lt;/p&gt;
&lt;pre class="wiki"&gt;Encountered ConnectionTimedOut (send/recv timeout exceeded), retrying Backend.copy (attempt 3)...
&lt;/pre&gt;&lt;p&gt;
All the filesystems are marked as clean:
&lt;/p&gt;
&lt;pre class="wiki"&gt;fsck.s3ql s3c://s.qstack.advania.com:443/crin4
Starting fsck of s3c://s.qstack.advania.com:443/crin4/
Using cached metadata.
File system is marked as clean. Use --force to force checking.
fsck of s3c://s.qstack.advania.com:443/crin1/
root@crin3:~# fsck.s3ql s3c://s.qstack.advania.com:443/crin1
Starting fsck of s3c://s.qstack.advania.com:443/crin1/
Using cached metadata.
File system is marked as clean. Use --force to force checking.
fsck.s3ql s3c://s.qstack.advania.com:443/crin2
Starting fsck of s3c://s.qstack.advania.com:443/crin2/
Using cached metadata.
File system is marked as clean. Use --force to force checking.
&lt;/pre&gt;&lt;p&gt;
So upgrading s3ql again and then upgrading the filesystems:
&lt;/p&gt;
&lt;pre class="wiki"&gt;s3qladm upgrade s3c://s.qstack.advania.com:443/crin4
Getting file system parameters..
Using cached metadata.
I am about to update the file system to the newest revision.
You will not be able to access the file system with any older version
of S3QL after this operation.
You should make very sure that this command is not interrupted and
that no one else tries to mount, fsck or upgrade the file system at
the same time.
Please enter "yes" to continue.
&amp;gt; yes
Upgrading from revision 22 to 23...
Dumping metadata...
..objects..
..blocks..
..inodes..
..inode_blocks..
..symlink_targets..
..names..
..contents..
..ext_attributes..
Compressing and uploading metadata...
Wrote 26.8 MiB of compressed metadata.
Cycling metadata backups...
Backing up old metadata...
File system upgrade complete.
s3qladm upgrade s3c://s.qstack.advania.com:443/crin1
Getting file system parameters..
Using cached metadata.
I am about to update the file system to the newest revision.
You will not be able to access the file system with any older version
of S3QL after this operation.
You should make very sure that this command is not interrupted and
that no one else tries to mount, fsck or upgrade the file system at
the same time.
Please enter "yes" to continue.
&amp;gt; yes
Upgrading from revision 22 to 23...
Dumping metadata...
..objects..
..blocks..
..inodes..
..inode_blocks..
..symlink_targets..
..names..
..contents..
..ext_attributes..
Compressing and uploading metadata...
Wrote 101 MiB of compressed metadata.
Cycling metadata backups...
Backing up old metadata...
Encountered ConnectionTimedOut (send/recv timeout exceeded), retrying Backend.copy (attempt 3)...
File system upgrade complete.
 upgrade s3c://s.qstack.advania.com:443/crin2
Getting file system parameters..
Using cached metadata.
I am about to update the file system to the newest revision.
You will not be able to access the file system with any older version
of S3QL after this operation.
You should make very sure that this command is not interrupted and
that no one else tries to mount, fsck or upgrade the file system at
the same time.
Please enter "yes" to continue.
&amp;gt; yes
Upgrading from revision 22 to 23...
Dumping metadata...
..objects..
..blocks..
..inodes..
..inode_blocks..
..symlink_targets..
..names..
..contents..
..ext_attributes..
Compressing and uploading metadata...
Wrote 111 MiB of compressed metadata.
Cycling metadata backups...
Backing up old metadata...
Encountered ConnectionTimedOut (send/recv timeout exceeded), retrying Backend.copy (attempt 3)...
File system upgrade complete.
&lt;/pre&gt;&lt;p&gt;
I'm now manually running the backups, all looks good so far,
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 14 Apr 2016 09:37:26 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/70#comment:8</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/70#comment:8</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;3.48&lt;/em&gt; to &lt;em&gt;3.73&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The backups ran fine last night, the gap in backups is between 2016-03-03 and 2016-04-13 for &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; and between 2016-03-04 and 2016-04-13 for &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin2"&gt;Crin2&lt;/a&gt;. Added a note to &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/67" title="defect: S3QL 2.17 has been released (closed: fixed)"&gt;ticket:67&lt;/a&gt; and closing this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>