Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jasonfb/6b86fe48f79393d98626ab55b3ab9334 to your computer and use it in GitHub Desktop.
Save jasonfb/6b86fe48f79393d98626ab55b3ab9334 to your computer and use it in GitHub Desktop.
Ensure app can pass healthcheck...
INFO [fb2495d7] Running docker run --detach --name healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a --publish 3999:3000 --label service=healthcheck-helios-panoptes -e MRSK_CONTAINER_NAME="healthcheck-helios-panoptes" -e [REDACTED] --health-cmd "curl -f http://localhost:3000/up || exit 1" --health-interval "1s" jasonheliosdevshop/helios-panoptes:ced5507a0540030e4e3e9600aab273e110f8352a on 52.91.164.217
INFO [fb2495d7] Finished in 1.244 seconds with exit status 0 (successful).
INFO [68fa3132] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [68fa3132] Finished in 0.269 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 1s (attempt 1/7)...
INFO [4c4cb392] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [4c4cb392] Finished in 0.290 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 2s (attempt 2/7)...
INFO [f261198d] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [f261198d] Finished in 0.143 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 3s (attempt 3/7)...
INFO [2f847797] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [2f847797] Finished in 0.403 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 4s (attempt 4/7)...
INFO [50ebf4a0] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [50ebf4a0] Finished in 0.079 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 5s (attempt 5/7)...
INFO [cc117ae0] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [cc117ae0] Finished in 0.096 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 6s (attempt 6/7)...
INFO [38e9c7f0] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [38e9c7f0] Finished in 0.258 seconds with exit status 0 (successful).
INFO container not ready (unhealthy), retrying in 7s (attempt 7/7)...
INFO [6fbb9dd9] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 52.91.164.217
INFO [6fbb9dd9] Finished in 0.074 seconds with exit status 0 (successful).
INFO [5ea65384] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker logs --tail 50 2>&1 on 52.91.164.217
INFO [5ea65384] Finished in 0.236 seconds with exit status 0 (successful).
ERROR exec /rails/bin/docker-entrypoint: exec format error
INFO [59f97684] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker stop on 52.91.164.217
INFO [59f97684] Finished in 0.155 seconds with exit status 0 (successful).
INFO [c37247d1] Running docker container ls --all --filter name=^healthcheck-helios-panoptes-ced5507a0540030e4e3e9600aab273e110f8352a$ --quiet | xargs docker container rm on 52.91.164.217
INFO [c37247d1] Finished in 0.293 seconds with exit status 0 (successful).
Finished all in 45.9 seconds
Releasing the deploy lock
INFO [de799e11] Running /usr/bin/env rm mrsk_lock/details && rm -r mrsk_lock on 52.91.164.217
INFO [de799e11] Finished in 0.111 seconds with exit status 0 (successful).
ERROR (Mrsk::Utils::HealthcheckPoller::HealthcheckError): container not ready (unhealthy)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment