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,
Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check data/se
Re: Server Error: Hosting multiplayer game failed: Value must be a dictionary in property tree at ROOT, please check dat
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.
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.
-
- 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
Don't share your user token. You probably want to invalidate that one.