[Pending] Linux headless server crash on reconnect

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
jdepth
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu May 12, 2016 3:15 am
Contact:

[Pending] Linux headless server crash on reconnect

Post by jdepth »

I'm having the issue where the linux headless server consistently crashes when trying to reconnect after a period of time (~24hrs) where no one has been playing. The server will be running up until the point where someone tries to reconnect and then immediately crashes. I have tried, in the following order within ~10 minutes: starting the server, connecting, disconnecting, reconnecting, and the server does not crash. I have not tried the same test with more than one player. Having more than one player on the server is usually the case and I'm not sure if I've seen this behavior when only one player has ever connected to the instance. I will mess around with it more when I have another friend on and we can try some different cases. For now, here is a log snippet which looks about the same each time this happens. The 'error when writing to file' is always present:

Code: Select all

4153.789 Info MultiplayerManager.cpp:1060: networkTick(248538) mapTick(4072758) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
16923.695 Connection request from <redacted>
16923.695 Info Router.cpp:609: NetworkTick(1014763) replying to connectionRequest for address(<redacted>).
16923.795 Info Router.cpp:761: networkTick(1014769) adding peer(3) address(<redacted>) sending connectionAccept(true)
16923.795 Info Router.cpp:632: networkTick(1014769) sending connectionAccept to address(<redacted>) connectionRequestID(7482) newPeerID(3)
16923.795 Info Synchronizer.cpp:500: networkTick(1014769) adding peer(3) success(true).
16923.995 Info MultiplayerManager.cpp:1433: Received peer info for peer(0) username(<server>).
16923.995 Info MultiplayerManager.cpp:1060: networkTick(1014775) mapTick(4072770) received stateChanged peerID(0) oldState(InGame) newState(InGame)
16923.995 Info MultiplayerManager.cpp:1433: Received peer info for peer(3) username(<redacted>).
16923.995 Info MultiplayerManager.cpp:1060: networkTick(1014775) mapTick(4072770) received stateChanged peerID(3) oldState(Ready) newState(Connecting)
16923.995 Info NetworkInputHandler.cpp:520: expectedMapTick(4072770) adding peer(3).
16923.995 Info MultiplayerManager.cpp:1433: Received peer info for peer(3) username(<redacted>).
16923.995 Info MultiplayerManager.cpp:1060: networkTick(1014775) mapTick(4072770) received stateChanged peerID(3) oldState(Connecting) newState(Connecting)
16923.995 Info MultiplayerManager.cpp:1060: networkTick(1014775) mapTick(4072770) received stateChanged peerID(3) oldState(Connecting) newState(VerifyingConnection)
16924.211 Info MultiplayerManager.cpp:1060: networkTick(1014788) mapTick(4072771) received stateChanged peerID(3) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
16924.211 Info MultiplayerManager.cpp:913: networkTick(1014788) mapTick(4072771) changing state from(InGame) to(InGameAligning)
16924.211 Info MultiplayerManager.cpp:1719: networkTick(1014788) mapTick(4072771) starting mapAlign
16924.311 Info MultiplayerManager.cpp:1060: networkTick(1014794) mapTick(4072771) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
16924.311 Info MultiplayerManager.cpp:1653: networkTick(1014794) mapTick(4072771) sending mapAlignAction
16924.411 Info MultiplayerManager.cpp:1307: networkTick(1014800) mapTick(4072771) received MapAlignAction from peer(0), mapAlignTick(4072772) appliedTickClosuresCount(0)
16924.411 Info MultiplayerManager.cpp:1735: networkTick(1014801) mapTick(4072771) mapAlign finished targetTick(4072772) updating map and running the tasks ...
16924.411 Info MultiplayerManager.cpp:1607: networkTick(1014801) mapTick(4072771) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(4072772))
((peerID(3) state(ConnectedWaitingForMap) mapAlignTick(-1))
)
16924.412 Error Util.cpp:58: Error when writing to file.
16924.412 Warning NetworkInputHandler.cpp:756: mapTick(4072771) networkTick(1014801) disconnecting from player but already disconnected.
16924.464 Info MultiplayerManager.cpp:134: NetworkTick(1014801) disconnecting multiplayer connection.
16924.464 Info NetworkInputHandler.cpp:64: expectedMapTick(4072771) sending PlayerLeaveGame
16924.467 Info MultiplayerManager.cpp:161: NetworkTick(1014801) quitting multiplayer connection.
16924.467 Info MultiplayerManager.cpp:913: networkTick(1014801) mapTick(-1) changing state from(InGameAligning) to(Disconnected)
16924.474 Info Router.cpp:509: Router peerID(0) shutting down.
16924.474 Info PosixUDPSocket.cpp:127: Socket closed
16924.474 Info Router.cpp:536: Router state -> Disconnected
16924.477 Goodbye
I'll update if I find any more details.

Edit: running CentOS 7.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5311
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Linux headless server crash on reconnect

Post by Klonan »

Thanks for the report,

Did you manage to figure out any more specific steps or conditions to reproduce the crash?
Post Reply

Return to “Pending”