Getting the following error loading page.
Asked by David_Ray_Isley:

HTTP Status 500 - com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract net.sf.hibernate.Session net.sf.hibernate.SessionFactory.openSession() throws net.sf.hibernate.HibernateException\] is not allowed. {#toc-hId-1824943646}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Complete logs below:

HTTP Status 500 - com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract net.sf.hibernate.Session net.sf.hibernate.SessionFactory.openSession() throws net.sf.hibernate.HibernateException\] is not allowed.  
type Exception report

message com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract net.sf.hibernate.Session net.sf.hibernate.SessionFactory.openSession() throws net.sf.hibernate.HibernateException\] is not allowed.

description The server encountered an internal error that prevented it from fulfilling this request.

exception

java.util.concurrent.CompletionException: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract net.sf.hibernate.Session net.sf.hibernate.SessionFactory.openSession() throws net.sf.hibernate.HibernateException\] is not allowed.  
java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)  
java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)  
java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)  
java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)  
java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)  
java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)  
com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)  
com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)  
com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)  
com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)  
com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)  
com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)  
com.atlassian.confluence.setup.settings.DefaultSettingsManager.getGlobalSettings(DefaultSettingsManager.java:38)  
com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:43)  
com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:33)  
com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:26)  
com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)  
com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
com.atlassian.confluence.impl.servlet.HoldingUntilStartedFilter.doFilter(HoldingUntilStartedFilter.java:88)  
com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)  
com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:64)  
com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)  
com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
root cause

com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted \[public abstract net.sf.hibernate.Session net.sf.hibernate.SessionFactory.openSession() throws net.sf.hibernate.HibernateException\] is not allowed.  
com.atlassian.confluence.tenant.TenantGate$1.lambda$create$0(TenantGate.java:40)  
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
com.sun.proxy.$Proxy34.openSession(Unknown Source)  
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
java.lang.reflect.Method.invoke(Method.java:498)  
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)  
com.sun.proxy.$Proxy34.openSession(Unknown Source)  
org.springframework.orm.hibernate.SessionFactoryUtils.getSession(SessionFactoryUtils.java:282)  
org.springframework.orm.hibernate.SessionFactoryUtils.getSession(SessionFactoryUtils.java:222)  
org.springframework.orm.hibernate.HibernateTemplate.getSession(HibernateTemplate.java:422)  
org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:360)  
org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:337)  
com.atlassian.confluence.setup.bandana.persistence.dao.hibernate.HibernateConfluenceBandanaRecordDao.getRecord(HibernateConfluenceBandanaRecordDao.java:38)  
com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.retrieve(ConfluenceDaoBandanaPersister.java:29)  
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
java.lang.reflect.Method.invoke(Method.java:498)  
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)  
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)  
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)  
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)  
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)  
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)  
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)  
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)  
com.sun.proxy.$Proxy35.retrieve(Unknown Source)  
com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.lambda$retrieve$0(ConfluenceCachingBandanaPersister.java:80)  
com.atlassian.confluence.impl.vcache.SynchronousExternalCache.lambda$get$11(SynchronousExternalCache.java:239)  
com.atlassian.confluence.impl.concurrency.CompletionStageUtils.lambda$foldResult$0(CompletionStageUtils.java:19)  
java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:822)  
java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)  
java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)  
java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)  
com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)  
com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)  
com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)  
com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)  
com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)  
com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)  
com.atlassian.confluence.setup.settings.DefaultSettingsManager.getGlobalSettings(DefaultSettingsManager.java:38)  
com.atlassian.confluence.setup.ConfluenceEncodingFilter.getGlobalSettings(ConfluenceEncodingFilter.java:43)  
com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncodingInternal(ConfluenceEncodingFilter.java:33)  
com.atlassian.confluence.setup.ConfluenceEncodingFilter.getEncoding(ConfluenceEncodingFilter.java:26)  
com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:38)  
com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
com.atlassian.confluence.impl.servlet.HoldingUntilStartedFilter.doFilter(HoldingUntilStartedFilter.java:88)  
com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)  
com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:64)  
com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)  
com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
note The full stack trace of the root cause is available in the Apache Tomcat/8.0.41 logs.

Apache Tomcat/8.0.41


Answers:
author: Daniel Eads
body: Hey David,

We see this error sometimes on new installs. It usually happens when networking on the host server isn't set up to resolve whatever address Confluence thinks it has (localhost, confluenceserver, conprod, etc). Details on confirming/resolving this [can be found in this KB article](https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html).

If that doesn't seem to help, we can diagnose a little more with any errors you see in your application log. What's posted in the UI (the stack trace you posted here) is definitely helpful to get started, but we might need more info from the logs if that article didn't get you squared away. [Here's info on finding the application logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html)!

Cheers,  
Daniel

comments: author: David_Ray_Isley
body: Sorry for the reply Daniel. I will check this KB and see if it resolves the issue.


author: David_Ray_Isley
body: Hey Daniel. This was not the issue. But found the problem. The server ran out of disk space.


author: David_Ray_Isley
body: Increase the disk space on the VM and site is working fine now.


author: Daniel Eads
body: Glad to hear you tracked it down!