Skip to content

v6.7.1

Choose a tag to compare

@n36l3c7 n36l3c7 released this 21 Nov 09:49
· 10 commits to main since this release
94e5cb2

After a restart of the host, Nik waits for its database instead of staying stopped.

What changed

  • Fixed: after a restart of the host, Nik stayed stopped. When the machine or the container engine restarts, every container starts at once and PostgreSQL replays its log for a moment. The step that runs before the server (snapshot, rehearsal, migrations) took the refused connection for a failed upgrade, and the server answered every request with "the upgrade was stopped" until its container was restarted by hand. It now waits for the database, saying so in the log, however long it takes.

Upgrading

git pull
podman compose up -d --build

No migration. A server of 6.7.0 that answers "the upgrade was stopped" after a restart, with nothing above that line about a snapshot or a migration, only needs its containers started again:

podman compose restart api automation

Choices made

  • It waits without a limit. A database that does not answer is not a failed upgrade: nothing was read and nothing changed. Without a database the server could do nothing anyway, and it goes on by itself when the database is back.
  • Only PostgreSQL is waited for; a development server on a file fails at once, as before.

Not verified on real systems

  • Found on a development machine when its container engine restarted; the fix is covered by tests with a database made to refuse connections, not by a restart of the server's own host. Not run under podman.