Unable to restore apps backup on a fresh YunoHost instance

My YunoHost server

Hardware: VPS bought online
YunoHost version: 3.6.5.3
I have access to my server : Through SSH && through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I’m trying to restore backups of my raspberry on a VPS.
Backups were made using yunohost backup create ... command.
The backups are 2 months old and my YunoHost was up to date at this time.

After a fresh install of YunoHost on the VPS, I restored the ‘system’ backup : no problem.
But for the apps backup, I have several errors, all different :

  • Backup containing ihatemoney, rainloop, kresus, kanboard, dokuwiki :
Info: Preparing archive for restoration…
Error: Invalid backup archive
  • Backup containing Nextcloud (core only) :
Info: Preparing archive for restoration…
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 214, in <module>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 136, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 425, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 523, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/backup.py", line 2159, in backup_restore
    restore_manager.mount()
  File "/usr/lib/moulinette/yunohost/backup.py", line 1042, in mount
    self.method.mount(self)
  File "/usr/lib/moulinette/yunohost/backup.py", line 1854, in mount
    if "info.json" in tar.getnames():
  File "/usr/lib/python2.7/tarfile.py", line 1846, in getnames
    return [tarinfo.name for tarinfo in self.getmembers()]
  File "/usr/lib/python2.7/tarfile.py", line 1838, in getmembers
    self._load()        # all members, we first have to
  File "/usr/lib/python2.7/tarfile.py", line 2419, in _load
    tarinfo = self.next()
  File "/usr/lib/python2.7/tarfile.py", line 2350, in next
    self.fileobj.seek(self.offset - 1)
  File "/usr/lib/python2.7/gzip.py", line 443, in seek
    self.read(1024)
  File "/usr/lib/python2.7/gzip.py", line 268, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 319, in _read
    uncompress = self.decompress.decompress(buf)
zlib.error: Error -3 while decompressing: too many length or distance symbols
  • Backup containing Jirafeau :
Info: Preparing archive for restoration…
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 214, in <module>
    timeout=opts.timeout,
  File "/usr/lib/python2.7/dist-packages/moulinette/__init__.py", line 136, in cli
    moulinette.run(args, output_as=output_as, password=password, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/cli.py", line 425, in run
    ret = self.actionsmap.process(args, timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 523, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/backup.py", line 2159, in backup_restore
    restore_manager.mount()
  File "/usr/lib/moulinette/yunohost/backup.py", line 1042, in mount
    self.method.mount(self)
  File "/usr/lib/moulinette/yunohost/backup.py", line 1854, in mount
    if "info.json" in tar.getnames():
  File "/usr/lib/python2.7/tarfile.py", line 1846, in getnames
    return [tarinfo.name for tarinfo in self.getmembers()]
  File "/usr/lib/python2.7/tarfile.py", line 1838, in getmembers
    self._load()        # all members, we first have to
  File "/usr/lib/python2.7/tarfile.py", line 2419, in _load
    tarinfo = self.next()
  File "/usr/lib/python2.7/tarfile.py", line 2350, in next
    self.fileobj.seek(self.offset - 1)
  File "/usr/lib/python2.7/gzip.py", line 443, in seek
    self.read(1024)
  File "/usr/lib/python2.7/gzip.py", line 268, in read
    self._read(readsize)
  File "/usr/lib/python2.7/gzip.py", line 319, in _read
    uncompress = self.decompress.decompress(buf)
zlib.error: Error -3 while decompressing: invalid stored block lengths

These 3 backups archives look correct though : they contain the info.json and backup.csv files, and the apps dir.

I’m stuck here, so any help is welcome :slightly_smiling_face: