Why is it acting like a permissions issue? Worked before they removed the -server.

Gaven Ray April 15, 2024

I am trying to upgrade a test instance from 7.19.20 to 8.5.8 and the Confluence container acts like it can't talk to the Database / acts like it can't read the confluence.cfg.xml. 

 

I am seeing the following in the logs:

2024-04-09 09:33:07,041 ERROR [Catalina-utility-1] [ContainerBase.[Standalone].[localhost].[/]] log Exception starting filter [legacyRemoteApiEventPublishingFilter]
dev-conf_conf.1@atl-dev-01 | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfigManager' defined in class path resource [services/cacheServiceContext.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.lang.Object]: Factory method 'selectBean' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheConfigManager' defined in URL [jar:file:/opt/atlassian/confluence/confluence/WEB-INF/lib/com.atlassian.confluence.cache_confluence-cache-ehcache-8.5.7.jar!/cacheProviderContext.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: class com.atlassian.cache.impl.metrics.InstrumentedCachedReference cannot be cast to class com.atlassian.cache.Cache (com.atlassian.cache.impl.metrics.InstrumentedCachedReference and com.atlassian.cache.Cache are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @59004b0c)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:633)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
dev-conf_conf.1@atl-dev-01 | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:929)
dev-conf_conf.1@atl-dev-01 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
dev-conf_conf.1@atl-dev-01 | at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:399)
dev-conf_conf.1@atl-dev-01 | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:278)
dev-conf_conf.1@atl-dev-01 | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.spring.container.ContainerContextLoaderListener.contextInitialized(ContainerContextLoaderListener.java:32)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.confluence.setup.ConfluenceBootstrappedContextLoaderListener.contextInitialized(ConfluenceBootstrappedContextLoaderListener.java:40)
dev-conf_conf.1@atl-dev-01 | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4460)
dev-conf_conf.1@atl-dev-01 | at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
dev-conf_conf.1@atl-dev-01 | at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
dev-conf_conf.1@atl-dev-01 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
dev-conf_conf.1@atl-dev-01 | at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
dev-conf_conf.1@atl-dev-01 | at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
dev-conf_conf.1@atl-dev-01 | at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
dev-conf_conf.1@atl-dev-01 | at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
dev-conf_conf.1@atl-dev-01 | at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
dev-conf_conf.1@atl-dev-01 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
dev-conf_conf.1@atl-dev-01 | at java.base/java.lang.Thread.run(Thread.java:840)
dev-conf_conf.1@atl-dev-01 | Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.lang.Object]: Factory method 'selectBean' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheConfigManager' defined in URL [jar:file:/opt/atlassian/confluence/confluence/WEB-INF/lib/com.atlassian.confluence.cache_confluence-cache-ehcache-8.5.7.jar!/cacheProviderContext.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: class com.atlassian.cache.impl.metrics.InstrumentedCachedReference cannot be cast to class com.atlassian.cache.Cache (com.atlassian.cache.impl.metrics.InstrumentedCachedReference and com.atlassian.cache.Cache are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @59004b0c)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
dev-conf_conf.1@atl-dev-01 | ... 28 more
dev-conf_conf.1@atl-dev-01 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheConfigManager' defined in URL [jar:file:/opt/atlassian/confluence/confluence/WEB-INF/lib/com.atlassian.confluence.cache_confluence-cache-ehcache-8.5.7.jar!/cacheProviderContext.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: class com.atlassian.cache.impl.metrics.InstrumentedCachedReference cannot be cast to class com.atlassian.cache.Cache (com.atlassian.cache.impl.metrics.InstrumentedCachedReference and com.atlassian.cache.Cache are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @59004b0c)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.confluence.impl.cluster.ClusterAwareBeanSelector.selectBean(ClusterAwareBeanSelector.java:33)
dev-conf_conf.1@atl-dev-01 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
dev-conf_conf.1@atl-dev-01 | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
dev-conf_conf.1@atl-dev-01 | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
dev-conf_conf.1@atl-dev-01 | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
dev-conf_conf.1@atl-dev-01 | ... 29 more
dev-conf_conf.1@atl-dev-01 | Caused by: java.lang.ClassCastException: class com.atlassian.cache.impl.metrics.InstrumentedCachedReference cannot be cast to class com.atlassian.cache.Cache (com.atlassian.cache.impl.metrics.InstrumentedCachedReference and com.atlassian.cache.Cache are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @59004b0c)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.cache.impl.AbstractCacheManager.getCache(AbstractCacheManager.java:181)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.cache.impl.AbstractCacheManager.getCache(AbstractCacheManager.java:139)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.cache.impl.AbstractCacheManager.getCache(AbstractCacheManager.java:118)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.confluence.cache.ehcache.EhCacheManager.getCache(EhCacheManager.java:170)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.confluence.cache.ehcache.EhCacheConfigManager.reconfigureCacheFromConfig(EhCacheConfigManager.java:69)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.confluence.cache.ehcache.EhCacheConfigManager.reconfigureCaches(EhCacheConfigManager.java:54)
dev-conf_conf.1@atl-dev-01 | at com.atlassian.confluence.cache.ehcache.EhCacheConfigManager.afterPropertiesSet(EhCacheConfigManager.java:41)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
dev-conf_conf.1@atl-dev-01 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
dev-conf_conf.1@atl-dev-01 | ... 41 more

 

It is connecting to the same database regardless of version. This same server before the removal was running 8.5.7. I rolled it back to match our production version 7.19.20 to test the upgrade to 8.5.X. 

Docker version 26.0.0, build 2ae903e

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.8
TAGS
AUG Leaders

Atlassian Community Events