j4care / dcm4chee-arc-light-pro-issues

0 stars 0 forks source link

Archive fails to start with Connection Refused to db #3

Open petrkalina opened 1 year ago

petrkalina commented 1 year ago

the key aspect is that the problem does not occur all the time - after next restart it may not occur.. Occurs on multiple docker versions and multiple archive versions.

prectical resolution i.e.


  arc:
...
    extra_hosts:
      - "db:172.25.217.10"
petrkalina commented 11 months ago
gunterze commented 11 months ago

would rather expect

java.net.UnknownHostException: db

and not

java.net.ConnectException: Connection refused

if there is an issue with the docker DNS.

Does the issue remains after forcing a redeployment by

$ sudo touch <path-to-host-mounted-/opt/wildfly/standalone>/deployments/j4dcm4chee-arc-ear-VERSION-psql-secure.ear

? Perhaps, the DB is not yet ready - particularly when the DB get initialized on first startup - when

nc -w 1 -z db 5432

already succeeds. ( https://github.com/dcm4che-dockerfiles/wildfly/blob/master/docker-entrypoint.sh#L73 )