Correcting Ownership of MarkLogic Server Data Directory and Files
26 August 2020 02:45 PM
|
|
SummaryThere are sometimes circumstances where the MarkLogic data directory owner can be changed. This can create problems where MarkLogic Server is unable to read and/or write its own files but is easily corrected. MarkLogic Server userThere are sometimes circumstances where the MarkLogic data directory owner can be changed; this can create problems where MarkLogic Server is unable to read and/or write its own files. The default location for the data directory on Linux is If you are using a nondefault (non-daemon) user to run MarkLogic, for example in Correct the data directory ownershipIf the file ownership is incorrect, the way forward is to change the ownership back to the correct user. For example, if using the default user 1. Stop MarkLogic Server. 2. Make sure that the user you are using is correct and available on this machine. 3. Change the ownership of all the MarkLogic files (by default /var/opt/MarkLogic and any/all forests for this node) to daemon. The change needs to be made recursively below the directory to include all files. Assuming all nodes in the cluster run as daemon, you can use another unaffected node as a check. You may need to use root/sudo permissions to change owner. For example:
4. Start MarkLogic Server. It should now come up as the correct user and able to manage its files. References | |
|