Failed uprade Nextcloud 33.0.3~ynh1 -> 33.0.4~ynh1

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 :slight_smile:

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

this was probably a temporarily unreachable server or a dns problem or similar.

I had the same problem, and now , after a retry, it worked for me.

1 Like

cf Error 503 certificate has expired [IP : 2a04:4e42:8e::820 443], the problem is fixed now upstream

2 Likes

Yup my bad it’s ok now

Thx !

I am still having trouble installing the update. I’ve been trying for three days now, and every time it aborts and reports a script error.

paste.yunohost.org/raw/esuwiyoziq

Can no one here help with the update problem?

I think you’ll need to open your own ticket as it don’t seems to be the same problem as me.

Plus, logs are in german so I think it would really help on another ticket with the german tag.

There’s a warning,

 WARNING -   Config is set to be read-only via option "config_is_read_only".

Have you tried this ?

nano /var/www/nextcloud/config/config.php

'config_is_read_only' => false, => true

systemctl restart php8.4-fpm.service
1 Like

Thank you, that was indeed the problem.

1 Like

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