Why is server.properties getting overwritten? #3266
-
im running a server with rlcraft installed:
But when I try to edit server.properites when the container is stopped, when I restart the container it goes back to its default values. Theres a date at the top, which I think shows when it was last edited. Currently its |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
It shouldn't be going back to defaults, but I am curious which properties you think are. To avoid it touching that file then refer to https://docker-minecraft-server.readthedocs.io/en/latest/configuration/server-properties/ |
Beta Was this translation helpful? Give feedback.
-
Thanks for providing the compose setup...that helped tremendously. It's because the modpack includes its own server.properties Exclude that file using |
Beta Was this translation helpful? Give feedback.
-
This was my previous comment, in response to itzg, im making it again since I leaked a bit of personal info: It does go back to defaults. After running docker compose up -d, and then turning off the container, I edit server.properties to set pvp to false. Then, when starting the container again, once the server is online, pvp goes back to true. I think the container overwrites since it also sets allow-flight=true and enable-command-block=true, even though in a normal server these would be off by default, but rl craft needs these on. I've added OVERRIDE_SERVER_PROPERTIES to my docker compose, same issue:
When starting the server, I see: docker logs rlcraft | grep "server.properties" So not sure why its still being overwritten. Same issue |
Beta Was this translation helpful? Give feedback.
Thanks for providing the compose setup...that helped tremendously.
It's because the modpack includes its own server.properties
Exclude that file using
https://docker-minecraft-server.readthedocs.io/en/latest/types-and-platforms/mod-platforms/auto-curseforge/#excluding-overrides-files