After upgrading confluence from 5.9.3 to 6.15.9 the startup of confluence seems to be delayed or something like.
I am using offical docker image atlassian/confluence-server:6.15.9. I did the upgrade from a docker container running a custom jira installation based on centos:centos7 image. I followed the upgrade instructions according to documentation: https://confluence.atlassian.com/conf615/upgrading-confluence-manually-967338800.html
In the tomcat log one can see silence of around 7 minutes until the webapp is started:
confluence_1 | 07-Oct-2019 08:09:51.809 INFO [Catalina-utility-2] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 2147 ms
confluence_1 | 07-Oct-2019 08:17:11.732 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/atlassian/confluence/conf/Standalone/localhost/synchrony-proxy.xml]
confluence_1 | 07-Oct-2019 08:17:11.737 WARNING [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [/synchrony-proxy] in deployment descriptor [/opt/atlassian/confluence/conf/Standalone/localhost/synchrony-proxy.xml] has been ignored
confluence_1 | 07-Oct-2019 08:17:11.757 WARNING [Catalina-utility-2] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
confluence_1 | 07-Oct-2019 08:17:13.610 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: [com.atlassian.synchrony.proxy.SynchronyDispatcherServletInitializer@6c0babb3]
confluence_1 | 07-Oct-2019 08:17:13.731 INFO [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
confluence_1 | 07-Oct-2019 08:17:14.067 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcher'
confluence_1 | 07-Oct-2019 08:17:14.074 INFO [Catalina-utility-2] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization started
confluence_1 | 07-Oct-2019 08:17:14.096 INFO [Catalina-utility-2] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Mon Oct 07 08:17:14 GMT 2019]; root of context hierarchy
confluence_1 | 07-Oct-2019 08:17:14.323 INFO [Catalina-utility-2] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.loadBeanDefinitions Registering annotated classes: [class com.atlassian.synchrony.proxy.websocket.WebSocketConfig,class com.atlassian.synchrony.proxy.web.SynchronyWebMvcConfig]
confluence_1 | SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
confluence_1 | SLF4J: Defaulting to no-operation (NOP) logger implementation
confluence_1 | SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
confluence_1 | 07-Oct-2019 08:17:15.198 INFO [Catalina-utility-2] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.initialize Initializing ExecutorService 'defaultSockJsTaskScheduler'
confluence_1 | 07-Oct-2019 08:17:15.262 INFO [Catalina-utility-2] org.springframework.web.socket.server.support.WebSocketHandlerMapping.registerHandler Mapped URL path [/v1/bayeux-sync1] onto handler of type [class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler]
confluence_1 | 07-Oct-2019 08:17:15.579 INFO [Catalina-utility-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/reload],methods=[PUT]}" onto public org.springframework.http.ResponseEntity com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.reloadConfiguration(com.atlassian.synchrony.proxy.web.SynchronyProxyConfigPayload)
confluence_1 | 07-Oct-2019 08:17:15.582 INFO [Catalina-utility-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/healthcheck]}" onto public com.atlassian.synchrony.proxy.web.HealthCheckResult com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.getSynchronyProxyInfo()
confluence_1 | 07-Oct-2019 08:17:15.612 INFO [Catalina-utility-2] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler]
confluence_1 | 07-Oct-2019 08:17:16.260 INFO [Catalina-utility-2] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'dispatcher-servlet': startup date [Mon Oct 07 08:17:14 GMT 2019]; root of context hierarchy
confluence_1 | 07-Oct-2019 08:17:16.611 INFO [Catalina-utility-2] org.springframework.context.support.DefaultLifecycleProcessor.start Starting beans in phase 2147483647
confluence_1 | 07-Oct-2019 08:17:16.641 INFO [Catalina-utility-2] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 2565 ms
confluence_1 | 07-Oct-2019 08:17:16.644 INFO [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/opt/atlassian/confluence/conf/Standalone/localhost/synchrony-proxy.xml] has finished in [4,912] ms
confluence_1 | 07-Oct-2019 08:17:16.648 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
confluence_1 | 07-Oct-2019 08:17:16.799 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [450,212] milliseconds
I am unsure which logs to provide from file atlassian-confluence.log, because There are tons of warnings, hard to say what is relevant.
2019-10-07 08:10:24,571 WARN [Catalina-utility-1] [org.twdata.pkgscanner.ExportPackageListBuilder] logDuplicateWarning Package Scanner found duplicates for package 'javax.annotation' with di
fferent versions. Files: javax.annotation-api-1.3.2.jar and jsr305-3.0.1.jar
'/opt/atlassian/confluence/confluence/WEB-INF/lib/javax.annotation-api-1.3.2.jar'
'/opt/atlassian/confluence/confluence/WEB-INF/lib/jsr305-3.0.1.jar'
2019-10-07 08:10:27,669 WARN [FelixStartLevel] [extender.internal.support.ExtenderConfiguration] addDefaultDependencyFactories Gemini Blueprint extensions bundle not present, annotation proc
essing disabled.
2019-10-07 08:10:56,571 WARN [ThreadPoolAsyncTaskExecutor::Thread 8] [spring.scanner.util.ProductFilterUtil] detectProduct Couldn't detect product, will use ProductFilter.ALL
2019-10-07 08:11:39,489 WARN [Navlink Plugin Executor:thread-1] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.Bandana
Persister': Failed due to UNCLASSIFIED_FAILURE
... last warning (Failed to read entry from cache) happens every 10 sec
2019-10-07 08:15:59,357 WARN [Navlink Plugin Executor:thread-5] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.bandana.BandanaPersister': Failed due to UNCLASSIFIED_FAILURE
2019-10-07 08:16:00,464 WARN [Spring DM Context Creation Timer] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] timeout Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.gadgets.directory, config=osgibundle:/META-INF/spring/*.xml)]
2019-10-07 08:16:00,470 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.atlassian.gadgets.directory' never resolved service '&externalGadgetSpecStore' with filter '(&(objectClass=com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore)(objectClass=com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore))'
2019-10-07 08:16:00,470 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.atlassian.gadgets.directory' never resolved service '&subscribedGadgetFeedStore' with filter '(&(objectClass=com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore)(objectClass=com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore))'
2019-10-07 08:16:00,471 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.atlassian.gadgets.directory' never resolved service '&directoryPermissionService' with filter '(&(objectClass=com.atlassian.gadgets.directory.spi.DirectoryPermissionService)(objectClass=com.atlassian.gadgets.directory.spi.DirectoryPermissionService))'
2019-10-07 08:16:00,473 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.gadgets.directory'
org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.gadgets.directory' has timed out waiting for (|(&(objectClass=com.atlassian.gadgets.directory.spi.DirectoryPermissionService)(objectClass=com.atlassian.gadgets.directory.spi.DirectoryPermissionService))(&(objectClass=com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore)(objectClass=com.atlassian.gadgets.directory.spi.ExternalGadgetSpecStore))(&(objectClass=com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore)(objectClass=com.atlassian.gadgets.directory.spi.SubscribedGadgetFeedStore)))
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
2019-10-07 08:16:00,497 WARN [Gemini Blueprint context shutdown thread 1] [beans.factory.support.DisposableBeanAdapter] destroy Invocation of destroy method failed on bean with name 'dashboardItemModulesList': java.lang.NullPointerException
2019-10-07 08:16:00,498 WARN [Gemini Blueprint context shutdown thread 1] [beans.factory.support.DisposableBeanAdapter] destroy Invocation of destroy method failed on bean with name 'localGadgetSpecProviders': java.lang.NullPointerException
2019-10-07 08:16:00,500 WARN [Gemini Blueprint context shutdown thread 1] [beans.factory.support.DisposableBeanAdapter] destroy Invocation of destroy method failed on bean with name 'gadgetSpecProviders': java.lang.NullPointerException