Evaluate Confluence - Error 500 in K8S
Asked by Hynek Bocan:

Hey, I am trying to run confluence evaluation in our cluster using the official image '', but I always crashes on step 'We're just configuring your license and setting up your trial database. This can take a little while.' with following error.

We would love to use confluence but if we won't be able to setup it I think we will stick to MediaWiki...

```
01-Dec-2018 10:57:19.343 SEVERE [http-nio-8090-exec-10] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]
?org.apache.jasper.JasperException: An exception occurred processing [/500page.jsp] at line [120]

117:
118:??????????? if (sysInfoService != null)
119:??????????? {
120:??????????????????? confluenceInfo = sysInfoService.getConfluenceInfo();
121:??????????????????? memoryInfo = sysInfoService.getMemoryInfo();
122:??????????????????? dbInfo = sysInfoService.getSafeDatabaseInfo();
123:???????????????? sysinfo = GeneralUtil.convertBeanToMap(sysInfoService.getSystemProperties());


Stacktrace:
??????? at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:607)
??????? at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:496)
??????? at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)
??????? at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)
??????? at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
??????? at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
??????? at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.java:50)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
??????? at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
??????? at com.atlassian.confluence.util.profiling.ProfilingSiteMeshFilter.doFilter(ProfilingSiteMeshFilter.java:50)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
??????? at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.java:50)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:88)
??????? at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.applyFilter(ConfluenceSecurityFilter.java:39)
??????? at com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:29)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:148)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
??????? at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.java:50)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:64)
??????? at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
??????? at com.atlassian.johnson.plugin.servlet.filter.JohnsonServletFilterModuleContainerFilter.doFilter(JohnsonServletFilterModuleContainerFilter.java:50)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:65)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.confluence.web.filter.ZipkinTracingFilter.doFilter(ZipkinTracingFilter.java:54)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)
??????? at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
??????? at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
??????? at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
??????? at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
??????? at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
??????? at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)
??????? at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
??????? at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:394)
??????? at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:253)
??????? at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:348)
??????? at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
??????? at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
??????? at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
??????? at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
??????? at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
??????? at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
??????? at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
??????? at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
??????? at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
??????? at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
??????? at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
??????? at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
??????? at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.CompletionException: 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 java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
??????? at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
??????? at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:824)
??????? at java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:834)
??????? at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2155)
??????? at java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:110)
??????? at com.atlassian.confluence.impl.concurrency.CompletionStageUtils.foldResult(CompletionStageUtils.java:19)
??????? at com.atlassian.confluence.impl.vcache.SynchronousExternalCache.get(SynchronousExternalCache.java:236)
??????? at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:78)
??????? at com.atlassian.confluence.setup.bandana.ConfluenceCachingBandanaPersister.retrieve(ConfluenceCachingBandanaPersister.java:71)
??????? at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:32)
??????? at com.atlassian.bandana.DefaultBandanaManager.getValue(DefaultBandanaManager.java:24)
??????? at com.atlassian.confluence.setup.settings.DefaultSettingsManager.getGlobalSettings(DefaultSettingsManager.java:40)
??????? at com.atlassian.confluence.status.service.DefaultSystemInformationService.getConfluenceInfo(DefaultSystemInformationService.java:113)
??????? at org.apache.jsp._500page_jsp._jspService(_500page_jsp.java:309)
??????? at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
??????? at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
??????? at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:458)
??????? ... 72 more
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.$Proxy151.getCurrentSession(Unknown Source)
??????? at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
??????? 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.$Proxy151.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:42)
??????? at com.atlassian.confluence.setup.bandana.ConfluenceDaoBandanaPersister.retrieve(ConfluenceDaoBandanaPersister.java:29)
??????? at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source)
??????? 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.$Proxy152.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)
??????? ... 87 more


```


Answers:
author: Nic Brough -Adaptavist-
body: See <https://confluence.atlassian.com/confkb/confluence-generates-confluence-is-vacant-error-on-install-779164449.html> for the usual causes of this

comments: author: feng hong
body: this is not the solution of k8s....


author: Nic Brough -Adaptavist-
body: Actually, it is.

I suspect you have a different problem.


Tags: confluence-server

server