mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4191] [Engine] Problem with timeouts when loading a large model: Startup_wait_expired #1842
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1842
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LordDancan on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4191
When loading local models with a size of about 180 GB, the error “Startup_wait_expired” appears.
It’s just that there isn’t enough time, and the loading fails due to a timeout.
In Strata version 0.2.1 · Engine 0.1.46, it was enough to adjust the timeout in the file \Strata\host\server\native-control.mjs from 300 to 600, and the problem disappeared — the model started loading.
In Strata version 0.2.6 · Engine 0.1.50, to fix the problem, you have to edit several files.
Is it possible to increase the timeouts in advance or even move this parameter to the settings so that you don’t have to fix it with each engine update?
@github-actions[bot] commented on GitHub (Oct 26, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 26, 2026):
Thanks, this follows the format now.
@const-apex commented on GitHub (Oct 27, 2026):
Same here with a 177 GB Q8_0 (Linux, CUDA, 2× A5000): cold start ~950 s. Open PR #3817 makes the wait configurable with
STRATA_ENGINE_READY_Sand lifts the 600 s limits inrunner.pyandruntime.py. Patching those three places locally works.@rob-4x4 commented on GitHub (Oct 28, 2026):
I am encountering the same problem with Strata Desktop 0.2.7 and CUDA engine 0.1.52 on Windows 11. Diagnosed with the help of AI
System configuration:
Observed behaviour:
The desktop GUI repeatedly reports
Startup_wait_expired, although the underlying engine continues initialising.During troubleshooting, I observed:
ready.readyafter approximately 694 seconds.127.0.0.1:18501, confirming that it had reached its API-ready state.Startup_wait_expired, and the engine subsequently began a controlled shutdown.The 32 GiB configuration change was verified in both the persistent tuning configuration and the native instance used by the GUI.
Code investigation:
I examined the installed
host/server/native-control.mjsand found two separate timeout mechanisms:control.start()call uses a 300-second default wait, with a maximum of 600 seconds whereengine_ready_sapplies.The GUI awaits
control.start()before entering the health-check loop, so simply extending the latter deadline may not address the initialStartup_wait_expirederror.Suggested improvement:
Could the startup timeout be exposed in the desktop GUI's Expert settings, with a configurable value such as 1,200 seconds?
Ideally, the setting would apply consistently to the runtime startup and GUI readiness checks, avoiding manual patches after application updates.
Update: Successful workaround for
Startup_wait_expiredon Windows — Strata 0.2.7I have now successfully resolved the startup problem and have Qwen3.8-Flash-Next IQ3_S running under the native Strata Desktop GUI.
The GUI reports Ready, and the runtime confirms:
The runtime controller is running with
--startup-wait 1200.0.Root cause
Strata 0.2.7 has multiple independent timeout limits. Increasing the timeout in
native-control.mjsalone is insufficient because the Control management and journal layers enforce additional 600-second limits.The underlying
strata_control/runtime.pyalready supports startup waits up to 1,800 seconds throughMAX_START_WAIT = 1800, but some higher-level components still enforce 600 seconds.Changes required
1.
host/server/native-control.mjsAt approximately line 308, changed the
control.start()timeout to:At approximately line 337, changed the GUI health-check deadline from 300,000 to 1,200,000 milliseconds:
2.
control/strata_control/management.pyAt approximately line 203, changed the start-wait validation from:
to:
3.
control/strata_control/journal.pyAt approximately line 133, changed the direct runtime-start wait range to:
At approximately line 135, changed the startup-wait validation to:
Errors encountered while isolating the issue
Changing only the desktop timeout resulted in:
After updating the management validation, the next error was:
Both errors were caused by additional timeout validation limits outside the GUI code.
Model configuration
I also reduced the resident-expert budget from the automatically generated 41 GiB to 32 GiB using Expert settings. The original budget exceeded the free physical RAM reported during startup. However, reducing this budget alone did not resolve the startup timeout.
Verification
After applying the timeout changes, restarting Strata Desktop and loading the model through the GUI:
strata runtime status --profile app-1reportedready.127.0.0.1:18500.Suggested upstream fix: Centralise the startup timeout configuration and validation so the desktop GUI, management layer, journal and runtime all use consistent limits.
Ideally, expose the startup timeout in Expert settings, with support for up to 1,800 seconds, matching the existing
MAX_START_WAITconstant.This would avoid users having to patch three installed source files, especially since application updates are likely to overwrite those changes.
I have backed up the original files, and JavaScript/Python syntax validation passed. The workaround is functioning, although I have not yet completed an end-to-end chat or external API inference test.
Update
Startup workaround succeeds but that engine 0.1.52 still self-stops on batched inference. Seems similar to a different issue, https://github.com/Niko1221/Strata/issues/2386
@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you, and thanks to the people who patched it locally. The app waited a flat 300 seconds for a model start, while
strata launchhas scaled the wait with the model's size since 0.2.5. Fixed on our side; the fix ships in the next update (0.2.8). The app now waits five minutes for models up to 40 GB, and ten minutes plus about eight seconds per GB above 40 beyond that (a 45 GB model about 640 s, a 177 GB one about 28 minutes), up to what the installed Control accepts, and keeps the engine's own ready time above it. This is PR #3817 (miketgv), ported with the author kept.@Niko1221 commented on GitHub (Oct 29, 2026):
Thanks to everyone who patched this locally, and to miketgv for PR #3817. Fixed in 0.2.8: the app now waits five minutes for models up to 40 GB, and ten minutes plus about eight seconds per GB above that, as
strata launchdoes. Update the app and runstrata update. Closing; reopen if a big model still times out.