Legacy Knowledge Base
Published Jun. 30, 2025

Backup doesn't have permissions to open the Document Library

Written By

Madeleine Clay

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Backups fail with these log messages:
rsync: [generator] opendir "/mnt/prepare-restore/document_library" failed: Permission denied (13)
cannot delete non-empty directory: document_library
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333)

Environment

  • Paas
  • Backup Service Version 5.16.0+

Resolution

  • This issue is caused by a security update that changed file ownership in the Backup Service Version 5.16.0 and above (see 03/28/2024 - Service Release Updates).
  • The ownership can be updated in the folder from the Shell using a command like:
    chown -R 1000:1000 /opt/liferay/data/
  • This procedure might take a while depending on the number of files in the document library.

Additional Information

  • With the security update, the Backup service performs actions as a non-privileged user for improved security.
  • Upon deployment, the Backup service automatically updates the permissions for the folder /opt/liferay/data, but the update is not recursive.
  • This can result in files structured like /opt/liferay/data/[folder]/document_library/[file] having incorrect permissions, making the Backup service unable to open them.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base