[0.15.0] Headless won't start: "Error Util.cpp:58: Invalid value"

This subforum contains all the issues which we already resolved.
jakub
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Apr 04, 2016 1:07 pm
Contact:

[0.15.0] Headless won't start: "Error Util.cpp:58: Invalid value"

Post by jakub »

Hello,
headless version won't boot up. I tried clean download without any settings or configuration on multiple servers. No mods, no config files (example config doesn't help).

Ubuntu 14.04
~/newest/factorio/bin/x64$ ./factorio --start-server test.zip
0.000 2017-04-24 17:28:25; Factorio 0.15.0 (build 29027, linux64, headless)
0.036 Operating system: Linux (Ubuntu 14.04)
0.036 Not rotating logs.
0.036 Program arguments: "./factorio" "--start-server" "test.zip"
0.036 Read data path: /home/factorio/newest/factorio/data
0.036 Write data path: /home/factorio/newest/factorio
0.036 Binaries path: /home/factorio/newest/factorio/bin
0.044 System info: [CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz, 1 core, RAM: 992MB]
0.044 Running in headless mode
0.049 Loading mod core 0.0.0 (data.lua)
0.054 Loading mod base 0.15.0 (data.lua)
0.155 Loading mod base 0.15.0 (data-updates.lua)
0.223 Checksum for core: 3378387764
0.223 Checksum of base: 2731413614
0.353 Info PlayerData.cpp:57: Local player-data.json unavailable
0.354 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.354 Info GlobalContext.cpp:851: Resetting config.
0.355 Custom inputs active: 0
0.355 Factorio initialised
0.356 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
0.356 Info ServerMultiplayerManager.cpp:663: mapTick(-1) changing state from(Ready) to(Closed)
0.364 Goodbye
0.000 Error Util.cpp:58: Invalid value
Version 0.14.23 on same server works. I tried it on instances provided by AWS and scaleway.com

Ubuntu 16.10 has the same issue
~/factorio$ bin/x64/factorio --start-server test.zip
0.000 2017-04-24 17:22:45; Factorio 0.15.0 (build 29027, linux64, headless)
0.131 Operating system: Linux (Ubuntu 16.10)
0.132 Program arguments: "bin/x64/factorio" "--start-server" "test.zip"
0.132 Read data path: /home/factorio/factorio/data
0.132 Write data path: /home/factorio/factorio
0.132 Binaries path: /home/factorio/factorio/bin
0.153 System info: [CPU: Intel(R) Atom(TM) CPU C2750 @ 2.40GHz, 4 cores, RAM: 3951MB]
0.153 Running in headless mode
0.165 Loading mod core 0.0.0 (data.lua)
0.178 Loading mod base 0.15.0 (data.lua)
0.439 Loading mod base 0.15.0 (data-updates.lua)
0.625 Checksum for core: 3378387764
0.625 Checksum of base: 2731413614
1.041 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493054529
1.041 Info PlayerData.cpp:62: Cloud player-data.json unavailable
1.044 Custom inputs active: 0
1.046 Factorio initialised
1.047 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
1.047 Info ServerMultiplayerManager.cpp:663: mapTick(-1) changing state from(Ready) to(Closed)
1.068 Goodbye
0.000 Error Util.cpp:58: Invalid value
pvrs12
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Apr 24, 2017 5:42 pm
Contact:

Re: [0.15.0] Headless won't start

Post by pvrs12 »

I'm receiving the same error on Ubuntu 16.04.2 LTS. Our logs are essentially identical

https://gist.github.com/pvrs12/3a1a0ce0 ... 2a19e8ef35
JoeWhizer
Inserter
Inserter
Posts: 40
Joined: Thu Dec 29, 2016 4:42 pm
Contact:

Re: [0.15.0] Headless won't start

Post by JoeWhizer »

I'm getting the same error:

Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-72-generic x86_64)
~/bin/x64$ ./factorio /home/factorio/config-path.cfg --start-server-load-latest
0.000 2017-04-24 19:42:43; Factorio 0.15.0 (build 29027, linux64, headless)
0.038 Operating system: Linux (Ubuntu 16.04)
0.038 Program arguments: "./factorio" "/home/factorio/config-path.cfg" "--start-server-load-latest"
0.038 Read data path: /home/factorio/data
0.038 Write data path: /home/factorio
0.038 Binaries path: /home/factorio/bin
0.045 System info: [CPU: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz, 4 cores, RAM: 32085MB]
0.045 Running in headless mode
0.049 Loading mod core 0.0.0 (data.lua)
0.053 Loading mod base 0.15.0 (data.lua)
0.124 Loading mod base 0.15.0 (data-updates.lua)
0.175 Checksum for core: 3378387764
0.175 Checksum of base: 2731413614
0.268 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493055671
0.268 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.268 Custom inputs active: 0
0.269 Factorio initialised
0.269 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
0.269 Info ServerMultiplayerManager.cpp:663: mapTick(-1) changing state from(Ready) to(Closed)
0.276 Goodbye
0.000 Error Util.cpp:58: Invalid value
Last edited by JoeWhizer on Mon Apr 24, 2017 5:47 pm, edited 1 time in total.
Vilsol
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Aug 06, 2015 5:27 pm
Contact:

Re: [0.15.0] Headless won't start

Post by Vilsol »

Getting the same error

Code: Select all

0.000 2017-04-24 19:44:50; Factorio 0.15.0 (build 29027, linux64, headless)
   0.052 Operating system: Linux (Ubuntu 15.04)
   0.053 Program arguments: "./bin/x64/factorio" "--start-server-load-latest"
   0.053 Read data path: /root/factorio-0.15/factorio/data
   0.053 Write data path: /root/factorio-0.15/factorio
   0.053 Binaries path: /root/factorio-0.15/factorio/bin
   0.062 System info: [CPU: Intel Core Processor (Haswell, no TSX), 1 core, RAM: 3856MB]
   0.062 Running in headless mode
   0.068 Loading mod core 0.0.0 (data.lua)
   0.074 Loading mod base 0.15.0 (data.lua)
   0.181 Loading mod base 0.15.0 (data-updates.lua)
   0.261 Checksum for core: 3378387764
   0.261 Checksum of base: 2731413614
   0.432 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493055877
   0.432 Info PlayerData.cpp:62: Cloud player-data.json unavailable
   0.434 Custom inputs active: 0
   0.435 Factorio initialised
   0.435 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
   0.435 Info ServerMultiplayerManager.cpp:663: mapTick(-1) changing state from(Ready) to(Closed)
   0.445 Goodbye
   0.000  Error Util.cpp:58: Invalid value
nosammai
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Apr 24, 2017 5:45 pm
Contact:

Re: [0.15.0] Headless won't start

Post by nosammai »

I did an strace of the headless server and it looks like it's giving up after trying to load the server settings json file (which wasn't there by default).

I copied the example settings file from the data directory into the main directory, filled in a few settings, and now the server will start.
JoeWhizer
Inserter
Inserter
Posts: 40
Joined: Thu Dec 29, 2016 4:42 pm
Contact:

Re: [0.15.0] Headless won't start

Post by JoeWhizer »

nosammai wrote:I did an strace of the headless server and it looks like it's giving up after trying to load the server settings json file (which wasn't there by default).

I copied the example settings file from the data directory into the main directory, filled in a few settings, and now the server will start.
Sir, you are my hero! Works now!

Image
jakub
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Apr 04, 2016 1:07 pm
Contact:

Re: [0.15.0] Headless won't start

Post by jakub »

nosammai wrote:I did an strace of the headless server and it looks like it's giving up after trying to load the server settings json file (which wasn't there by default).

I copied the example settings file from the data directory into the main directory, filled in a few settings, and now the server will start.
You're correct. It will boot in case the server-settings.json is present in data folder. I can't be anywhere else.

This will not work

Code: Select all

~/factorio-broken$ bin/x64/factorio --server-settings /home/factorio/factorio-broken/server-settings.json --start-server test2.zip
   0.000 2017-04-24 17:50:42; Factorio 0.15.0 (build 29027, linux64, headless)
   0.131 Operating system: Linux (Ubuntu 16.10)
   0.131 Program arguments: "bin/x64/factorio" "--server-settings" "/home/factorio/factorio-broken/server-settings.json" "--start-server" "test2.zip" 
   0.131 Read data path: /home/factorio/factorio-broken/data
   0.132 Write data path: /home/factorio/factorio-broken
   0.132 Binaries path: /home/factorio/factorio-broken/bin
   0.152 System info: [CPU:         Intel(R) Atom(TM) CPU  C2750  @ 2.40GHz, 4 cores, RAM: 3951MB]
   0.152 Running in headless mode
   0.164 Loading mod core 0.0.0 (data.lua)
   0.177 Loading mod base 0.15.0 (data.lua)
   0.435 Loading mod base 0.15.0 (data-updates.lua)
   0.619 Checksum for core: 3378387764
   0.619 Checksum of base: 2731413614
   1.025 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1493056216
   1.025 Info PlayerData.cpp:62: Cloud player-data.json unavailable
   1.028 Custom inputs active: 0
   1.030 Factorio initialised
   1.031 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
   1.032 Info ServerMultiplayerManager.cpp:663: mapTick(-1) changing state from(Ready) to(Closed)
   1.052 Goodbye
   0.000  Error Util.cpp:58: Invalid value 
When I created data/server-settings.json it didn't help until I specified it.

Code: Select all

~/factorio-broken$ bin/x64/factorio --server-settings data/server-settings.json --start-server test.zip
Summary
Create server-settings.json in folder /data/ and pass it as parameter "--server-settings" when launching server
User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.15.0] Headless won't start: "Error Util.cpp:58: Invalid value"

Post by HanziQ »

Fixed for 0.15.1
pvrs12
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Apr 24, 2017 5:42 pm
Contact:

Re: [0.15.0] Headless won't start: "Error Util.cpp:58: Invalid value"

Post by pvrs12 »

Summary
Create server-settings.json in folder /data/ and pass it as parameter "--server-settings" when launching server
You don't actually need to specify "--server-settings" if you move the server-settings.json to the "root" of the factorio directory.
Post Reply

Return to “Resolved Problems and Bugs”