mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2159] An interrupted engine update leaves BUILD.json.prev and no BUILD.json; UPDATE.bat then skips the engine silently #864
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#864
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 @ByteJuggler on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2159
On a Windows/NVIDIA install, UPDATE.bat kept saying
Strata is updated (engine 0.1.39)althoughMIN_ENGINEis 0.1.43.1. No update was attempted and no reason was given.State:
engine/hadBUILD.json.prev(0.1.39) and the 0.1.39 exes, but noBUILD.json. The folder was last changed during an earlier update that was interrupted (most likely by a PC crash/reboot).Cause:
get_prebuilt(updating=True)movesBUILD.jsontoBUILD.json.prevbefore downloading.update_installed_engineputs it back only when the update fails inside the process (new is None). A crash, reboot, closed window, Ctrl+C orSystemExit(onlyExceptionis caught) leaves it moved aside. On every later run,update_installed_enginehitsif not info.exists() ...: returnand silently skips the engine, so the install never updates again.Workaround (confirmed): with the server stopped,
Move-Item engine\BUILD.json.prev engine\BUILD.json, then UPDATE.bat. It then updated normally.Example of failure, and work-around:
Suggested fix: when
BUILD.jsonis missing butBUILD.json.prevand the exe exist, restore it (and say so) before checking the version. Optionally put it back in afinallyaround the download as well.@qiuzan2001 commented on GitHub (Oct 15, 2026):
Reproduced on Linux with main
296b59d2(0.1.44.1): anengine/folder holding the exe andBUILD.json.prevbut noBUILD.jsonmakessetup.update_installed_enginereturn at its first check (if not info.exists() ...: return) with no message and no download, so the install stays on the old engine for good. Open PR #2161'stools/test_setup_stale_stamp.pyfails against main'ssetup.pyand passes on that branch (test_setup_choicesandtest_setup_amdalso pass there).@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.