Can't upgrade nextcloud

Trying to upgrade from 26 to 27 here, running on a rpi4
one yunohost server went well without problems, the other one:

https://paste.yunohost.org/raw/udazatocuq

I thought this was the problem:

2023-07-21 15:34:17,801: WARNING - 902  A backup archive with this name already exists.
2023-07-21 15:34:17,968: DEBUG - + ynh_die '--message=Backup failed, the upgrade process was aborted.'
2023-07-21 15:34:18,080: WARNING - Backup failed, the upgrade process was aborted.

But then i deleted on the backups I had in that server, and still get the same warning.

Can you show us the output of ls -l /home/yunohost.backup/archives command?

1 Like

ls -l /home/yunohost.backup/archives
total 79340
-rw-r–r-- 1 root root 40617984 Jul 21 13:43 nextcloud-pre-upgrade1.tar
-rw-r–r-- 1 root root 40617984 Jul 21 13:28 nextcloud-pre-upgrade2.tar

hmm I was only seeing in the interface...will delete them and try again

Just deleted those two backup files and still got a similar error:

2023-07-22 05:55:16,697: WARNING - OSError: [Errno 5] Input/output error
2023-07-22 05:55:16,776: DEBUG - 26458 The operation ‘Create a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20230722-045451-backup_create’ to get help
2023-07-22 05:55:16,794: DEBUG - 26476 action [31230.1] executed in 25.817s
2023-07-22 05:55:16,795: WARNING - 26477 Could not create the backup archive
2023-07-22 05:55:17,012: DEBUG - + ynh_die ‘–message=Backup failed, the upgrade process was aborted.’
2023-07-22 05:55:17,055: WARNING - Backup failed, the upgrade process was aborted.



How to upgrade ignoring the previously create of a backup?

I tried creating a backup of only nextcloud app and got this error:
https://paste.yunohost.org/raw/jocutinidu

2023-07-31 06:58:25,685: Error: Could not add the files '/var/www/nextcloud' (named in the archive 'apps/nextcloud/backup/var/www/nextcloud') to be backed up into the compressed archive '/home/yunohost.backup/archives/20230731-093212.tar'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yunohost/backup.py", line 1964, in backup
    tar.add(path["source"], arcname=path["dest"])
  File "/usr/lib/python3.9/tarfile.py", line 1985, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/usr/lib/python3.9/tarfile.py", line 1985, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  File "/usr/lib/python3.9/tarfile.py", line 1985, in add
    self.add(os.path.join(name, f), os.path.join(arcname, f),
  [Previous line repeated 5 more times]
  File "/usr/lib/python3.9/tarfile.py", line 1979, in add
    self.addfile(tarinfo, f)
  File "/usr/lib/python3.9/tarfile.py", line 2007, in addfile
    copyfileobj(fileobj, self.fileobj, tarinfo.size, bufsize=bufsize)
  File "/usr/lib/python3.9/tarfile.py", line 247, in copyfileobj
    buf = src.read(bufsize)
OSError: [Errno 5] Input/output error

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.