Confluence Home Directory relocation to NFS mount, no links

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

3 answers

1 accepted

1 vote

>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

  1. Confluence administration -> Attachment Storage -> Edit Attachment Storage and check 'In Confluence's configuration database (Deprecated).

Unfortunately that checkbox symbol does not work.

     2.  Change confluence.cfg.xml  <property name="attachments.dir">${confluenceHome}/attachments</property> 

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.

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

0 vote
Daniel Eads Community Champion Aug 05, 2016

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? 

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

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,925 views 27 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you