-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Server will overwrite the configuration files on the first time the container is restarted #23
Comments
I actually just found the cause... There's a function called apply_postinstall_config under run_server.sh that runs every time the server is restarted and is overwriting the configuration on the Conf files by the default settings on the code. Not sure that's the best way to do it, I would set the default if it wasn't set on the conf file itself, otherwise, you run into issues as I did. I may push a change in that sense if that is something that the repository owner might think is worthwhile. |
Hello, @thiagogpa! Thanks for sharing your issue. So, the file does get overwritten by the arguments provided, yes. Just to make sure, even if you do provide the environment variables for Mods, Name, and MaxPlayers, the settings that you want don't apply? In the most recent GitHub Action Build the values seem to be successfully changed. |
Yeah, you are correct, If I provide the values on the environmental section they do get populated with whatever I set there, what I was doing was providing the server name only and nothing else. The "issue" is more because of the way that I change my config file. I find it easier to load the configuration files on the game itself and change whatever I need using the GUI and then just copy-paste it into my server and restart it. Specifically for me, the way the container works makes it harder for me to have to change the settings in both the YAML and the config files. I do think having the option to overwrite it directly in the environment is great for people that just set it up once and are done with it, in my case I would benefit if it didn't replace anything as you mentioned. ** I would love to help out by adding that extra "feature" if you feel like it's something you would like on your project |
Yeah, that makes sense. I didn't really consider people changing their settings often.
That is perfectly fine with me! If you have a suggestion you can think of, feel free to create a PR. |
https://theindiestone.com/forums/index.php?/topic/47417-dedicated-server-on-linux-vps-jre-crashes/ Only way to keep my server stable with 10+ people is to set to G1GC, but there's other java jre gc options Afaik there's only a few java GC's that'd matter. ZGC is usually best, but G1GC can sometimes be more efficient with it's RAM usage. Probably related to something dumb in either my vm configs or otherwise, but seems like an easy change to allow it to be configurable more generally. Maybe just adds tech debt to potential future work to deal with Renegade-Master#38 and Renegade-Master#23 but idk, this is an easy fix for my specific problems. Signed-off-by: Dylan Shepard <[email protected]>
https://theindiestone.com/forums/index.php?/topic/47417-dedicated-server-on-linux-vps-jre-crashes/ Only way to keep my server stable with 10+ people is to set to G1GC, but there's other java jre gc options Afaik there's only a few java GC's that'd matter. ZGC is usually best, but G1GC can sometimes be more efficient with it's RAM usage. Probably related to something dumb in either my vm configs or otherwise, but seems like an easy change to allow it to be configurable more generally. Maybe just adds tech debt to potential future work to deal with Renegade-Master#38 and Renegade-Master#23 but idk, this is an easy fix for my specific problems. Signed-off-by: Dylan Shepard <[email protected]>
* allow for garbage collection algo preference https://theindiestone.com/forums/index.php?/topic/47417-dedicated-server-on-linux-vps-jre-crashes/ Only way to keep my server stable with 10+ people is to set to G1GC, but there's other java jre gc options Afaik there's only a few java GC's that'd matter. ZGC is usually best, but G1GC can sometimes be more efficient with it's RAM usage. Probably related to something dumb in either my vm configs or otherwise, but seems like an easy change to allow it to be configurable more generally. Maybe just adds tech debt to potential future work to deal with #38 and #23 but idk, this is an easy fix for my specific problems. Signed-off-by: Dylan Shepard <[email protected]> * readme updates * updating docker-compose, fixing src/run-server reference * Update GC Env RegEx pattern; Signed-off-by: Renegade-Master <[email protected]> * Add test for new GC; - .github/workflows/docker-build.yml - Add environment configuration for new GC Config option. - Add Test for new configuration option. - README.md - Formatting pass. - docker-compose.yaml - Formatting pass. * Correct GC Config replacement; * Minor correction; * Correct sed replacement; Signed-off-by: Dylan Shepard <[email protected]> Signed-off-by: Renegade-Master <[email protected]> Co-authored-by: Renegade-Master <[email protected]>
Hello, any changed about this issue so far ? |
Every time I stop and start the server back up, it overwrites the ZomboidServer.ini and the ZomboidServer_SandboxVars.lua and I would lose all the settings I have, including mods and some other parameters.
If I change back my settings it starts over with the correct settings, next time I stop it it will do the same thing and overwrite the files next time.
How to replicate:
I set up the server the first time I just followed the README file, cloned, and started the server from scratch. It boots up an empty instance, I proceed to stop it, changing the configurations on the ZomboidServer.ini and the ZomboidServer_SandboxVars.lua, boot it back up. It then installs all the mods and set everything as I have it on the config files. I manage to log in and play the game normally, with all the mods and everything.
Once I stop it and start it again, it just changes a bunch of stuff on the config files and basically starts again the server from scratch.
Tried running without the environment variables to see if that was the reason why but it does the same thing regardless.
I noticed the time I restart it, I get some sort of error pointing out to the RCONPort but that does have a number, so no idea why I get this exception
The text was updated successfully, but these errors were encountered: