Page 1 of 1

File /info.json not found"

Posted: Sun Oct 22, 2017 8:15 am
by jiynn
Everytime I try to launch my headless server (ubuntu) with the following commands, I get the error "Error ServerMultiplayerManager.cpp:94: MultiplayerManager failed: "File /info.json not found""...

Code: Select all

systemctl daemon-reload
systemctl start factorio
After running "systemctl status factorio.service" I get the following readout:

Code: Select all

:/opt/factorio/saves# systemctl status factorio.service
● factorio.service - Factorio Headless Server
   Loaded: loaded (/etc/systemd/system/factorio.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-10-22 07:59:50 UTC; 10s ago
  Process: 2534 ExecStart=/opt/factorio/bin/x64/factorio --start-server-load-latest /opt/factorio/saves/3rd.zip --server-settings /opt/factorio/data/server-settings.json (code=exited, status=1/FAILURE)
 Main PID: 2534 (code=exited, status=1/FAILURE)
      CPU: 610ms

Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.132 Loading map /
Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.132 Error ServerMultiplayerManager.cpp:94: MultiplayerManager failed: "File /info.json not found"
Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.132 Info ServerMultiplayerManager.cpp:671: mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)
Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.134 Info ServerMultiplayerManager.cpp:140: Quitting multiplayer connection.
Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.134 Info ServerMultiplayerManager.cpp:671: mapTick(-1) changing state from(InitializationFailed) to(Closed)
Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.147 Info UDPSocket.cpp:206: Closing socket
Oct 22 07:59:50 Factorio_Serv factorio[2534]:    1.148 Goodbye
Oct 22 07:59:50 Factorio_Serv systemd[1]: factorio.service: Main process exited, code=exited, status=1/FAILURE
Oct 22 07:59:50 Factorio_Serv systemd[1]: factorio.service: Unit entered failed state.
Oct 22 07:59:50 Factorio_Serv systemd[1]: factorio.service: Failed with result 'exit-code'.

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 8:24 am
by Loewchen
info.json is a file inside the .zip save file. Either the latest save is corrupted or you have a zip file in the folder that is not an actual factorio save file.

Edit:
Not sure, but

Code: Select all

--start-server-load-latest /opt/factorio/saves/3rd.zip
does not make sense to me, either you want the latest save to be loaded or you want a specific one?!

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 8:26 am
by jiynn
I found the file in multiple locations (not zipped) however I'm not sure where it's supposed to be, or what file references it.


Also, this is a fresh vanilla server, first time trying to run it.

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 8:37 am
by jiynn
Loewchen wrote:info.json is a file inside the .zip save file. Either the latest save is corrupted or you have a zip file in the folder that is not an actual factorio save file.

Edit:
Not sure, but

Code: Select all

--start-server-load-latest /opt/factorio/saves/3rd.zip
does not make sense to me, either you want the latest save to be loaded or you want a specific one?!

Followed a walk through, was mentioned to put that in there to name the save/always load latest... how should that line be phrased to start a new server where the save will be named "3rd"?

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 8:47 am
by Loewchen
jiynn wrote:Followed a walk through, was mentioned to put that in there to name the save/always load latest... how should that line be phrased?
I have not looked at server setups for a long time so I might be wrong but I would expect either:

Code: Select all

--start-server ./saves/SaveFileName.zip
or

Code: Select all

--start-server-load-latest
Do you have a save file already or do you want the server to create it on start?

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 8:49 am
by jiynn
Loewchen wrote:
jiynn wrote:Followed a walk through, was mentioned to put that in there to name the save/always load latest... how should that line be phrased?
I have not looked at server setups for a long time so I might be wrong but I would expect either:

Code: Select all

--start-server ./saves/SaveFileName.zip
or

Code: Select all

--start-server-load-latest
Do you have a save file already or do you want the server to create it on start?

Would like the server to create "3rd.zip" for a save file on start

Code: Select all

ExecStart=/opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/3rd.zip  --server-settings /opt/factorio/data/server-settings.json
I attempted with this line, and the output was:

Code: Select all

 MultiplayerManager failed: "File /opt/factorio/saves/3rd.zip does not exist."

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 9:06 am
by Loewchen
For this you need to tell the server to create the file and reference map-settings and map-gen-settings. Not sure which walk through you looked up, but I found the wiki explains this quite well: https://wiki.factorio.com/Multiplayer#D ... ess_server.

Re: File /info.json not found"

Posted: Sun Oct 22, 2017 9:12 am
by jiynn
Loewchen wrote:For this you need to tell the server to create the file and reference map-settings and map-gen-settings. Not sure which walk through you looked up, but I found the wiki explains this quite well: https://wiki.factorio.com/Multiplayer#D ... ess_server.

The other walkthrough didn't have the create step... thank you very much, it's running now!