Skip to content
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

Add fault tolerance to update scripts #200

Open
MilesBHuff opened this issue Jun 11, 2024 · 1 comment
Open

Add fault tolerance to update scripts #200

MilesBHuff opened this issue Jun 11, 2024 · 1 comment
Assignees
Labels
administration This ticket addresses server maintenance and changes. security This ticket addresses the security of the project. tweak This is a small change within intended behavior.

Comments

@MilesBHuff
Copy link
Member

At present, the update scripts operate directly on their target locations, meaning that if something goes wrong, the server is broken until manual intervention.
This is not ideal. The update scripts should be modified to run in a temporary location, and then only after a test for validity should they be moved to their target locations.

@MilesBHuff MilesBHuff added administration This ticket addresses server maintenance and changes. tweak This is a small change within intended behavior. labels Jun 11, 2024
@MilesBHuff MilesBHuff self-assigned this Jun 11, 2024
@MilesBHuff
Copy link
Member Author

MilesBHuff commented Jun 11, 2024

The repo-updating script is just git pull, which is fault-tolerant; so it's already being run nightly.

Not having the paper-updating script hasn't been a serious issue on 1.17.1, because there haven't been any updates available for that version in a very long time. The same is true of 1.18.2 and 1.19.4. But eventually we will catch back up to being near to the current version of Minecraft; and at this point, having reliable automatic updates will be pretty important.

It's risky to not have the JVM-updating script run on a regular basis, because Oracle occasionally pushes security fixes and such. The immediate benefit of this ticket is the newfound assurance that our version of Java is up-to-date.

@MilesBHuff MilesBHuff added the security This ticket addresses the security of the project. label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
administration This ticket addresses server maintenance and changes. security This ticket addresses the security of the project. tweak This is a small change within intended behavior.
Projects
None yet
Development

No branches or pull requests

1 participant