[2.0.13] Headless server: /config changes do not persist
Posted: Sat Nov 02, 2024 6:02 pm
Changes made via the /config command are not written to the server-settings.json file.
Server: Debian Bookworm 12.7 running in an lxc container.
Version information:
Start command:
File timestamps before changes:
The config values are set, but not written to the server-settings.json:
Checking if values are written to the file:
As can be seen, the config remains untouched. Other commands like /whitelist or /promote however, seem to work correctly:
The timestamps of those files changed and they were indeed updated:
It doesn't matter if the /config command is used via the server console, rcon, or in-game (server configuration GUI). The GUI screenshot is from another test where I set name, description, game_password, and tags, but with the same result: The settings work for the currently running server, but are not persisted to the server-settings.json file.
Am I doing something wrong?
Server: Debian Bookworm 12.7 running in an lxc container.
Version information:
Code: Select all
factorio@factorio ~/test2/server $ ./bin/x64/factorio --version
Version: 2.0.13 (build 79912, linux64, headless)
Version: 64
Map input version: 1.0.0-0
Map output version: 2.0.13-1
Code: Select all
factorio@factorio ~/test2/server $ ./bin/x64/factorio \
--start-server ./data/saves/testserver.zip \
--server-settings ./server-settings.json \
--use-server-whitelist \
--server-whitelist ./server-whitelist.json \
--server-adminlist server-adminlist.json
Code: Select all
factorio@factorio ~/test2/server $ ls -l server-*
-rw-r--r-- 1 factorio factorio 4 Nov 2 18:27 server-adminlist.json
-rw-r--r-- 1 factorio factorio 3716 Nov 2 18:27 server-settings.json
-rw-r--r-- 1 factorio factorio 4 Nov 2 18:27 server-whitelist.json
Code: Select all
/config get name
Server name: Name of the game as it will appear in the game lis
/config get description
Server description: Description of the game that will appear in the listing
/config set name testing123
Server name changed to: testing123
/config set description testing123
Server description set to: testing123
/config get name
Server name: testing123
/config get description
Server description: testing123
Code: Select all
factorio@factorio ~/test2/server $ grep testing123 server-settings.json
factorio@factorio ~/test2/server $ ls -l server-settings.json
-rw-r--r-- 1 factorio factorio 3716 Nov 2 18:27 server-settings.json
Code: Select all
/whitelist get
The whitelist is empty.
/whitelist add testing123
Added testing123 to the whitelist.
/whitelist get
Whitelisted players: testing123
/promote testing123
2024-11-02 18:32:54 [PROMOTE] testing123 was added to the admin list by <server> and will be promoted upon joining the game.
Code: Select all
factorio@factorio ~/test2/server $ ls -l server-*
-rw-r--r-- 1 factorio factorio 20 Nov 2 18:32 server-adminlist.json
-rw-r--r-- 1 factorio factorio 3716 Nov 2 18:27 server-settings.json
-rw-r--r-- 1 factorio factorio 20 Nov 2 18:32 server-whitelist.json
factorio@factorio ~/test2/server $ grep testing123 server-adminlist.json
"testing123"
factorio@factorio ~/test2/server $ grep testing123 server-whitelist.json
"testing123"
Am I doing something wrong?