ZitatTL;DR:
However, when rpi-clone has performed its sync and I was asked:
Hit Enter when ready to unmount the /dev/mmcblk0 partitions ...
Before hitting enter, I opened another terminal session and ran the following:
sudo rsync /var/ /mnt/clone/var -r
Hey datahoarder , I created an account just to thank you, you solved my problem !!
I am super grateful.
Let me describe --verbose my issue so maybe it helps other people find your solution on Google.
I was trying to migrate my Raspberry Pi OMV from SD Card to SSD, using RPI-Clone.
Everything was fine, except I was getting no web UI for OpenMediaVault.
The reason seemed to be something related to nginx missing some data
/var/log/nginx/access.log" failed (2: No such file etc... Got a few like this one.
After some omv-firstaid and omv-salt magic, I was able to fix some of the errors I was getting, and the webUI came back.
Except I was getting this error when applying changes :
500 - Internal Server Error Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color postfix 2>&1' with exit code '1':
It turns out copying /var/ before unmounting /mnt/clone/ fixed it.
Thank you so much for thinking about this