-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to restart instance after a patched in file is deleted #611
Comments
In a patched save the clusterio/packages/host/src/patch.ts Line 81 in 79c1a2d
|
Well thats interesting. Let me investigate what file it deleted |
Hm, looks like it got rid of the .gitignore in my module folder. Interesting. Guess I won't put it in there. |
The error condition of a file being missing should be handled gracefully instead of giving a cryptic error. |
What would be the graceful way of handling this? Logging the missing file? Re-patching the save to include all the files? |
Log a warning that the file went missing. The current patch logic already replaces all patched in files with files from the modules to patch in. |
I updated factorio from 1.1.104 to 1.1.107 using the ingame updater. After updating, I get the following error both on the host and in the web interface developer tools when attempting to restart the running instance to apply the update:
[error] TypeError: Cannot read properties of null (reading 'async')
at /Users/danielv/project_files/clusterio/packages/host/dist/node/src/patch.js:98:100
at Array.map ()
at SaveModule.fromSave (/Users/danielv/project_files/clusterio/packages/host/dist/node/src/patch.js:98:61)
at /Users/danielv/project_files/clusterio/packages/host/dist/node/src/patch.js:182:135
at Array.map ()
at PatchInfo.fromSave (/Users/danielv/project_files/clusterio/packages/host/dist/node/src/patch.js:182:115)
at patch (/Users/danielv/project_files/clusterio/packages/host/dist/node/src/patch.js:330:37)
at async Instance.prepareSave (/Users/danielv/project_files/clusterio/packages/host/dist/node/src/Instance.js:661:9)
at async Instance.handleInstanceStartRequest (/Users/danielv/project_files/clusterio/packages/host/dist/node/src/Instance.js:823:24)
The issue remains after restarting the host and controller, however does not apply to newly created instances.
The text was updated successfully, but these errors were encountered: