mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1244] Docker v0.1.40: persisted /data/config edits ignored on restart; stale /opt/strata config used (worked in v0.1.39) #512
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#512
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 @ampersandru on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1244
Problem
After upgrading from v0.1.39 to v0.1.40, edits to the generated config in the persistent /data/config directory were ignored on container restart. Strata continued using a different copy under /opt/strata. I did not encounter this behavior on v0.1.39; I have not bisected the change.
Environment
Reproduction / evidence
Checks on the affected container:
Expected
With REINSTALL=0, restarting should use edits to the persisted model config rather than a stale container-local copy.
Possible cause
The entrypoint creates a symlink to the persisted config only if /opt/strata/strata-$tag.json does not already exist. A regular config file left by setup can therefore prevent the persisted config from being selected. This is a hypothesis based on the script and the two differing files above.
Working workaround
I retained the /data directory mount and REINSTALL=0, and added this Compose entrypoint override to reconnect the persisted config on every start:
After recreating the container with that override, startup correctly reported:
A direct single-file bind mount onto /opt/strata/strata-iq3_s.json was also tried as a workaround, but it failed because setup.start() saves using write_config()/os.replace():
That file mount has been removed. The directory-mount plus entrypoint override above starts successfully. Could the Docker config lifecycle be adjusted so the persistent config is consistently authoritative, including restarts of the container that originally performed setup?
@Niko1221 commented on GitHub (Oct 7, 2026):
Fixed in 0.1.40.2: with REINSTALL=0 the entrypoint now replaces a regular config file left in /opt/strata by a link to the one on the /data volume, so edits to /data/config/*.json are used on the next restart. Your override can go.
@blange48 commented on GitHub (Oct 7, 2026):
Heads-up for k8s / docker users who pick a config by linking it: since 0.1.40.2,
docker-entrypoint.shalways runsln -sfn "$STRATA_DATA/config/strata-$tag.json" /opt/strata/strata-$tag.json. That replaces a link the container command made beforeexec ./docker-entrypoint.sh.We ran several configs from one volume this way (
ln -sf /data/config/strata-iq3_s.1x4-batch9.json /opt/strata/strata-iq3_s.jsonin the pod's command:--batch 8 --batch-groups 4, an explicit--layer-split,tool_call_recovery). On 0.1.40.2 the server quietly started the plain setup config instead: no--batch, the automatic split, and nothing in the log said so. On 4× RTX 5080 that looked like a big regression: 8 clients 138 instead of 390 tok/s total, and a 45K prompt in 24 s instead of 11 s.The workaround is easy once you know it: name the config through
MODEL, sincetagis just its lowercase.MODEL=IQ3_S.1X4-BATCH9makes the entrypoint link/data/config/strata-iq3_s.1x4-batch9.json, and that works fine. Two small suggestions:MODELselects/data/config/strata-<model>.json, so it's the way to keep several configs on one volume;CONFIG=/data/config/xxx.jsonenv var (or keeping an existing link that already points into$STRATA_DATA/config/) would make the intent clearer than overloadingMODEL.@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks for the detailed follow-up, and for finding the MODEL workaround. You were right: 0.1.40.2 replaced a link your pod command had made. Fixed in 0.1.40.3: an existing /opt/strata/strata-.json link that points into /data/config/ is now kept, an explicit CONFIG=/path/to/config.json env var wins when set, and the entrypoint always prints one line naming the config file the server starts with. The #1244 case (REINSTALL=0 replacing a regular file left by an image) still works. The Docker docs now say that MODEL selects /data/config/strata-.json and that CONFIG overrides it. Until 0.1.40.3 is out, MODEL=IQ3_S.1X4-BATCH9 is the way to go.