Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence crashing on startup on MacOS Catalina

Octavian Genes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 11, 2020

1. I've downloaded the `atlassian-confluence-7.3.3.tar.gz` from the Atlassian website, and extracted it in Downloads folder

2. I've created a custom directory for my Confluence home in /Users/<username>/Confluence/confluence-home, and modified Downloads/atlassian-confluence-7.3.3/confluence/WEB-INF/classes/confluence-init.properties and added a line confluence.home=/Users/<username>/Confluence/confluence-home

3. I start Confluence by using Downloads/atlassian-confluence-7.3.3/bin/start-confluence.sh -fg and I access the web interface at https://localhost:8090

4. Once I get a Trial license and I click the Next button, the web view freezes, used memory goes up and the service is unresponsive

5. In the console I can see this error

11-Mar-2020 09:10:16.625 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
11-Mar-2020 09:10:16.635 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [9,916] milliseconds
11-Mar-2020 09:16:20.741 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-9] (id=[80]) has been active for [61,060] milliseconds (since [3/11/20 9:15 AM]) to serve the same request for [http://localhost:8090/setup/setupembeddeddb-default.action?atl_token=fa37fc09d020e8ff481a28aa05c78215089152ff] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.
	java.lang.Throwable
		at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
		at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
		at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
		at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
		at org.h2.util.NetUtils.getLocalAddress(NetUtils.java:252)
		at org.h2.util.NetUtils.createLoopbackSocket(NetUtils.java:47)
		at org.h2.server.TcpServer.isRunning(TcpServer.java:270)
		at org.h2.tools.Server.isRunning(Server.java:541)
		at org.h2.tools.Server.start(Server.java:491)
		at com.atlassian.h2.ServerLifecycle.start(ServerLifecycle.java:67)
		at com.atlassian.h2.DatabaseCreatingServerLifecycle.start(DatabaseCreatingServerLifecycle.java:40)
		at com.atlassian.confluence.core.persistence.hibernate.ConfluenceHibernateConfig.getHibernateProperties(ConfluenceHibernateConfig.java:51)
		at com.atlassian.confluence.core.persistence.hibernate.ConfigurableMappingResources$1.get(ConfigurableMappingResources.java:30)
		at com.atlassian.confluence.core.persistence.hibernate.ConfigurableMappingResources$1.get(ConfigurableMappingResources.java:25)
		at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:167)
		at com.atlassian.confluence.core.persistence.hibernate.ConfigurableMappingResources.lambda$getObject$0(ConfigurableMappingResources.java:66)
		at com.atlassian.confluence.core.persistence.hibernate.ConfigurableMappingResources$$Lambda$539/232058963.iterator(Unknown Source)
		at com.google.common.collect.FluentIterable$3$1.get(FluentIterable.java:296)
		at com.google.common.collect.FluentIterable$3$1.get(FluentIterable.java:293)
		at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:77)
		at com.google.common.collect.Iterators$ConcatenatedIterator.hasNext(Iterators.java:1332)
		at com.google.common.collect.Iterators.addAll(Iterators.java:357)
		at com.google.common.collect.Lists.newArrayList(Lists.java:147)
		at com.google.common.collect.Iterables.castOrCopyToCollection(Iterables.java:306)
		at com.google.common.collect.Iterables.toArray(Iterables.java:284)
		at com.google.common.collect.Iterables.toArray(Iterables.java:280)
		at com.atlassian.confluence.impl.core.persistence.hibernate.ConfigurableLocalSessionFactoryBean.afterPropertiesSet(ConfigurableLocalSessionFactoryBean.java:139)
		at com.atlassian.confluence.impl.hibernate.ConfluenceLocalSessionFactoryBean.afterPropertiesSet(ConfluenceLocalSessionFactoryBean.java:45)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
		at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
		at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$67/716399071.getObject(Unknown Source)
		at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
		at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
		at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
		at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:290)
		at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$c402d44d.createTenantedDelegate(<generated>)
		at com.atlassian.confluence.tenant.TenantGate$2.create(TenantGate.java:71)
		at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325)
		at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
		at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
		at com.atlassian.confluence.tenant.TenantGate.getDelegate(TenantGate.java:166)
		at com.atlassian.confluence.tenant.TenantGate$$Lambda$516/1312938961.get(Unknown Source)
		at com.atlassian.confluence.tenant.TenantGate$3.getTarget(TenantGate.java:210)
		at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)
		at com.sun.proxy.$Proxy211.getProperties(Unknown Source)
		at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridgeAssociations.associate(SessionFactoryBridgeAssociations.java:78)
		at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge.lambda$new$1(SessionFactoryBridge.java:43)
		at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge$$Lambda$549/1393528796.get(Unknown Source)
		at com.atlassian.hibernate.adapter.util.Lazy.get(Lazy.java:23)
		at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryBridge$$Lambda$558/1762123804.get(Unknown Source)
		at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getSessionFactoryV5(SessionFactoryV2orV5BridgeProxy.java:66)
		at com.atlassian.hibernate.adapter.adapters.session.SessionFactoryV2Adapter.getConnectionProvider(SessionFactoryV2Adapter.java:327)
		at com.atlassian.hibernate.adapter.bridge.factory.SessionFactoryV2orV5BridgeProxy.getConnectionProvider(SessionFactoryV2orV5BridgeProxy.java:262)
		at org.springframework.orm.hibernate.SessionFactoryUtils.getDataSource(SessionFactoryUtils.java:116)
		at org.springframework.orm.hibernate.HibernateTransactionManager.afterPropertiesSet(HibernateTransactionManager.java:352)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
		at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
		at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)
		at org.springframework.beans.factory.support.AbstractBeanFactory$$Lambda$67/716399071.getObject(Unknown Source)
		at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
		at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)
		at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
		at org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy$LookupOverrideMethodInterceptor.intercept(CglibSubclassingInstantiationStrategy.java:290)
		at com.atlassian.confluence.tenant.TenantGate$$EnhancerBySpringCGLIB$$9b6ca63a.createTenantedDelegate(<generated>)
		at com.atlassian.confluence.tenant.TenantGate$2.create(TenantGate.java:71)
		at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:325)
		at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:143)
		at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:112)
		at com.atlassian.confluence.tenant.TenantGate.getDelegate(TenantGate.java:166)
		at com.atlassian.confluence.tenant.TenantGate$$Lambda$516/1312938961.get(Unknown Source)
		at com.atlassian.confluence.tenant.TenantGate$3.getTarget(TenantGate.java:210)
		at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)
		at com.sun.proxy.$Proxy213.getTransaction(Unknown Source)
		at 
...
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) 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:861) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1579) 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)

 Observations:

* I have enough memory and CPU to run Confluence, that is not the problem

* Once it fails, I cannot restart the server and continue, I have to delete and recreate the Confluence home directory

 

Based on the stack trace, it looks to be getting stuck when trying to get localhost address https://github.com/h2database/h2database/blob/c27ff37c38aaf4e5c822a0ed0505d96e0ce84541/h2/src/main/org/h2/util/NetUtils.java#L280

1 answer

0 votes
Sascha N. April 25, 2020

How did you solve this issue, @Octavian Genes? Same problem here.

Octavian Genes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2020

Hey Sascha, sadly I did not invest more time in this right now, it may be connected to the 3rd party library that gets the correct IP address on the machine but without proper investigation it's hard to tell :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events