HTTP Status 500 - unexpected setup type initial
Asked by Platform Operations:

We rebooted our Production Confluence Server. On restart, when we try to bring up the Web service, we are prompted for the License key. On entering the license key, we are getting the following error

```
HTTP Status 500 - unexpected setup type initial?type Exception reportmessage unexpected setup type initialdescription The server encountered an internal error that prevented it from fulfilling this request.exceptionjava.lang.RuntimeException: unexpected setup type initial	com.atlassian.confluence.setup.actions.SetupLicenseAction.execute(SetupLicenseAction.java:83)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:65)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.xwork.interceptors.XsrfTokenInterceptor.intercept(XsrfTokenInterceptor.java:100)	com.atlassian.confluence.xwork.ConfluenceXsrfTokenInterceptor.intercept(ConfluenceXsrfTokenInterceptor.java:26)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.security.interceptors.CaptchaInterceptor.intercept(CaptchaInterceptor.java:50)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.validation.MessageHolderInterceptor.intercept(MessageHolderInterceptor.java:43)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.util.LoggingContextInterceptor.intercept(LoggingContextInterceptor.java:52)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.core.CancellingInterceptor.intercept(CancellingInterceptor.java:24)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.xwork.HttpMethodValidationInterceptor.intercept(HttpMethodValidationInterceptor.java:72)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.security.websudo.WebSudoInterceptor.intercept(WebSudoInterceptor.java:37)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.themes.ThemeContextInterceptor.intercept(ThemeContextInterceptor.java:46)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:66)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.setup.webwork.BootstrapAwareInterceptor.intercept(BootstrapAwareInterceptor.java:27)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.user.actions.UserAwareInterceptor.intercept(UserAwareInterceptor.java:59)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.pages.actions.CommentAwareInterceptor.intercept(CommentAwareInterceptor.java:51)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.pages.actions.PageAwareInterceptor.intercept(PageAwareInterceptor.java:153)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.spaces.actions.SpaceAwareInterceptor.intercept(SpaceAwareInterceptor.java:78)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.xwork.FlashScopeInterceptor.intercept(FlashScopeInterceptor.java:25)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.core.actions.LastModifiedInterceptor.intercept(LastModifiedInterceptor.java:34)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:55)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:58)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.xwork.SetupIncompleteInterceptor.intercept(SetupIncompleteInterceptor.java:40)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.security.interceptors.NosniffSecurityHeaderInterceptor.intercept(NosniffSecurityHeaderInterceptor.java:21)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.security.interceptors.XXSSSecurityHeaderInterceptor.intercept(XXSSSecurityHeaderInterceptor.java:21)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.atlassian.confluence.setup.actions.SetupCheckInterceptor.intercept(SetupCheckInterceptor.java:32)	com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)	com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115)	com.atlassian.confluence.servlet.ConfluenceServletDispatcher.serviceAction(ConfluenceServletDispatcher.java:58)	com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199)	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)	com.atlassian.confluence.security.websudo.MessagesDecoratorFilter.doFilter(MessagesDecoratorFilter.java:59)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)	com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)	com.atlassian.confluence.util.profiling.ProfilingPageFilter.doFilter(ProfilingPageFilter.java:45)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)	com.atlassian.confluence.jmx.JmxFilter.doFilter(JmxFilter.java:115)	com.atlassian.confluence.cache.TransactionalCacheFactoryCleanupFilter.doFilter(TransactionalCacheFactoryCleanupFilter.java:68)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:21)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:41)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.UserNameHeaderFilter.doFilter(UserNameHeaderFilter.java:26)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.UserThreadLocalFilter.doFilter(UserThreadLocalFilter.java:42)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.ConfluenceTimeoutFilter.doFilter(ConfluenceTimeoutFilter.java:63)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.duosecurity.seraph.filter.DuoAuthFilter.doFilter(DuoAuthFilter.java:124)	com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:88)	com.atlassian.confluence.web.filter.ConfluenceSecurityFilter.doFilter(ConfluenceSecurityFilter.java:27)	com.atlassian.confluence.web.filter.ThreadLocalCacheFilter.doFilter(ThreadLocalCacheFilter.java:30)	com.atlassian.confluence.util.AbstractBootstrapHotSwappingFilter$SwapOnBootstrapFilter.doFilter(AbstractBootstrapHotSwappingFilter.java:48)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.AbstractBootstrapHotSwappingFilter.doFilter(AbstractBootstrapHotSwappingFilter.java:35)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.seraph.filter.BaseLoginFilter.doFilter(BaseLoginFilter.java:148)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)	com.atlassian.confluence.util.ClusterHeaderFilter.doFilter(ClusterHeaderFilter.java:44)	com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72)	com.atlassian.spring.filter.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:26)	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)	com.atlassian.confluence.util.ConfluenceErrorFilter.doFilter(ConfluenceErrorFilter.java:29)	com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:99)	com.atlassian.confluence.core.datetime.RequestTimeThreadLocalFilter.doFilter(RequestTimeThreadLocalFilter.java:43)	com.atlassian.core.filters.cache.AbstractCachingFilter.doFilter(AbstractCachingFilter.java:33)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:71)	com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:63)	com.atlassian.confluence.tenant.TenantGateFilter$1.call(TenantGateFilter.java:47)	com.atlassian.confluence.tenant.TenantGateFilter$1.call(TenantGateFilter.java:43)	com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:167)	com.atlassian.confluence.tenant.TenantGateFilter.doFilter(TenantGateFilter.java:42)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter.doFilter(RequestParamValidationFilter.java:58)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.web.filter.TranslationModeFilter.doFilter(TranslationModeFilter.java:44)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.plugin.servlet.filter.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:73)	com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:53)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:32)	com.atlassian.confluence.web.filter.ResponseOutputStreamFilter.doFilter(ResponseOutputStreamFilter.java:25)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)	com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)	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:71)	com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:50)	com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.52 logs.
```


Answers:
author: Luiz Maia
body: Hello there,

The fact that the instance is prompting for the license key makes me wonder you might have lost the home-directory setting, since the file that contains the license key information and setup status is the **confluence.cfg.xml**, which is located inside this directory.

I suggest you confirm that nothing has been changed regarding the path of the home-directory. In case you have moved it to a different folder, for example, you'll need to update the path inside the **confluence.init.properties** file which is located inside the *install-directory/confluence/WEB-INF/classes* folder.

Thanks!

Regards,  
LM


Tags: confluence-administration