Page inaccessible - Confluence is vacant error
Asked by bizzyjb:

The following error started happening after my server was unexpectedly restarted. Everything was working fine prior to this. Now the page is inaccessible, and I receive the following error below, in catalina.out

Caused by: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract org.hibernate.Session org.hibernate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException\] is not allowed.  
at com.atlassian.confluence.tenant.TenantGate$1.lambda$create$0(TenantGate.java:43)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
at com.sun.proxy.$Proxy54.getCurrentSession(Unknown Source)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)  
at com.sun.proxy.$Proxy54.getCurrentSession(Unknown Source)  
at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:344)  
at org.springframework.orm.hibernate5.HibernateTemplate.execute(HibernateTemplate.java:313)  
at com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.getRecord(HibernateConfluenceBandanaRecordDao.java:39)  
at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.retrieve(ConfluenceDaoBandanaPersister.java:29)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)  
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)  
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)  
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
at com.sun.proxy.$Proxy55.retrieve(Unknown Source)  
at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)  
at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)  
at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)  
at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)  
... 85 more


Answers:
author: AnnWorley
body: Hi Jesse,

Please shut down Confluence and start it again. While it is starting, please monitor the log: \<confluence_home\>logs/atlassian-confluence.log. You should see Starting Confluence, then a system report, then a list of add-ons loading. Eventually an entry should come up saying "Confluence is ready to serve.". Please watch the log for any events that seem out of the ordinary between starting Confluence and "Confluence is ready to serve."

I look forward to hearing what you find.

Thanks,

Ann

comments: author: bizzyjb
body: This was a good tip Ann, I primarily was looking at /opt/atlassian/confluence/logs files.

Upon opening up the one you suggested, I see some database related errors. I'm wondering if maybe I"m using an out-dated version.

When attempting to start mysqld it fails and in its logs I see some errors about the log size having to be less than 4gb. I don't think any mysql logs are that large, so I'm troubleshooting currently.

Either way I'll come back and let you all know how it goes!


author: AnnWorley
body: I am happy I was able to point you toward a possible solution - I look forward to your findings.


author: Shannon S
body: Hi Jesse,

We have an article with some troubleshooting steps for this:

* [Confluence generates Confluence is vacant error on install](https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html)

You can see the cause is usually that the host name is not resolving to an IP address.

Can you try the steps there and let us know if you're able to get Confluence started?

Kind Regards,  
Shannon

comments: author: bizzyjb
body: I looked at this briefly because it has the same error, but it also says "on install", which threw me off. This is not a new installation.

I will look at it a bit more carefully and return with my results!

Thank you.


author: bizzyjb
body: Yeah...no luck - I confirmed that the hostname was resolving, still getting the same error when I try to bring up the page.