Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check data/se

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Khar00f
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Oct 26, 2024 8:26 pm
Contact:

Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check data/se

Post by Khar00f »

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,
Khar00f
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Oct 26, 2024 8:26 pm
Contact:

Re: Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check dat

Post by Khar00f »

If it helps anyone,

Here's the solution

Basically my mistake was a typo in the server-settings.json

I deleted the json, and removed the volume definition for the server-settings, left only the /factorio entry

Game then created the full config file

Just need to enter it as sudo to make the config changes I wanted.
justint223@gmail.com
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Oct 28, 2024 11:23 pm
Contact:

Re: Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check dat

Post by justint223@gmail.com »

Don't share your user token. You probably want to invalidate that one.
Post Reply

Return to “Technical Help”