Can't upgrade nextcloud to version 30

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0.9
What app is this about: Nextcloud

Describe your issue

Upgrade run into issues and does not finish well

Share relevant logs or error messages

args:
apps:

  • nextcloud
    name: nextcloud-pre-upgrade2
    system: null
    ended_at: 2024-12-19 13:56:09.327595
    error: Nothing to save
    interface: cli
    operation: backup_create
    parent: null
    related_to:
    • app
    • nextcloud
      started_at: 2024-12-19 13:56:07.849145
      success: false
      yunohost_version: 12.0.9

============

2024-12-19 10:56:07,882: INFO - Collecting files to be backed up for nextcloud…
2024-12-19 10:56:07,996: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “/var/cache/yunohost/app_tmp_work_dirs/app_343kd6jt/scripts/backup” 7>&1’]’
2024-12-19 10:56:08,005: DEBUG - + source …/settings/scripts/_common.sh
2024-12-19 10:56:08,006: DEBUG - + source /usr/share/yunohost/helpers
2024-12-19 10:56:08,008: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2024-12-19 10:56:08,010: DEBUG - +++ cd – /usr/share/yunohost
2024-12-19 10:56:08,011: DEBUG - +++ pwd
2024-12-19 10:56:08,012: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2024-12-19 10:56:08,012: DEBUG - ++ YNH_HELPERS_VERSION=2
2024-12-19 10:56:08,017: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2024-12-19 10:56:08,018: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2024-12-19 10:56:08,089: DEBUG - + source …/settings/scripts/_ynh_mysql_dump_db.sh
2024-12-19 10:56:08,089: DEBUG - + ynh_print_info ‘–message=Declaring files to be backed up…’
2024-12-19 10:56:08,115: INFO - Declaring files to be backed up…
2024-12-19 10:56:08,116: DEBUG - + ynh_backup --src_path=/var/www/nextcloud
2024-12-19 10:56:08,177: DEBUG - + dest_path=
2024-12-19 10:56:08,178: DEBUG - + is_big=0
2024-12-19 10:56:08,178: DEBUG - + not_mandatory=0
2024-12-19 10:56:08,178: DEBUG - + BACKUP_CORE_ONLY=1
2024-12-19 10:56:08,178: DEBUG - + test -n nextcloud
2024-12-19 10:56:08,178: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
2024-12-19 10:56:08,371: DEBUG - + do_not_backup_data=
2024-12-19 10:56:08,371: DEBUG - + ‘[’ ‘!’ -e /var/www/nextcloud ‘]’
2024-12-19 10:56:08,372: DEBUG - ++ realpath /var/www/nextcloud
2024-12-19 10:56:08,375: DEBUG - + src_path=/var/www/nextcloud
2024-12-19 10:56:08,375: DEBUG - + [[ -z ‘’ ]]
2024-12-19 10:56:08,375: DEBUG - + dest_path=var/www/nextcloud
2024-12-19 10:56:08,376: DEBUG - + [[ -e var/www/nextcloud ]]
2024-12-19 10:56:08,376: DEBUG - + local rel_dir=/apps/nextcloud/backup
2024-12-19 10:56:08,376: DEBUG - + rel_dir=/apps/nextcloud/backup/
2024-12-19 10:56:08,376: DEBUG - + dest_path=/apps/nextcloud/backup/var/www/nextcloud
2024-12-19 10:56:08,377: DEBUG - + dest_path=apps/nextcloud/backup/var/www/nextcloud
2024-12-19 10:56:08,377: DEBUG - ++ echo /var/www/nextcloud
2024-12-19 10:56:08,377: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2024-12-19 10:56:08,380: DEBUG - + local src=/var/www/nextcloud
2024-12-19 10:56:08,382: DEBUG - ++ echo apps/nextcloud/backup/var/www/nextcloud
2024-12-19 10:56:08,382: DEBUG - ++ sed --regexp-extended ‘s/"/""/g’
2024-12-19 10:56:08,386: DEBUG - + local dest=apps/nextcloud/backup/var/www/nextcloud
2024-12-19 10:56:08,387: DEBUG - ++ dirname /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www/nextcloud
2024-12-19 10:56:08,389: DEBUG - + mkdir --parents /home/yunohost.backup/tmp/nextcloud-pre-upgrade2/apps/nextcloud/backup/var/www
2024-12-19 10:56:08,393: DEBUG - + ynh_backup --src_path=/home/yunohost.app/nextcloud --is_big
2024-12-19 10:56:08,496: DEBUG - + dest_path=
2024-12-19 10:56:08,496: DEBUG - + is_big=1
2024-12-19 10:56:08,496: DEBUG - + not_mandatory=0
2024-12-19 10:56:08,497: DEBUG - + BACKUP_CORE_ONLY=1
2024-12-19 10:56:08,497: DEBUG - + test -n nextcloud
2024-12-19 10:56:08,497: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
2024-12-19 10:56:08,690: DEBUG - + do_not_backup_data=
2024-12-19 10:56:08,692: DEBUG - + ynh_print_info ‘–message=/home/yunohost.app/nextcloud will not be saved, because ‘'‘BACKUP_CORE_ONLY’'’ is set.’
2024-12-19 10:56:08,716: INFO - /home/yunohost.app/nextcloud will not be saved, because ‘BACKUP_CORE_ONLY’ is set.
2024-12-19 10:56:08,717: DEBUG - + return 0
2024-12-19 10:56:08,717: DEBUG - ++ ynh_exit_properly
2024-12-19 10:56:08,717: DEBUG - ++ [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2024-12-19 10:56:08,724: WARNING - /var/cache/yunohost/app_tmp_work_dirs/app_343kd6jt/scripts/backup: line 28: phpversion: unbound variable
2024-12-19 10:56:09,220: DEBUG - ++ exit 1
2024-12-19 10:56:09,321: DEBUG - Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_343kd6jt/scripts/backup
2024-12-19 10:56:09,324: ERROR - Could not back up nextcloud

we need the full logs (green button)

1 Like

sorry, but it looks the same on green button: https://paste.yunohost.org/raw/fukajeguyi

Same issue here… I have three Nextcloud instances and I got the same result on all three. The app will not update, it tries but fails and reverts to the previous version.
I am trying to install the following as offered in System Update:

Here is my log of the ‘app_upgrade-nextcloud’
https://paste.yunohost.org/raw/iforanovoc

I might be wrong but if my memory works, you have to disable 2FA or better still disable all Nextcloud apps before the update?

All the best

Dj

1 Like

@deljones twofactor_nextcloud_notification app is the culprit. You can deactivate it and upgrade again

I can’t even login anymore from the website, can i do it form the terminal? Maybe I should roll back to last backup?

Testing nginx I see those troubles:

$ sudo nginx -t
2024/12/19 19:22:33 [info] 5094#5094: Using 116KiB of shared memory for nchan in /etc/nginx/nginx.conf:61
2024/12/19 19:22:33 [info] 5094#5094: Using 131072KiB of shared memory for nchan in /etc/nginx/nginx.conf:61
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I manage to upgrade nextcloud, what I did?
Removed the current version, rolled back the last backup of nextcloud app, then upgrade using the web interface, upgrading from terminal gave me that problem.

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