Skip to content

Instantly share code, notes, and snippets.

@sbounmy
Created October 25, 2023 10:55
Show Gist options
  • Save sbounmy/413fb57e748584f199cdd7d2c37873f9 to your computer and use it in GitHub Desktop.
Save sbounmy/413fb57e748584f199cdd7d2c37873f9 to your computer and use it in GitHub Desktop.
INFO [2778830e] Running docker container ls --all --filter name=^healthcheck-n28-production-5fb8156f30048e8b974b661295947d2a60e75002$ --quiet | xargs docker inspect --format '{{if .State.Health}}{{.State.Health.Status}}{{else}}{{.State.Status}}{{end}}' on 128.140.109.106
INFO [2778830e] Finished in 0.234 seconds with exit status 0 (successful).
INFO [59db2e4d] Running docker container ls --all --filter name=^healthcheck-n28-production-5fb8156f30048e8b974b661295947d2a60e75002$ --quiet | xargs docker logs --tail 10000 2>&1 on 128.140.109.106
INFO [59db2e4d] Finished in 0.180 seconds with exit status 0 (successful).
ERROR D, [2023-10-25T10:45:55.753396 #7] DEBUG -- : (0.2ms) SELECT pg_try_advisory_lock(1958924183684115060)
D, [2023-10-25T10:45:55.754208 #7] DEBUG -- : ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
D, [2023-10-25T10:45:55.756245 #7] DEBUG -- : ActiveRecord::InternalMetadata Load (0.5ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
D, [2023-10-25T10:45:55.756652 #7] DEBUG -- : (0.2ms) SELECT pg_advisory_unlock(1958924183684115060)
D, [2023-10-25T10:45:55.757640 #7] DEBUG -- : ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
=> Booting Puma
=> Rails 7.1.1 application starting in production
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Puma version: 5.6.6 (ruby 3.2.2-p53) ("Birdie's Version")
* Min threads: 5
* Max threads: 5
* Environment: production
* PID: 1
* Listening on http://0.0.0.0:3000
Use Ctrl-C to stop
ERROR {
"Status": "starting",
"FailingStreak": 0,
"Log": [
]
}
INFO [56d4d0db] Running docker container ls --all --filter name=^healthcheck-n28-production-5fb8156f30048e8b974b661295947d2a60e75002$ --quiet | xargs docker stop on 128.140.109.106
INFO [56d4d0db] Finished in 0.382 seconds with exit status 0 (successful).
INFO [0de307f0] Running docker container ls --all --filter name=^healthcheck-n28-production-5fb8156f30048e8b974b661295947d2a60e75002$ --quiet | xargs docker container rm on 128.140.109.106
INFO [0de307f0] Finished in 0.143 seconds with exit status 0 (successful).
Releasing the deploy lock...
Finished all in 195.2 seconds
ERROR (Kamal::Cli::Healthcheck::Poller::HealthcheckError): Exception while executing on host 128.140.109.106: container not ready (starting)
@sbounmy
Copy link
Author

sbounmy commented Oct 25, 2023

e09d7d2ba224   hackerhouse/n28:5fb8156f30048e8b974b661295947d2a60e75002   "/rails/bin/docker-e…"   31 seconds ago   Up 30 seconds (health: starting)   0.0.0.0:3999->3000/tcp, :::3999->3000/tcp   healthcheck-n28-production-5fb8156f30048e8b974b661295947d2a60e75002
e0bf54c29386   0dcfbd925e10                                               "/rails/bin/docker-e…"   4 minutes ago    Up 3 minutes (healthy)             3000/tcp                                    n28-web-production-5fb8156f30048e8b974b661295947d2a60e75002
8990990eb791   traefik:v2.9                                               "/entrypoint.sh --pr…"   4 minutes ago    Up 4 minutes                       0.0.0.0:80->80/tcp, :::80->80/tcp           traefik
84917aa1095c   postgres:15                                                "docker-entrypoint.s…"   6 minutes ago    Up 6 minutes                       0.0.0.0:5432->5432/tcp, :::5432->5432/tcp   n28-db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment