Fix YTsaurus crash loop from non-idempotent admin user creation#96297
Merged
alexey-milovidov merged 1 commit intomasterfrom Feb 8, 2026
Merged
Fix YTsaurus crash loop from non-idempotent admin user creation#96297alexey-milovidov merged 1 commit intomasterfrom
alexey-milovidov merged 1 commit intomasterfrom
Conversation
When the YTsaurus scheduler times out during startup (40s default), the container exits and Docker restarts it (`restart: always`). On restart, `--create-admin-user` fails because the admin user already exists from the first attempt (data persists via `--local-cypress-dir`). This creates an infinite crash loop where the `/ping` endpoint briefly responds between restarts, giving a false "ready" signal. Fix by wrapping the entrypoint in bash and using a marker file (`/tmp/.yt_admin_created`) to only pass `--create-admin-user` on the first startup attempt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
Workflow [PR], commit [37843c1] Summary: ❌
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the YTsaurus scheduler times out during startup (40s default), the container exits and Docker restarts it (
restart: always). On restart,--create-admin-userfails because the admin user already exists from the first attempt (data persists via--local-cypress-dir). This creates an infinite crash loop where the/pingendpoint briefly responds between restarts, giving a false "ready" signal.Fix by wrapping the entrypoint in bash and using a marker file (
/tmp/.yt_admin_created) to only pass--create-admin-useron the first startup attempt.Changelog category (leave one):