Skip to content

fix: lift the 30 s timeout on the 0.3.5 migration's data-sized steps - #160

Merged
MattDHill merged 1 commit into
masterfrom
fix/exec-timeout
Sep 25, 2026
Merged

MattDHill merged 1 commit into
masterfrom
fix/exec-timeout

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Four steps of the 0.3.5 migration run through execFail without a timeout:

  • the recursive chown of the PostgreSQL cluster
  • the find -exec chmod over the app tree
  • the per-directory chmod of data/
  • the per-directory listing of data/

With no timeout, each gets the SDK's 30 s default and is SIGKILLed on any instance where it runs longer: a cold HDD working through tens of thousands of app files, or a single very large directory under data/. When that happens the migration fails. All four now run with no timeout (null).

34.0.4:5 isn't on beta yet, so this doesn't bump the version: the fix ships in 34.0.4:5 and is added to its release note. Draft #157 plans to move past whatever version master has when it's finished, and next (#153) goes to 35.0.0:0, so neither conflicts with this beyond the release-note line.

The comment above the data/ walk says a single recursive find or chmod -R was OOM-killed (SIGKILL). With this 30 s default in effect that SIGKILL may have been the timeout instead. I haven't changed the walk: it works either way, and memory use stays bounded.

Found in the fleet-wide audit for this 30 s default after Start9Labs/open-webui-startos#43.

🤖 Generated with Claude Code

The 0.3.5 migration ran its recursive chown of the PostgreSQL cluster, the
find -exec chmod over the app tree, and the per-directory chmod and listing
of data/ through execFail with no timeout argument, so each inherited the
SDK's 30 s default and was SIGKILLed on any instance where one of them took
longer — a cold HDD over tens of thousands of app files, or a single huge
data/ directory — failing the migration. They now run unbounded.

34.0.4:5 is not yet on beta, so the fix rides that version and joins its
release note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill
MattDHill merged commit 93aa747 into master Sep 25, 2026
3 checks passed
@MattDHill
MattDHill deleted the fix/exec-timeout branch September 25, 2026 04:49
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.

1 participant