Headless Linux server crashes

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.
Post Reply
Kiterosma
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 10, 2016 3:50 am
Contact:

Headless Linux server crashes

Post by Kiterosma »

I have set up a multiplayer server according to the instructions on this wiki page: https://wiki.factorio.com/index.php?title=Multiplayer. When I start the server, people can connect and play for about an hour, sometimes up to 3 hours. Then, the server mysteriously stops running. When I ssh into the server, I can see there are no factorio processes running after it crashes. Here is the log:

Code: Select all

 0.606 Info NetworkInputHandler.cpp:45: mapTick(1324801) networkTick(0) initialized NetworkInputHandler local peer(0).
   0.723 Info MultiplayerManager.cpp:1411: Received peer info for peer(0) username(<server>).
   0.724 Info MultiplayerManager.cpp:1059: networkTick(6) mapTick(1324801) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   0.724 Info MultiplayerManager.cpp:1059: networkTick(6) mapTick(1324801) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
  16.639 Connection request from 107.195.5.100:34197
  16.640 Info Router.cpp:599: NetworkTick(961) replying to connectionRequest for address(107.195.5.100:34197).
  16.739 Info Router.cpp:751: networkTick(967) adding peer(1) address(107.195.5.100:34197) sending connectionAccept(true)
  16.740 Info Router.cpp:622: networkTick(967) sending connectionAccept to address(107.195.5.100:34197) connectionRequestID(55812) newPeerID(1)
  16.740 Info Synchronizer.cpp:500: networkTick(967) adding peer(1) success(true).
  17.006 Info MultiplayerManager.cpp:1411: Received peer info for peer(0) username(<server>).
  17.006 Info MultiplayerManager.cpp:1059: networkTick(973) mapTick(1324815) received stateChanged peerID(0) oldState(InGame) newState(InGame)
  17.006 Info MultiplayerManager.cpp:1411: Received peer info for peer(1) username(Colipiko).
  17.006 Info MultiplayerManager.cpp:1059: networkTick(973) mapTick(1324815) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  17.006 Info NetworkInputHandler.cpp:503: expectedMapTick(1324815) adding peer(1).
  17.006 Info MultiplayerManager.cpp:1411: Received peer info for peer(1) username(Colipiko).
  17.006 Info MultiplayerManager.cpp:1059: networkTick(973) mapTick(1324815) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  17.006 Info MultiplayerManager.cpp:1059: networkTick(973) mapTick(1324815) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  17.223 Info MultiplayerManager.cpp:1059: networkTick(986) mapTick(1324816) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  17.223 Info MultiplayerManager.cpp:912: networkTick(986) mapTick(1324816) changing state from(InGame) to(InGameAligning)
  17.223 Info MultiplayerManager.cpp:1697: networkTick(986) mapTick(1324816) starting mapAlign
  17.323 Info MultiplayerManager.cpp:1059: networkTick(992) mapTick(1324816) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  17.323 Info MultiplayerManager.cpp:1631: networkTick(992) mapTick(1324816) sending mapAlignAction
  17.423 Info MultiplayerManager.cpp:1305: networkTick(998) mapTick(1324816) received MapAlignAction from peer(0), mapAlignTick(1324817) appliedTickClosuresCount(0)
  17.423 Info MultiplayerManager.cpp:1713: networkTick(999) mapTick(1324816) mapAlign finished targetTick(1324817) updating map and running the tasks ...
  17.423 Info MultiplayerManager.cpp:1585: networkTick(999) mapTick(1324816) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(1324817))
((peerID(1) state(ConnectedWaitingForMap) mapAlignTick(-1))
)
  17.424 Info MultiplayerManager.cpp:1732: maptick(1324817) crc before applying all ticks: -1789716853
  17.424 Info NetworkInputHandler.cpp:644: applyAllTickClosures: expectedMapTick(1324817) lastTickApplied(1324808) referenceMapTick(1324817) networkTick(999)
  17.424 Info MultiplayerManager.cpp:1740: maptick(1324817) crc after applying all ticks: -1789716853
  17.424 Info MultiplayerManager.cpp:912: networkTick(999) mapTick(1324817) changing state from(InGameAligning) to(InGameAligned)
  17.424 Info MultiplayerManager.cpp:912: networkTick(999) mapTick(1324817) changing state from(InGameAligned) to(InGameSavingMap)
  17.539 Info MultiplayerManager.cpp:1059: networkTick(1005) mapTick(1324817) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  17.540 Info MultiplayerManager.cpp:1059: networkTick(1005) mapTick(1324817) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  17.806 Info MultiplayerManager.cpp:912: networkTick(1022) mapTick(1324817) changing state from(InGameSavingMap) to(InGameSendingMap)
  17.821 Info MultiplayerManager.cpp:1176: MapTick(1324817) Serving map(/opt/factorio/temp/mp-download.zip) for peer(1) size(4467443) crc(-1358547280)
  17.923 Info MultiplayerManager.cpp:1059: networkTick(1028) mapTick(1324817) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  18.023 Info MultiplayerManager.cpp:1059: networkTick(1034) mapTick(1324817) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  22.789 Info MultiplayerManager.cpp:1059: networkTick(1320) mapTick(1324817) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  22.789 Canceling serving for peer 1
  22.789 Info MultiplayerManager.cpp:912: networkTick(1320) mapTick(1324817) changing state from(InGameSendingMap) to(InGameWaitingForOthers)
  22.889 Info MultiplayerManager.cpp:1059: networkTick(1326) mapTick(1324817) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  23.122 Info MultiplayerManager.cpp:1059: networkTick(1340) mapTick(1324817) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(InGameWaitingForOthers)
  23.123 Info MultiplayerManager.cpp:1257: networkTick(1340) mapTick(1324817) stopping mapAlign
  23.123 Info MultiplayerManager.cpp:912: networkTick(1340) mapTick(1324817) changing state from(InGameWaitingForOthers) to(InGame)
  23.123 Info MultiplayerManager.cpp:1585: networkTick(1340) mapTick(1324817) peerID(0) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  23.222 Info MultiplayerManager.cpp:1059: networkTick(1346) mapTick(1324823) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  23.223 Info MultiplayerManager.cpp:1059: networkTick(1346) mapTick(1324823) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  23.256 Info NetworkInputHandler.cpp:582: assigning playerIndex(2) to peer(1)
  23.256 Info GameActionHandler.cpp:1945: MapTick(1324826) processed PlayerJoinGame peerID(1) playerIndex(2) mode(connect)
1847.100 Info Synchronizer.cpp:444: NetworkTick(110514) peer(1) drop detection state(100/600).
1867.182 Info Synchronizer.cpp:444: NetworkTick(111586) peer(1) drop detection state(100/600).
The server is running on Ubuntu 14.04. I'm not starting the server with any fancy scripts, just running /opt/factorio/bin/x64/factorio --start-server <save name>. Also, here's the memory usage in MB, if that's relevant.

Code: Select all

             total       used       free     shared    buffers     cached
Mem:           992        921         70          0        125        353
-/+ buffers/cache:        442        550
Swap:            0          0          0
Any ideas? It would be cool to get this working so I could have a reliable server that I don't have to keep restarting.

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Headless Linux server crashes

Post by prg »

There doesn't seem to be any mention of a crash in that log. Is there maybe something about the Factorio process getting OOM killed in dmesg?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Kiterosma
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 10, 2016 3:50 am
Contact:

Re: Headless Linux server crashes

Post by Kiterosma »

prg wrote:There doesn't seem to be any mention of a crash in that log. Is there maybe something about the Factorio process getting OOM killed in dmesg?
It doesn't look like the OOM killer was invoked at at all, looking at the output of dmesg.

Kiterosma
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 10, 2016 3:50 am
Contact:

Re: Headless Linux server crashes

Post by Kiterosma »

After restarting the OS I don't seem to be having these problems anymore... Oh well :)

Post Reply

Return to “Technical Help”