Inconsistent start up using command line

Mac BooK: Apple M1 Pro OS: Ventura
Docker 4.13.1
command line:

d2 cluster up 2.39.0 --db-version 2.39

Also add --seed to it doesn’t always bring up the DB and set it up correctly. Most of the time I have to run 3-4 times to get it up and running, however there are still SQL issues.

Currently it’s sitting at these logs:

Rs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
* INFO  2022-11-04T19:08:24,873 Context variable dhis2-home not set (LogOnceLogger.java [main])  
* INFO  2022-11-04T19:08:24,901 System property dhis2.home not set (LogOnceLogger.java [main])  
* INFO  2022-11-04T19:08:24,941 Environment variable DHIS2_HOME points to /DHIS2_home (LogOnceLogger.java [main])  
* INFO  2022-11-04T19:08:25,075 File /DHIS2_home/dhis-google-auth.json does not exist (LogOnceLogger.java [main])  
* INFO  2022-11-04T19:08:25,079 Could not find dhis-google-auth.json (LogOnceLogger.java [main])  
* INFO  2022-11-04T19:08:35,297 Monitoring metric for key monitoring.api.enabled is disabled (MetricsEnabler.java [main])  
* INFO  2022-11-04T19:08:35,425 Monitoring metric for key monitoring.hibernate.enabled is disabled (MetricsEnabler.java [main])  
* INFO  2022-11-04T19:08:35,438 Monitoring metric for key monitoring.dbpool.enabled is disabled (MetricsEnabler.java [main])  
* INFO  2022-11-04T19:08:35,450 Monitoring metric for key monitoring.cpu.enabled is disabled (MetricsEnabler.java [main])  
* INFO  2022-11-04T19:08:35,464 Monitoring metric for key monitoring.uptime.enabled is disabled (MetricsEnabler.java [main])  
* INFO  2022-11-04T19:08:35,480 Monitoring metric for key monitoring.jvm.enabled is disabled (MetricsEnabler.java [main])  
* INFO  2022-11-04T19:08:52,151 Hibernate configuration loaded: dialect: 'org.hisp.dhis.hibernate.dialect.DhisPostgresDialect', region factory: 'org.hibernate.cache.ehcache.EhCacheRegionFactory', connection pool max size: null (DefaultHibernateConfigurationProvider.java [main])  
* INFO  2022-11-04T19:09:07,973 Simple Local Cache instance created for region:'periodCache' (SimpleCacheBuilder.java [main])  

After about 20 minutes and nothing happens. Tomcat is not getting fired up. Sometimes, it does, but then things aren’t quite right with the DB, and/or something else happens. On occasion rebooting the laptop helps, but not really.

Any ideas what’s going on or how to make this more stable?

As of this morning (2022/11/07), Same versions of everything ( I checked :slight_smile: ), and it came up apparently just fine. This is the instability I’m talking about.

1 Like

I’m just wondering why does it say connection pool max size = null?


Also, I’m glad that it’s up and running, but if you face issues later,

Is it possible to upgrade Docker?

It says in the Docker page:

  • VirtualBox prior to version 4.3.30 must not be installed as it is not compatible with Docker Desktop.

Please check if you have any virtualization software such as VirtualBox that might not be compatible with Docker and could be causing the instability.