Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Health check failed,Index error Lucene

error log:

Exception during health check invocation com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLuceneConnection' defined in class path resource [indexingSubsystemContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bonnie.LuceneConnection]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException: /var/atlassian/application-data/confluence/index/segments_6c (Permission denied)


I don't know what to do

2 answers

1 accepted

2 votes
Answer accepted

Note the "Permission denied" in the error message.  This almost certainly means the index files or directories have the wrong permissions on them, and the user running Confluence does not have the read/write/execute/delete access it requires

This usually happens when someone (re)starts Confluence as the wrong user (usually root), and that user takes ownership of any files it writes to, which then locks the correct user out of them.  When the correct user is used to start Confluence next time, it can't access the files it needs.

Check the ownership and permissions of the files in the home and install directories first.  If you do have this case, you then need to stop Confluence, change ownership or permissions of the files, restart Confluence and then visit Admin -> Indexing and run a full re-index

Note that although I've said to look at ownership and permissions, in 99.9999% of cases, it is just ownership - root or your user will have taken ownership of *some* of the files, and the command chown -R confluence:confluence run against confluence-home and confluence-install will fix it without needing to touch the rwx flags (assumes you have a user called "confluence" for running Confluence!)

I solved my problem. Thanks

0 votes
Pramodh Community Leader Feb 19, 2021

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,368 views 7 28
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you