-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A /lock directory for storing instance "state" files cause issue during online backup #129
Comments
This looks more like AEM bug than AEMC one as the AEM code when packing archive has a problem with dir named 'lock'. If sb could confirm that AEM has a problem only with that particular dir name we could change it in AEMC but this is unfortunately breaking change which i am usually trying to avoid. |
I have the same issue. So I decided to take a closer look. The AEM backup implementation does not allow The class This actually blocks implementation of #128 as well. It will be faster to change AEMC than AEM, which would only be from a certain Service Pack as well. |
Sure thing. I will rename lock dir if you are interested. |
Yes I am. As I just started using this tool, which I find amazing by the way, I tried to execute a backup using the current implementation. That worked, but when I performed a restore, I could not start the instance again. Bundles would not start and the command eventually timed out. It was a first attempt, so maybe I did something wrong, I'll have another go in the coming days. Doing an online backup using the UI was my second attempt to solve this. |
Thanks for the feedback ;) Here is a potential fix for you. Tomorrow I will test it. Tell me if it looks enough good to cover your case properly. Greetings, Krystian |
closing as fixed in 1.7.7; @wimsymons could you confirm that the fix helps you?:) |
Hi Krystian, Just tested 1.7.7. Had to figure out how to update aemc-cli and how to update the lock folders. After that, it all worked perfectly. Thanks for such a swift response and release 👍 Kind regards Wim |
Cool. No problem. Greetings 😎🙂 |
/content/cq/author contains/aem-compose
and/var/lock
insideI use online backup to backup /content/cq/author instance directory. It is initiated by:
curl -sL -w "%{http_code}" -X POST -u "admin:admin" "http://127.0.0.1:4502/libs/granite/backup/content/createBackup/content/items/backupform.html" -d "_charset_=utf-8&target=/content/backups/cq_backup&delay=0"
Backup fails with error:
Workaround:
Backup succeded when I changed
/var/lock
to/var/state
The same happens when I try to create any directory named
/lock
in/content/cq/author
, with random files inside. Changing directory owner or privileges no matters.The text was updated successfully, but these errors were encountered: