CMDBuild Forum

Docker CMDBuild version 3.4.2

Hi,

When running https://github.com/itmicus/cmdbuild_docker/blob/master/3.4.2/cmdbuild/Dockerfile we are getting a error

29-Jan-2024 02:54:22.266 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
29-Jan-2024 02:54:22.366 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [cmdbuild] appears to have started a thread named [pool-2-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.6/jdk.internal.misc.Unsafe.park(Native Method)
java.base@17.0.6/java.util.concurrent.locks.LockSupport.park(LockSupport.java:341)
java.base@17.0.6/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:506)
java.base@17.0.6/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3463)
java.base@17.0.6/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3434)
java.base@17.0.6/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1623)
java.base@17.0.6/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435)
java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062)
java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122)
java.base@17.0.6/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
java.base@17.0.6/java.lang.Thread.run(Thread.java:833)

We are able to replicate this error on multiple developer machines. We were also able to get the log file to write out to our local volume to get more details and this is what appears there. it looks like it can’t find the data sources configuration file which we can confirm through the terminal is present. We are also able to confirm we can connect to the database

2024-01-29T02:20:34.451Z [sys:boot] INFO o.c.p.PostgresDriverAutoconfigureHelperServiceImpl - configuring postgres driver from file = /usr/local/tomcat/webapps/cmdbuild/WEB-INF/lib_ext/postgresql-42.4.1.jar
2024-01-29T02:20:34.452Z [sys:boot] INFO o.c.p.PostgresDriverAutoconfigureHelperServiceImpl - copy postgres driver to file = /usr/local/tomcat/webapps/cmdbuild/WEB-INF/lib/postgresql-42.4.1.jar
2024-01-29T02:20:34.467Z [sys:boot] WARN o.c.utils.lang.CmReflectionUtils - class not found for class name = org.postgresql.Driver : java.lang.ClassNotFoundException: org.postgresql.Driver
2024-01-29T02:20:34.468Z [sys:boot] WARN o.c.p.PostgresDriverAutoconfigureHelperServiceImpl - restarting container to load postgres driver from jar file
2024-01-29T02:20:34.473Z [sys:boot] INFO org.cmdbuild.event.EventServiceImpl - processing broadcast event = EventImpl{direction=ED_OUTGOING, sessionId=BROADCAST, messageId=p126mtzmv4882nlgwzeytvqq, eventCode=alert}
platform helper: prepare command = restart on tomcat = /usr/local/tomcat
2024-01-29T02:20:34.501Z [sys:boot] ERROR o.c.c.s.ConfigChangeNotifierService - error sending config event update for event = ConfigReloadEvent{keys=[]} to listener = (org.cmdbuild.database,[SYST_NOT_RUNNING, SYST_LOADING_CONFIG_FILES, SYST_WAITING_FOR_DATABASE_CONFIGURATION],ConfigListenerHelperImpl{description=org.cmdbuild.dao.datasource.ConfigurableDataSourceImpl.configureDatasource})
java.lang.NullPointerException: delegate data source is null (not configured or already closed)
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:805) ~[guava-23.0.jar:na]
at org.cmdbuild.dao.datasource.ConfigurableDataSourceImpl.delegate(ConfigurableDataSourceImpl.java:200) ~[cmdbuild-dao-all-3.4.2.jar:3.4.2]

From https://github.com/itmicus/cmdbuild_docker/blob/master/README.md :

itmicus is the unofficial repository with all the versions of cmdbuild.
Please open issues on github