Try 2 - apt update and apt upgrade in LXD container, listing only what changed
PHP version (e.g, 8.3):
8.3.21 -- 8.3.21
mysql
10.11.11-MariaDB -- 10.11.11-MariaDB
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
NCP on RPi 4 -- NCP on LXD
NextcloudPi version
v1.55.4 -- v1.55.3
LXD NextcloudPi image
NextcloudPi_LXD_11-08-24.img
Summary of the issue you are facing:
I have a working NCP on an SD card running on a Raspberry Pi 4. I would like to migrate this to LXD. So I made a nc-backup. I am able to restore from this backup on the RPi4. To migrate to LXD, I then attempted to follow more-or-less the steps outlined here:
Unfortunately, the restore fails. Here is the output in the panel for Try 1:
restore files…
Restoring old ‘/var/www/nextcloud/data’ to ‘/var/www/nextcloud/data’…
restore database…
ERROR at line 1: Unknown command ‘-’.
Error restoring nextcloud database
Cleanup…
Seeing that the version of MariaDB on LXD was 10.11.6, maybe it is related to this issue:
and
and
The first line is indeed:
/*M!999999- enable the sandbox mode */
But my attempts at a workaround by modifying the first line of the database with the sed command, re-tarring it, getting the permissions correct and attempting a restore failed.
Try 2 not only failed, it also froze the panel window in the browser.