[Resolved] 14.21 Headless server socket error

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.
aiirzy
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Dec 28, 2016 3:12 pm
Contact:

[Resolved] 14.21 Headless server socket error

Post by aiirzy »

I had multiple instances running and that's why it couldn't launch in that port. Make sure you close down the sever before starting a new one.

Hey guys, I'm running a Ubuntu 16.04 server with headless right now.
When trying to boot up my factorio server but every time I run the start command I get this error.
Also might be worth mentioning that I just switched over to a new host.

[code]air@Air-VPS-2017:/opt/factorio/bin/x64$ ./factorio --start-server-load-latest --server-settings /data/server-settings.json
0.000 2016-12-28 00:02:00; Factorio 0.14.21 (build 25327, linux64, headless)
0.056 Operating system: Linux (Ubuntu 16.04)
0.057 Program arguments: "./factorio" "--start-server-load-latest" "--server-settings" "/data/server-settings.json"
0.057 Read data path: /opt/factorio/data
0.057 Write data path: /opt/factorio
0.057 Binaries path: /opt/factorio/bin
0.067 System info: [CPU: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz, 2 cores, RAM: 5967MB]
0.068 Running in headless mode
0.070 Loading mod core 0.0.0 (data.lua)
0.074 Loading mod base 0.14.21 (data.lua)
0.187 Checksum for core: 1291735968
0.187 Checksum for mod base: 786624017
0.631 Info PlayerData.cpp:57: Local player-data.json unavailable
0.631 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.632 Custom inputs active: 0
0.633 Factorio initialised
0.635 Error Util.cpp:57: Error while reading file /data/server-settings.json: /data/server-settings.json: cannot open file
air@Air-VPS-2017:/opt/factorio/bin/x64$ 0.635 Error Util.cpp:57: Error while reading file /data/server-settings.json: /data/server-settings.json: cannot open file
-bash: 0.635: command not found
air@Air-VPS-2017:/opt/factorio/bin/x64$ ^C
air@Air-VPS-2017:/opt/factorio/bin/x64$ ./factorio --start-server-load-latest --server-settings ./opt/factorio/data/server-settings.json 0.000 2016-12-28 00:03:52; Factorio 0.14.21 (build 25327, linux64, headless)
0.053 Operating system: Linux (Ubuntu 16.04)
0.053 Program arguments: "./factorio" "--start-server-load-latest" "--server-settings" "./opt/factorio/data/server-settings.json"
0.053 Read data path: /opt/factorio/data
0.053 Write data path: /opt/factorio
0.053 Binaries path: /opt/factorio/bin
0.064 System info: [CPU: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz, 2 cores, RAM: 5967MB]
0.064 Running in headless mode
0.066 Loading mod core 0.0.0 (data.lua)
0.071 Loading mod base 0.14.21 (data.lua)
0.176 Checksum for core: 1291735968
0.176 Checksum for mod base: 786624017
0.623 Info PlayerData.cpp:57: Local player-data.json unavailable
0.623 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.624 Custom inputs active: 0
0.625 Factorio initialised
0.625 Error Util.cpp:57: Error while reading file ./opt/factorio/data/server-settings.json: ./opt/factorio/data/server-settings.json: cannot open file
air@Air-VPS-2017:/opt/factorio/bin/x64$ ./factorio --start-server-load-latest --server-settings /opt/factorio/data/server-settings.json
0.000 2016-12-28 00:04:03; Factorio 0.14.21 (build 25327, linux64, headless)
0.053 Operating system: Linux (Ubuntu 16.04)
0.053 Program arguments: "./factorio" "--start-server-load-latest" "--server-settings" "/opt/factorio/data/server-settings.json"
0.053 Read data path: /opt/factorio/data
0.053 Write data path: /opt/factorio
0.053 Binaries path: /opt/factorio/bin
0.064 System info: [CPU: Intel(R) Xeon(R) CPU E5630 @ 2.53GHz, 2 cores, RAM: 5967MB]
0.064 Running in headless mode
0.066 Loading mod core 0.0.0 (data.lua)
0.071 Loading mod base 0.14.21 (data.lua)
0.174 Checksum for core: 1291735968
0.174 Checksum for mod base: 786624017
0.613 Info PlayerData.cpp:57: Local player-data.json unavailable
0.613 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.614 Custom inputs active: 0
0.615 Factorio initialised
0.616 Info ServerSynchronizer.cpp:27: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
0.616 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
0.616 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
0.616 Loading map /opt/factorio/saves/letsdothisrightthistime
0.617 Error FileUtil.cpp:284: Can't remove /opt/factorio/temp/currently-playing: No such file or directory
0.621 Info Scenario.cpp:152: Map version 0.14.21-0
1.765 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 1057114497
1.780 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
1.781 Hosting game at 0.0.0.0:34197
1.781 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-server-padlock
2.360 Info HttpSharedState.cpp:111: Status code: 200
2.360 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (t1KzlUjcpTDhY713r4IzP95laAThPoGG) from the auth server.
2.360 Info ServerMultiplayerManager.cpp:658: mapTick(1721045) changing state from(CreatingGame) to(InGame)
2.360 Info ServerRouter.cpp:604: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
2.444 Info UDPSocket.cpp:39: Opening socket for broadcast
2.598 Info ServerRouter.cpp:497: Own address is 192.34.26.181:34197
2.599 Error ServerMultiplayerManager.cpp:592: Matching server connection failed: Error when creating server game: Missing token.
^C^Z
[1]+ Stopped ./factorio --start-server-load-latest --server-settings /opt/factorio/data/server-settings.json
air@Air-VPS-2017:/opt/factorio/bin/x64$ screen -x fact
There is no screen to be attached matching fact.
air@Air-VPS-2017:/opt/factorio/bin/x64$ screen -S fact
0.628 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1482906710
0.628 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.630 Custom inputs active: 0
0.631 Factorio initialised
0.631 Info ServerSynchronizer.cpp:27: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
0.632 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
0.632 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
0.632 Loading map /opt/factorio/saves/letsdothisrightthistime.zip
0.633 Error FileUtil.cpp:284: Can't remove /opt/factorio/temp/currently-playing: No such file or directory
0.656 Info Scenario.cpp:152: Map version 0.14.21-0
1.695 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 1057114497
1.711 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
1.711 Info UDPSocket.cpp:235: Socket closed
1.711 Error ServerMultiplayerManager.cpp:93: MultiplayerManager failed: multiplayer.address-in-use("0.0.0.0:34197")
1.711 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(CreatingGame) to(InitializationFailed)[/code]

Let me know if you guys have any suggestions or ideas.
Post Reply

Return to “Technical Help”