Trying to relocate Confluence Home Directory from root partition to NFS Mount.
The confluence application is stopped, the data is synced, and permissions are correct on the NFS mount, and confluence-init.properties
is changed.
When confluence is started again, the following error:
2016-08-03 16:27:32,112 INFO [localhost-startStop-1] [springframework.web.context.ContextLoader] initWebApplicationContext Root WebApplicationContext: initialization completed in 33982 ms
2016-08-03 16:27:32,129 ERROR [localhost-startStop-1] [atlassian.confluence.setup.BootstrapApplicationStartupListener] checkConfigurationOnStartup Couldn't lock file 'lock' in directory /confluence/confluence
Make sure the directory is not being used by another Confluence instance.
There is no other instance of confluence running, the lock file is removed.
But the error is persistent
>Trying to relocate Confluence Home Directory from root partition to NFS Mount.
Do not do this. You really do not want the home directory on an NFS mount - even if you can get around the current problem, you're going to hit others.
By all means, put the attachments on NFS, but not the rest of it.
Hi Nic,
There are two ways in which confluence could modify the attachment directory, if I'm correct
Unfortunately that checkbox symbol does not work.
2. Change confluence.cfg.xml <property name="attachments.dir">${confluenceHome}/attachments</property>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the change of confluence.cfg.xml is the right way to do it, but there's a third option which I've used a lot - mount the NFS share over /<confluence home>/attachments (tricky on windows because of the primitive and inflexible way the file systems work, but works like a charm on a Unix type box)
Also, I should have been a bit more clear - it's NFS or other shared storage that is the problem. There's no issues with moving <confluence home> on to other local disks, it doesn't need to be the root or boot disk.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Nic,
Going to have to move the home directory to addition disk on the vm instance of confluence. Atlassion has also confirmed this.
Thanks for the response to my issues with confluence.
Craig
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
Thanks for the reply.
Touched a file as user 'confluence' in the NFS mount.
No problem creating a file with 554 permissions.
Went back to checked original 'home directory' and the result was the same permissions.
Craig
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
I see you've mentioned that the permissions on NFS are correct, but can you su to the account running Confluence and try to write a file to that directory anyway?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.