Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check data/se
Posted: Sat Oct 26, 2024 8:37 pm
Hi guys,
I just got into factorio and I wanted to host my own docker server, surprisingly not much on that topic.
Sorry if this is the wrong section, not sure if it went under Multiplayer or Technical Support, seemed more fitting here.
So I tried following the steps outlined on factoriotools/factorio-docker
After a bit fiddling, I'm almost there, I'm at the point where I'm getting this error in the logs but I can't figure out why.
This is the error I'm getting and the server to keep trying to restart
"2.340 Error CommandLineMultiplayer.cpp:355: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check data/server-settings.example.json for correct format."
Here's my docker-compose.yml file content:
services:
factorio:
image: factoriotools/factorio:latest
restart: unless-stopped
ports:
- "34197:34197/udp"
volumes:
- /home/khar00f/docker/config/factorio/:/factorio
- /home/khar00f/docker/config/factorio/config/:/server-settings.json
environment:
- INSTANCE_NAME="Khar00f_Factorio"
- INSTANCE_DESC="Factorio on Khar00f Server"
# - LOAD_LATEST_SAVE=true
- SAVE_NAME=khar00f_save1
- GENERATE_NEW_SAVE=true
- UPDATE_MODS_ON_START=true
- DLC_SPACE_AGE=true
- MODS=/factorio/mods
- USERNAME=Khar00f
- TOKEN=9b4cd3f671fd962130f6b494b20239
networks:
physical:
ipv4_address: 192.168.1.23
networks:
physical:
external: true
And here's my /factorio/config/server-settings.json file content:
"visibility":
{
"public": false,
"lan": true
},
Any help would be appreciated,
I just got into factorio and I wanted to host my own docker server, surprisingly not much on that topic.
Sorry if this is the wrong section, not sure if it went under Multiplayer or Technical Support, seemed more fitting here.
So I tried following the steps outlined on factoriotools/factorio-docker
After a bit fiddling, I'm almost there, I'm at the point where I'm getting this error in the logs but I can't figure out why.
This is the error I'm getting and the server to keep trying to restart
"2.340 Error CommandLineMultiplayer.cpp:355: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check data/server-settings.example.json for correct format."
Here's my docker-compose.yml file content:
services:
factorio:
image: factoriotools/factorio:latest
restart: unless-stopped
ports:
- "34197:34197/udp"
volumes:
- /home/khar00f/docker/config/factorio/:/factorio
- /home/khar00f/docker/config/factorio/config/:/server-settings.json
environment:
- INSTANCE_NAME="Khar00f_Factorio"
- INSTANCE_DESC="Factorio on Khar00f Server"
# - LOAD_LATEST_SAVE=true
- SAVE_NAME=khar00f_save1
- GENERATE_NEW_SAVE=true
- UPDATE_MODS_ON_START=true
- DLC_SPACE_AGE=true
- MODS=/factorio/mods
- USERNAME=Khar00f
- TOKEN=9b4cd3f671fd962130f6b494b20239
networks:
physical:
ipv4_address: 192.168.1.23
networks:
physical:
external: true
And here's my /factorio/config/server-settings.json file content:
"visibility":
{
"public": false,
"lan": true
},
Any help would be appreciated,