Page 1 of 1

[0.16.22] headless server crash

Posted: Mon Feb 12, 2018 4:21 am
by Chriz
Hi idk why but it crash when i play the map in singleplayer all is fine.

Code: Select all

  37.799 Info ServerMultiplayerManager.cpp:696: mapTick(15620577) changing state from(InGame) to(InGameSavingMap)
  37.849 Info ServerMultiplayerManager.cpp:792: mapTick(15620577) received stateChanged peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
  39.742 Info ServerMultiplayerManager.cpp:852: MapTick(15620577) Serving map(/home/factorio/server/temp/mp-save-0.zip) for peer(1) size(19106185) crc(2402755493)
  39.742 Info ServerMultiplayerManager.cpp:696: mapTick(15620577) changing state from(InGameSavingMap) to(InGame)
  39.820 Info ServerMultiplayerManager.cpp:792: mapTick(15620583) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  75.175 Info ServerMultiplayerManager.cpp:792: mapTick(15622704) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  86.974 Info ServerMultiplayerManager.cpp:792: mapTick(15623412) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(TryingToCatchUp)
  96.842 Info AppManager.cpp:260: Saving to _autosave4 (blocking).
  98.759 Info AppManagerStates.cpp:1593: Saving finished
 529.112 Info ServerMultiplayerManager.cpp:792: mapTick(15649819) received stateChanged peerID(1) oldState(TryingToCatchUp) newState(WaitingForCommandToStartSendingTickClosures)
 529.112 Info GameActionHandler.cpp:3400: MapTick (15649819) processed PlayerJoinGame peerID(1) playerIndex(1) mode(connect ) 
 529.187 Info ServerMultiplayerManager.cpp:792: mapTick(15649824) received stateChanged peerID(1) oldState(WaitingForCommandToStartSendingTickClosures) newState(InGame)
 698.800 Info AppManager.cpp:260: Saving to _autosave5 (blocking).

Re: [0.16.22] headless server crash

Posted: Mon Feb 12, 2018 1:28 pm
by Oxyd
Hi. There is no crash in either of your logs. Can you describe exactly what happens?

Re: [0.16.22] headless server crash

Posted: Mon Feb 12, 2018 1:44 pm
by Chriz
yes i see there is no crash in the logs but it does crash. I just connect try 300 sek to keep up than im connected and the server trys to save and just close

[EDIT: I will update now to 0.16.23 and update the mods maybe that will help]

Re: [0.16.22] headless server crash

Posted: Mon Feb 12, 2018 2:03 pm
by Oxyd
That could very well be caused by many other things, like your network connection dropping. Is the server still running after you get disconnected?

Re: [0.16.22] headless server crash

Posted: Wed Feb 14, 2018 7:06 pm
by Chriz
yes its still running since i upgraded stuff, but i noticed when i start the server over cron sometimes it doesnt start.

Re: [0.16.22] headless server crash

Posted: Sat Feb 17, 2018 7:38 pm
by Chriz
it still happening :/ no crash in the logs server shuts down itself

Re: [0.16.22] headless server crash

Posted: Mon Feb 19, 2018 3:11 am
by Chriz
So i figured out when i start the server over the cron manager in webmin at boot up it will start run and than just stops (at random times) without a crash or any sign that it got closed. When i start the server with:

screen /home/factorio/server/bin/x64/factorio --start-server-load-latest --server-settings "/home/factorio/server/data/server-settings.json"

with putty

it works without any problems.

So now is the question how can i get the factorio server to auto start when my server reboots?

Re: [0.16.22] headless server crash

Posted: Tue Feb 20, 2018 5:19 pm
by Chriz
Problem solved can be closed.

i will avoid cron jobs for factorio.