Permissions error when restoring backup
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- We are trying to restore a PRO environment backup into DEV environment. And we see in the log several errors related to Document Library when decompressing:
May 05 16:13:15.812 build-3964 backup[backup-844b699f58-226cc] INIT CONTAINER SETUP-BACKUP-VOLUMES: Changing owner and removing old restore files!
May 05 16:13:26.153 build-3870 backup[backup-678fc74cf-zhdmv] tar: Checkpoint #13900000: R: 142335989760 (133GiB, 15MiB/s)
May 05 16:13:43.911 build-3870 backup[backup-678fc74cf-zhdmv] tar: ./document_library/10155/0/document_preview/107805936/163/114/218/114979491/114979492/39.png: Cannot utime: Permission denied
May 05 16:13:43.911 build-3870 backup[backup-678fc74cf-zhdmv] tar: ./document_library/10155/0/document_preview/107805936/163/114/218/114979491/114979492/92.png: Cannot mkdir: Permission denied
May 05 16:13:43.911 build-3870 backup[backup-678fc74cf-zhdmv] tar: ./document_library/10155/0/document_preview/107805936/163/114/218/114979491/114979492/92.png/92_1.0.png: Cannot open: Permission denied
May 05 16:13:43.911 build-3870 backup[backup-678fc74cf-zhdmv] tar: ./document_library/10155/0/document_preview/107805936/163/114/218/114979491/114979492/177.png: Cannot mkdir: Permission denied
May 05 16:13:43.912 build-3870 backup[backup-678fc74cf-zhdmv] tar: ./document_library/10155/0/document_preview/107805936/163/114/218/114979491/114979492/177.png/177_1.0.png: Cannot open: Permission denied
Environment
- Liferay DXP PaaS.
- Backup Service version 5.22.1
Resolution
- This situation could happen when a services deployment is running and, at the same time, a backup restore is also executing.
- Backup Service version >= 5.22.1 includes https://liferay.atlassian.net/browse/LCD-32784 and https://liferay.atlassian.net/browse/LCD-33293 . Both fixes change permissions to avoid root user in Document Library when the Backup Service is deployed.
- This bulk permissions change conflicts with the current backup restore operation.
- Thus, to avoid this conflict do not make converge both processes: services deployment and backup restore.
did-this-article-resolve-your-issue