What app is this about, and its version: Nextcloud 33.0.4~ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: Raspberry Pi 3, 4+
Describe your issue
Hello,
The last upgrade of nextcloud ends up in an apt error while updating this part. Can’t really see why there’s certification error as for me apt is supposed to manage this so I could use some help ![]()
By the way it’s not the same issue as Upgrade Nextcloud ? > 33.0.2 failed (ERROR in script snippet)
Share relevant logs or error messages
Info: Now upgrading nextcloud…
Info: Creating a safety backup prior to the upgrade
Info: Collecting files to be backed up for nextcloud…
Info: Declaring files to be backed up…
Info: /home/yunohost.app/nextcloud will not be saved, because ‘BACKUP_CORE_ONLY’ is set.
Info: /var/log/nextcloud will not be saved, because ‘BACKUP_CORE_ONLY’ is set.
Info: Backing up the MySQL database…
Info: Backup script completed for nextcloud. (YunoHost will then actually copy those files to the archive).
Info: Creating a backup archive from the collected files…
Info: The archive will contain about 4.6GB of data.
Success! Backup created: nextcloud-pre-upgrade2
Info: Backup nextcloud-pre-upgrade1 was deleted because it is replaced by a newer backup nextcloud-pre-upgrade2
Info: Updating sources…
Info: Updating system_user…
Info: Updating install_dir…
Info: Updating data_dir…
Info: Updating permissions…
Info: Updating ports…
Info: Updating apt…
Warning: E: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease 503 certificate has expired [IP: 2a04:4e42::820 443]
Warning: E: Some index files failed to download. They have been ignored, or old ones used instead.
Error: provision_or_update failed for apt : An error occured inside the script snippet
Info: The operation ‘Upgrade the ‘nextcloud’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20260601-072052-app_upgrade-nextcloud’ to get help
Warning: Here’s an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + return 0
Info: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update --error-on=any
Info: DEBUG - Hit:1 Index of /debian bookworm InRelease
Info: DEBUG - Hit:2 Index of /debian-security bookworm-security InRelease
Info: DEBUG - Hit:3 Index of /debian bookworm-updates InRelease
Info: DEBUG - Hit:5 Index of /debian bookworm InRelease
Info: DEBUG - Get:6 Index of linux/debian/ bookworm InRelease [46.6 kB]
Info: DEBUG - Hit:7 https://dl.yarnpkg.com/debian stable InRelease
Info: DEBUG - Hit:4 Index of /debian/ bookworm InRelease
Info: DEBUG - Ign:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - Hit:9 https://mkvtoolnix.download/debian bookworm InRelease
Info: DEBUG - Ign:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - Ign:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - Err:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - 503 certificate has expired [IP: 2a04:4e42::820 443]
Info: DEBUG - Fetched 46.6 kB in 7s (6265 B/s)
Info: DEBUG - Reading package lists…
Info: WARNING - E: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease 503 certificate has expired [IP: 2a04:4e42::820 443]
Info: WARNING - E: Some index files failed to download. They have been ignored, or old ones used instead.
Info: DEBUG - + ynh_exit_properly
Warning: Failed to update apt : The operation ‘Upgrade the ‘nextcloud’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20260601-072052-app_upgrade-nextcloud’ to get help
Info: Reverting sources…
Info: Reverting system_user…
Info: Reverting install_dir…
Info: Reverting data_dir…
Info: Reverting permissions…
Info: Reverting ports…
Info: Reverting apt…
Warning: E: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease 503 certificate has expired [IP: 2a04:4e42:600::820 443]
Warning: E: Some index files failed to download. They have been ignored, or old ones used instead.
Error: provision_or_update failed for apt : An error occured inside the script snippet
Info: The operation ‘Provisioning/deprovisioning/updating a resource’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20260601-072120-resource_snippet-nextcloud’ to get help
Warning: Here’s an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + return 0
Info: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update --error-on=any
Info: DEBUG - Hit:1 Index of /debian bookworm InRelease
Info: DEBUG - Hit:2 Index of /debian-security bookworm-security InRelease
Info: DEBUG - Hit:3 Index of /debian bookworm-updates InRelease
Info: DEBUG - Get:4 Index of linux/debian/ bookworm InRelease [46.6 kB]
Info: DEBUG - Hit:6 Index of /debian bookworm InRelease
Info: DEBUG - Hit:7 https://dl.yarnpkg.com/debian stable InRelease
Info: DEBUG - Hit:5 Index of /debian/ bookworm InRelease
Info: DEBUG - Ign:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - Hit:9 https://mkvtoolnix.download/debian bookworm InRelease
Info: DEBUG - Ign:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - Ign:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - Err:8 https://packages.sury.org/php bookworm InRelease
Info: DEBUG - 503 certificate has expired [IP: 2a04:4e42:600::820 443]
Info: DEBUG - Fetched 46.6 kB in 7s (6250 B/s)
Info: DEBUG - Reading package lists…
Info: WARNING - E: Failed to fetch https://packages.sury.org/php/dists/bookworm/InRelease 503 certificate has expired [IP: 2a04:4e42:600::820 443]
Info: WARNING - E: Some index files failed to download. They have been ignored, or old ones used instead.
Info: DEBUG - + ynh_exit_properly
Error: Failed to rollback apt : The operation ‘Provisioning/deprovisioning/updating a resource’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20260601-072120-resource_snippet-nextcloud’ to get help
Error: Provisioning, deprovisioning, or updating resources for nextcloud failed: The operation ‘Upgrade the ‘nextcloud’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20260601-072052-app_upgrade-nextcloud’ to get help
Error: None