mirror of
https://github.com/sotashimozono/obsidian-remote-ssh.git
synced 2026-07-22 06:52:07 +00:00
CI on PR #56 first run came back "sshd entered unhealthy state: unhealthy". Two issues compounded: 1. The compose healthcheck shells `ss -lnt | grep ':22 '`, but `ss` isn't shipped in the minimal `ubuntu:22.04` base — the command exited non-zero every interval, so health stayed unhealthy past the retry budget. Adding `iproute2` to the apt-get install line gives us `ss` (~600 KB add). 2. When the start script gave up, it printed the timeout message and exited. We had no visibility into *why* sshd was unhealthy because docker logs weren't captured. Added `dumpContainerLogs` which calls `docker logs --tail 200` and `docker inspect --format '{{json .State.Health}}'` on every failure path so the next CI run (or local run) shows the actual sshd output and the healthcheck output history without manual digging. |
||
|---|---|---|
| .. | ||
| build-server.mjs | ||
| bump-version.mjs | ||
| cdp-tail.mjs | ||
| dev-install.mjs | ||
| start-test-sshd.mjs | ||
| stop-test-sshd.mjs | ||