Restore of NextCloud failed

Hardware: Raspberry Pi4 at home
YunoHost version: 4.1.7.2
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Hello, I am trying to restore with the default backup of yunohost. This what I did:

  • full backup in [archive]
  • fresh install of yunohost on sd card
  • ssh > yunohost backup restore [archive]
    Nextcloud did not restored with this error:
Info: Restoring nextcloud...
Warning: /!\ Packagers! You are probably using a lua regex. You should use a PCRE regex instead. Info: Migrating legacy permission settings... Info: [....................] > Loading settings... Info: [+...................] > Validating restoration parameters... Info: [#...................] > Restoring the app main directory... Info: [#++.................] > Restoring the MySQL database...
Warning: ERROR 1062 (23000) at line 1483: Duplicate entry '6-e631681ec38a46fc66deb9a82afc0f31' for key 'fs_storage_path_hash'
Error: Could not restore nextcloud
Info: The operation 'Restore 'nextcloud' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210310-212859-backup_restore_appnextcloud --share' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error: Info: DEBUG - + local db=nextcloud
Info: DEBUG - + local 'sql=CREATE DATABASE nextcloud;'Info: DEBUG - + [[ 3 -gt 1 ]] Info: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\''' Info: DEBUG - + [[ -n ********** ]]
Info: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\''' Info: DEBUG - + sql+=' WITH GRANT OPTION;'
Info: DEBUG - + ynh_mysql_execute_as_root '--sql=CREATE DATABASE nextcloud; GRANT ALL PRIVILEGES ON nextcloud.* TO '\''nextcloud'\''@'\''localhost'\'' IDENTIFIED BY '\''**********'\'' WITH GRANT OPTION;' Info: DEBUG - + database= Info: DEBUG - + '[' -n '' ']' Info: DEBUG - ++ cat /etc/yunohost/mysql
Info: DEBUG - + ynh_mysql_connect_as --user=root --password=********** Info: DEBUG - + database=
Info: DEBUG - + mysql --user=root --password=********** --batch '' Info: DEBUG - + ynh_app_setting_set --app=nextcloud --key=mysqlpwd --value=********** Info: DEBUG - + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]] Info: DEBUG - + ynh_app_setting set nextcloud mysqlpwd **********
Info: DEBUG - + ynh_mysql_connect_as --user=nextcloud --password=********** --database=nextcloud Info: DEBUG - + database=nextcloud
Info: DEBUG - + mysql --user=nextcloud --password=********** --batch nextcloud Info: DEBUG - + ynh_exit_properly
Info: [....................] > Loading installation settings... Info: [++++++++++..........] > Removing dependencies... Warning: E: Unable to locate package nextcloud-ynh-deps Info: [##########++........] > Removing the MySQL database... Info: [############+.......] > Removing app main directory... Info: [#############+......] > Removing NGINX web server configuration... Info: [##############+.....] > Removing PHP-FPM configuration...
from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable  : 

I have 40 pages of errno11, then

Info: '/etc/php/7.3/fpm/pool.d/nextcloud.conf' wasn't deleted because it doesn't exist. from moulinette.utils.stream: could not read file descriptor : [Errno 11] Resource temporarily unavailable Info: [###############.....] > Removing logrotate configuration... Info: [###############++++.] > Removing Fail2Ban configuration... Info: '/etc/fail2ban/jail.d/nextcloud.conf' wasn't deleted because it doesn't exist. Info: '/etc/fail2ban/filter.d/nextcloud.conf' wasn't deleted because it doesn't exist. Info: '/etc/cron.d/nextcloud' wasn't deleted because it doesn't exist. Info: [###################.] > Removing the dedicated system user... Warning: The user nextcloud was not found
Info: [####################] > Removal of nextcloud completed 

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

Thanks in advance

Ps: the link in the error message to the full log has a typo :
…using the command ‘yunohost log display 20210310-212859-backup_restore_appnextcloud --share’ to get help
With appnextcloud instead of app-nextcloud

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