Nextcloud update failed because a safety backup could not be created

I had the same problem and could restore the backup. What should I do now, wait or try the update again?

Thank you.

here is the solution: Nextcloud update failed because a safety backup could not be created - #7 by CypLef

My server just received php 8.5 update, does it fix this issue ?

check this post: Yarn and Sury APT keys issues

Thanks a lot for this solution, it worked for me also. And sorry for the late answer !

Thank you, it worked.

This does not work for me. The error remains the same. apt update says everything is already up to date. Nextcloud app update still fails with the same issue.

Logs: https://paste.yunohost.org/raw/uwubapefaw

@Naveen
Skip the backup or create a dummy /etc/php/8.3/fpm/pool.d/nextcloud.conf and run the upgrade.

[nextcloud]

user = nextcloud
group = nextcloud

chdir = /var/www/nextcloud

listen = /var/run/php/php8.3-fpm-nextcloud.sock
listen.owner = www-data
listen.group = www-data

pm = ondemand
pm.max_children = 16
pm.max_requests = 500
request_terminate_timeout = 1d

pm.process_idle_timeout = 10s
php_admin_value[upload_max_filesize] = 10G
php_admin_value[post_max_size] = 10G
php_admin_value[memory_limit] = 512M

; Additional php.ini defines, specific to this pool of workers.
env[PATH] = $PATH
env[LANG] = $LANG
env[LC_ALL] = $LANG
php_value[default_charset] = UTF-8
; OPcache is already activated by default
; php_value[opcache.enable]=1
; The following parameters are nevertheless recommended for Nextcloud
; see here: https://docs.nextcloud.com/server/20/admin_manual/installation/server_tuning.html#enable-php-opcache
php_value[opcache.enable_cli]=1
php_value[opcache.interned_strings_buffer]=32
php_value[opcache.max_accelerated_files]=10000
php_value[opcache.memory_consumption]=128
php_value[opcache.save_comments]=1
php_value[opcache.revalidate_freq]=60
; https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-php
php_value[output_buffering]=0
; https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html#id1
php_value[apc.enabled]=1
php_value[apc.enable_cli]=1

Is this the dummy file?

Yes. First I was thinking about creating a dummy file but I ended up giving a real one…

I tried without the backup and it seemed to progress until it threw an error about Memories app not being compatible and to disable it in nextcloud before upgrading. But the issue is I can’t even access nextcloud. I don’t really care if I can upgrade or not as longas I can access nextcloud. Even with the pre-upgrade backup it just takes me to “Welcome to nginx” page

Try this:

yunohost app shell nextcloud
php occ app:disable memories

Of course, nextcloud needs to be still installed in /var/www

Thank you, that helped the upgrade, but it still shows the “Welcome to nginx” page only. Something about the webpage has stopped working during this whole upgrade process and I don’t know how to fix it

Can you share the upgrade log ?
Some users experienced this page issue even after their instance became functional again. The problem then seemed to disappear…
Try adding /apps/dashboard/ to the url

/apps/dashboard works!

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

Here are the logs

Seems to be good. Try restarting nginx or running yunohost tools regen-conf nginx in a few days if the issue persists with nginx.

Restarting nginx worked for now, the domain leads directly to the dashboard without having to specify, thank you.