Page 1 of 1

[0.12.30][Linux x64] Does not save on graceful shutdown

Posted: Fri Apr 08, 2016 9:45 pm
by Bisa
gracefully trying to shut down the server (kill -s 2 ${PID}) does not trigger a save

the log does no mention of having trouble saving:

Code: Select all

0.000 2016-04-08 21:14:12; Factorio 0.12.30 (Build 17998, linux64, headless)
   0.000 Operating system: Linux
   0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--config" "/opt/factorio/config/config.ini" "--port" "34197" "--start-server" "factorio-init-save" "--autosave-interval" "10" "--autosave-slots" "360" "--latency-ms" "250" "--disallow-commands" "--peer-to-peer"
   0.000 Read data path: /opt/factorio/data
   0.000 Write data path: /opt/factorio
   0.000 Binaries path: /opt/factorio/bin
   0.009 Running in headless mode
   0.013 Loading mod core 0.0.0 (data.lua)
   0.015 Loading mod base 0.12.30 (data.lua)
   0.068 Checksum for core: 3711505753
   0.068 Checksum for mod base: 2829195351
   0.284 Factorio initialised
   0.285 Info Router.cpp:509: Router peerID(65535) shutting down.
   0.285 Info Router.cpp:536: Router state -> Disconnected
   0.285 Info MultiplayerManager.cpp:913: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
   0.285 Info MultiplayerManager.cpp:913: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
   0.285 Loading map /opt/factorio/saves/factorio-init-save.zip
   0.299 Info Scenario.cpp:124: Map version 0.12.30-0
   1.457 Checksum for script /opt/factorio/temp/currently-playing/control.lua: 393467729
   1.486 Info MultiplayerManager.cpp:282: 0x7f6f56e55f20, (nil)
   1.486 Info PosixUDPSocket.cpp:34: Opening socket at port 34197
   1.487 Info Router.cpp:536: Router state -> Connected
   1.487 Info Synchronizer.cpp:54: NetworkTick(0) initialized Synchronizer local peer(0) latency(15).
   1.487 Hosting game at port 34197, peerID 0, session magic 4072
   1.487 Info MultiplayerManager.cpp:304: 0x7f6f56e55f20, 0x7f6f56e55f20
   1.487 Info MultiplayerManager.cpp:913: networkTick(0) mapTick(14292001) changing state from(CreatingGame) to(InGame)
   1.487 Info NetworkInputHandler.cpp:45: mapTick(14292001) networkTick(0) initialized NetworkInputHandler local peer(0).
   1.754 Info MultiplayerManager.cpp:1433: Received peer info for peer(0) username(<server>).
   1.754 Info MultiplayerManager.cpp:1060: networkTick(15) mapTick(14292001) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   1.754 Info MultiplayerManager.cpp:1060: networkTick(15) mapTick(14292001) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
   9.970 Connection request from 88.206.179.110:34197
   9.970 Info Router.cpp:609: NetworkTick(508) replying to connectionRequest for address(88.206.179.110:34197).
  10.220 Info Router.cpp:761: networkTick(523) adding peer(1) address(88.206.179.110:34197) sending connectionAccept(true)
  10.220 Info Router.cpp:632: networkTick(523) sending connectionAccept to address(88.206.179.110:34197) connectionRequestID(34806) newPeerID(1)
  10.220 Info Synchronizer.cpp:500: networkTick(523) adding peer(1) success(true).
  10.520 Info MultiplayerManager.cpp:1433: Received peer info for peer(0) username(<server>).
  10.520 Info MultiplayerManager.cpp:1060: networkTick(538) mapTick(14292019) received stateChanged peerID(0) oldState(InGame) newState(InGame)
  10.520 Info MultiplayerManager.cpp:1433: Received peer info for peer(1) username(Bisa).

yadda yadda.....

 475.299 Info MultiplayerManager.cpp:913: networkTick(28398) mapTick(14295511) changing state from(InGameAligned) to(InGameWaitingForOthers)
 475.549 Info MultiplayerManager.cpp:1060: networkTick(28413) mapTick(14295511) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameWaitingForOthers)
 475.549 Info MultiplayerManager.cpp:1060: networkTick(28413) mapTick(14295511) received stateChanged peerID(1) oldState(InGameAligned) newState(InGameWaitingForOthers)
 475.549 Info MultiplayerManager.cpp:1259: networkTick(28413) mapTick(14295511) stopping mapAlign
 475.549 Info MultiplayerManager.cpp:1785: performing map align task (RemovePlayerAlignTask)
 475.549 Info MultiplayerManager.cpp:913: networkTick(28413) mapTick(14295511) changing state from(InGameWaitingForOthers) to(Disconnecting)
 475.549 Info MultiplayerManager.cpp:1607: networkTick(28413) mapTick(14295511) peerID(0) fullStateLog: local state(Disconnecting) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
 476.315 Info MultiplayerManager.cpp:913: networkTick(28428) mapTick(14295511) changing state from(Disconnecting) to(QuitScheduled)
 476.315 Info MultiplayerManager.cpp:161: NetworkTick(28428) quitting multiplayer connection.
 476.315 Info MultiplayerManager.cpp:913: networkTick(28428) mapTick(14295511) changing state from(QuitScheduled) to(Disconnected)
 476.315 Warning NetworkInputHandler.cpp:749: mapTick(14295511) networkTick(28428) disconnecting from player but already disconnected.
 476.518 Info Router.cpp:509: Router peerID(0) shutting down.
 476.518 Info PosixUDPSocket.cpp:127: Socket closed
 476.518 Info Router.cpp:536: Router state -> Disconnected
 476.525 Goodbye

starting the server with ".zip" or not has no effect, the save still does not happen but this is confirmed working correctly in 0.12.29

Re: [0.12.30][Linux x64] Does not save on graceful shutdown

Posted: Fri Apr 08, 2016 11:21 pm
by Oxyd
Fixed in 0.12.31.