Page 1 of 1

[0.16.16] Linux Headless not working despite appearing to

Posted: Wed Jan 17, 2018 1:45 am
by huntinator7
I'm running a headless 0.16.16 server on an Ubuntu linux server, and it appears for all intents and purposes to be running correctly. I have it installed to /opt/factorio, used a port I know is working with other games, configured the server-settings with my username and token (also tried with password), moved a world zip into a saves folder in the root, and the command line looks like it's working.

Code: Select all

sudo /opt/factorio/bin/x64/factorio /opt/factorio/data/server-settings.json --start-server-load-latest

   0.000 2018-01-16 18:37:33; Factorio 0.16.16 (build 34924, linux64, headless)
   0.058 Operating system: Linux (Ubuntu 16.04)
   0.058 Program arguments: "/opt/factorio/bin/x64/factorio" "/opt/factorio/data/server-settings.json" "--start-server-load-latest"
   0.058 Read data path: /opt/factorio/data
   0.058 Write data path: /opt/factorio [390648/465305MB]
   0.058 Binaries path: /opt/factorio/bin
   0.081 System info: [CPU: Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz, 16 cores, RAM: 22081MB]
   0.082 Running in headless mode
   0.086 Loading mod core 0.0.0 (data.lua)
   0.101 Loading mod base 0.16.16 (data.lua)
   0.273 Loading mod base 0.16.16 (data-updates.lua)
   0.337 Checksum for core: 2242385247
   0.337 Checksum of base: 354110265
   0.511 Info PlayerData.cpp:65: Local player-data.json available, timestamp 1516152338
   0.511 Info PlayerData.cpp:72: Cloud player-data.json unavailable
   0.526 Custom inputs active: 0
   0.526 Factorio initialised
   0.526 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   0.526 Info ServerMultiplayerManager.cpp:696: mapTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   0.526 Info ServerMultiplayerManager.cpp:696: mapTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   0.526 Loading map /opt/factorio/saves/moosen.zip: 7406168 bytes.
   0.541 Loading Level.dat: 17614825 bytes.
   0.547 Info Scenario.cpp:135: Map version 0.16.16-4
   1.172 Loading script.dat: 175 bytes.
   1.175 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 477563344
   1.186 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:3000)
   1.187 Hosting game at 0.0.0.0:3000
   1.187 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2
   1.542 Info HttpSharedState.cpp:127: Status code: 200
   1.542 Info AuthServerConnector.cpp:109: Obtained serverPadlock for serverHash (f8lR3vmhJybL5Yb9JHZQux3Ituyoy1DF) from the auth server.
   1.542 Info ServerMultiplayerManager.cpp:696: mapTick(3641839) changing state from(CreatingGame) to(InGame)
But when trying to connect directly on the same version, it shows the "Couldn't establish network communication" notice, and the server does not appear on the server list. Is there a step I missed, or does the output show anything that is going wrong? I can provide the server-settings.json or more detailed instructions of what I did if that would help. Thanks

Re: [0.16.16] Linux Headless not working despite appearing to

Posted: Wed Jan 17, 2018 2:21 am
by Loewchen
The interesting part would come right after your log ends, so either the server is just misconfigured, it froze or the rest of the log just got lost. Post your server settings file please, make sure to mask any passwords.

Re: [0.16.16] Linux Headless not working despite appearing to

Posted: Wed Jan 17, 2018 3:31 am
by huntinator7

Code: Select all

  15.584 Received SIGINT, shutting down
  15.584 Info MainLoop.cpp:347: Saving map as /opt/factorio/saves/moosen.zip
  15.772 Info MainLoop.cpp:358: Saving progress: 0.015790%
  16.062 Info MainLoop.cpp:358: Saving progress: 100.000000%
  16.312 Info ServerMultiplayerManager.cpp:117: Disconnecting multiplayer connection.
  16.312 Info ServerMultiplayerManager.cpp:696: mapTick(3641839) changing state from(InGame) to(DisconnectingScheduled)
  16.346 Info ServerMultiplayerManager.cpp:696: mapTick(3641839) changing state from(DisconnectingScheduled) to(Disconnecting)
  16.379 Info ServerMultiplayerManager.cpp:696: mapTick(3641839) changing state from(Disconnecting) to(Disconnected)
  16.379 Info ServerMultiplayerManager.cpp:141: Quitting multiplayer connection.
  16.379 Info ServerMultiplayerManager.cpp:696: mapTick(3641839) changing state from(Disconnected) to(Closed)
  16.513 Info GlobalContext.cpp:671: Waiting for child processes to exit:
  16.563 Info UDPSocket.cpp:206: Closing socket
  16.563 Info UDPSocket.cpp:236: Socket closed
  16.581 Goodbye
That's what it shows when I ctrl-C, no logs when anyone tries to connect. Server settings here https://drive.google.com/open?id=1feain ... Oia-S8-Y91

Re: [0.16.16] Linux Headless not working despite appearing to

Posted: Wed Jan 17, 2018 4:07 am
by Loewchen
Try replacing

Code: Select all

/opt/factorio/data/server-settings.json
with

Code: Select all

--server-settings /opt/factorio/data/server-settings.json

Re: [0.16.16] Linux Headless not working despite appearing to

Posted: Wed Jan 17, 2018 4:24 am
by huntinator7
That worked! Thank you so much for the assistance.