Importing existing backup in new app instance fails
-
@imc67 right you would have to stop the app to avoid interfering with the mailboxes.
just out of curiosity, did you restart the failing app after import? I don't quite get why
storage/framework/cache/
would not be writeable, if the symlinks are there.You can also try to run
sudo chown -R www-data:www-data /app/data
since that would set the permissions for the files in the symlinked files. Although that would be done on an app restart anyways. -
@nebulon hope you have time somewhere coming days to debug this issue together?
Summary:
- Tried to follow you steps 5 times to migrate a Freescout instance (1.98GB + 189.8MB mysqldump, since the first version on Cloudron)
- Only the 1st time not only failed the "CSS/scripts" but also somehow the symlink.
- All the other 4 times only failed with a GUI without (looks like) CSS and some buttons (scripts?) are not working (login is possible with LDAP) see screenshot
- A migration of Freescout on another Cloudron went fine (only 4 weeks old instance with hardly any mails).
- Just as a debug scenario I just cloned the current app and that also didn't work, same result with GUI/CSS/script.
-
@moocloud_matt thanks for the access! I was able to figure out this mystery...
@nebulon We don't store symlinks in backups and it seems that there is a bunch of them in
/app/data/public-modules
. Not sure who creates them but a restore doesn't create those symlinks back. You couldn't reproduce it because you I am guessing you used tgz backup which keeps symlinks inside it but rsync backup will not store symlinks (there is no way to store symlinks in object storage without hacks). So, the package has to be fixed create those symlinks on startup as needed. -
@girish said in Importing existing backup in new app instance fails:
I have fixed the code in 6.2 to preserve symlinks in rsync backups/restore
I can confirm that with 6.2.2 the backup and restore of FreeScout does work!
-