Skip to content

fix: db status check#30

Open
matonb wants to merge 1 commit into
kasmtech:release/1.18.1from
matonb:feature/db-status-check
Open

fix: db status check#30
matonb wants to merge 1 commit into
kasmtech:release/1.18.1from
matonb:feature/db-status-check

Conversation

@matonb

@matonb matonb commented Jan 6, 2026

Copy link
Copy Markdown

DB Initialisation check fails to complete if the database is already running and initialised/

  1. First checks if the database is already initialized (by querying the settings table)
  2. If already initialized → exits immediately with success (exit 0)
  3. If not initialized → runs startup.sh

1. First checks if the database is already initialized (by querying the settings table)
2. If already initialized → exits immediately with success (exit 0)
3. If not initialized → runs startup.sh
darkhonor added a commit to darkhonor/helm-charts that referenced this pull request Mar 5, 2026
Port of kasmtech/kasm-helm#30 (matonb). Adds a pre-check in the
db-init-job that queries SELECT COUNT(*) FROM settings before running
startup.sh. If the database is already initialized, the job exits
immediately instead of running redundant Alembic migrations.

This prevents unnecessary lock acquisition during migrations when the
schema is already current, reducing the risk of the deadlock loop
documented in kasmtech/kasm-helm#36.

Upstream-PR: kasmtech/kasm-helm#30
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bscarbrough

Copy link
Copy Markdown
Collaborator

@matonb thanks for your help! These updates should be added to the official GA version of the Kasm Helm chart just released. The latest release can also be reviewed in the release/1.1190.0 branch of this repo.

Helm repo:
https://helm.kasm.com

OCI Registry:
oci://registry-1.docker.io/kasmweb/kasm-helm

@matonb

matonb commented Jun 19, 2026

Copy link
Copy Markdown
Author

Thanks, I'm trying to find time to checkout the 1.1190 release...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants