502 gateway error for 2.37.9 docker cluster


For some testing purpose we thought of spinning version in our local.
When trying to access the Dhis from port we are getting 502 bad gateway error.
On seeing the status of containers d2-cluster-2379_core_1 container is getting restarted for every 20 seconds. Also the docker image output is stating that the image was created 53 years ago

R.Sri Laxmi Ragini

I would advice checking the logs of the container that is restarting continously as you will probably be able to find the issue there.

1 Like

Thank you Jaime,

From the logs the main errors are

INFO  org.hisp.dhis.external.location.DefaultLocationManager [main] Environment variable DHIS2_HOME points to /DHIS2_home
INFO  org.hisp.dhis.external.location.DefaultLocationManager [main] Directory /DHIS2_home is not writeable
04-May-2023 13:45:19.048 SEVERE [main] org.apache.catalina.core.ContainerBase.startInternal A child container failed during start
	java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]


04-May-2023 13:45:19.064 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Log4j2-TF-2-Scheduled-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@11.0.17/jdk.internal.misc.Unsafe.park(Native Method)

attaching the detailed log file
error.docx (25.5 KB)

Please check the following similar topic post:

Hope it helps! :+1: