Headless Server Linux Save Game Crashing

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
Hooo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 06, 2016 12:52 pm
Contact:

Headless Server Linux Save Game Crashing

Post by Hooo »

Hi guys - I'm trying to run a headless server via a virtual Linux box and have successfully done so up until I try to save the game / it auto saves. Each time I use the command to save game the server stops responding and doesn't start again until I manually restart via Putty. This is also the same situation when it tries to autosave. Is there something I have to do to stop this happening as it makes the game only playable for 2 minutes until an autosave occurs.

Cheers guys!

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

Re: Headless Server Linux Save Game Crashing

Post by prg »

Post the log.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Hooo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 06, 2016 12:52 pm
Contact:

Re: Headless Server Linux Save Game Crashing

Post by Hooo »

Code: Select all

]0;root@ubuntu-512mb-FactorioHooz: ~root@ubuntu-512mb-FactorioHooz:~# su factorio
]0;factorio@ubuntu-512mb-FactorioHooz: /rootfactorio@ubuntu-512mb-FactorioHooz:/root$ cd /opt/factorio/bin/x64/
]0;factorio@ubuntu-512mb-FactorioHooz: /opt/factorio/bin/x64factorio@ubuntu-512mb-FactorioHooz:/opt/factorio/bin/x64$ ./factorio --start-ser 
ver MultiNew
   0.000 2016-04-06 09:18:06; Factorio 0.12.29 (Build 17931, linux64, headless)
   0.097 Operating system: Linux (Ubuntu 14.04)
   0.097 Program arguments: "./factorio" "--start-server" "MultiNew" 
   0.098 Read data path: /opt/factorio/data
   0.098 Write data path: /opt/factorio
   0.098 Binaries path: /opt/factorio/bin
   0.117 Running in headless mode
   0.121 Loading mod core 0.0.0 (data.lua)
   0.127 Loading mod base 0.12.29 (data.lua)
   0.764 Factorio initialised
   0.766 Info Router.cpp:507: Router peerID(65535) shutting down.
   0.766 Info Router.cpp:534: Router state -> Disconnected
   0.766 Info MultiplayerManager.cpp:912: networkTick(0) mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
   0.766 Info MultiplayerManager.cpp:912: networkTick(0) mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
   0.766 Loading map /opt/factorio/saves/MultiNew.zip
   0.793 Info Scenario.cpp:124: Map version 0.12.29-0
   0.867 Info MultiplayerManager.cpp:281: 0x7f45c0da3380, (nil)
   0.868 Info PosixUDPSocket.cpp:34: Opening socket at port 34197
   0.868 Info Router.cpp:534: Router state -> Connected
   0.868 Info Synchronizer.cpp:54: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
   0.868 Hosting game at port 34197, peerID 0, session magic 1051
   0.868 Info MultiplayerManager.cpp:303: 0x7f45c0da3380, 0x7f45c0da3380
   0.869 Info MultiplayerManager.cpp:912: networkTick(0) mapTick(685) changing state from(CreatingGame) to(InGame)
   0.869 Info NetworkInputHandler.cpp:45: mapTick(685) networkTick(0) initialized NetworkInputHandler local peer(0).
   0.986 Info MultiplayerManager.cpp:1411: Received peer info for peer(0) username(<server>).
   0.986 Info MultiplayerManager.cpp:1059: networkTick(6) mapTick(685) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
   0.986 Info MultiplayerManager.cpp:1059: networkTick(6) mapTick(685) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
  15.185 Connection request from 81.102.159.11:34197
  15.186 Info Router.cpp:599: NetworkTick(858) replying to connectionRequest for address(81.102.159.11:34197).
  15.285 Info Router.cpp:751: networkTick(864) adding peer(1) address(81.102.159.11:34197) sending connectionAccept(true)
  15.286 Info Router.cpp:622: networkTick(864) sending connectionAccept to address(81.102.159.11:34197) connectionRequestID(52227) newPeerID(1)
  15.286 Info Synchronizer.cpp:500: networkTick(864) adding peer(1) success(true).
  15.419 Info MultiplayerManager.cpp:1411: Received peer info for peer(0) username(<server>).
  15.419 Info MultiplayerManager.cpp:1059: networkTick(870) mapTick(693) received stateChanged peerID(0) oldState(InGame) newState(InGame)
  15.419 Info MultiplayerManager.cpp:1411: Received peer info for peer(1) username(Hooo).
  15.419 Info MultiplayerManager.cpp:1059: networkTick(870) mapTick(693) received stateChanged peerID(1) oldState(Ready) newState(Connecting)
  15.420 Info NetworkInputHandler.cpp:503: expectedMapTick(693) adding peer(1).
  15.420 Info MultiplayerManager.cpp:1411: Received peer info for peer(1) username(Hooo).
  15.420 Info MultiplayerManager.cpp:1059: networkTick(870) mapTick(693) received stateChanged peerID(1) oldState(Connecting) newState(Connecting)
  15.420 Info MultiplayerManager.cpp:1059: networkTick(870) mapTick(693) received stateChanged peerID(1) oldState(Connecting) newState(VerifyingConnection)
  15.635 Info MultiplayerManager.cpp:1059: networkTick(883) mapTick(694) received stateChanged peerID(1) oldState(VerifyingConnection) newState(ConnectedWaitingForMap)
  15.636 Info MultiplayerManager.cpp:912: networkTick(883) mapTick(694) changing state from(InGame) to(InGameAligning)
  15.636 Info MultiplayerManager.cpp:1697: networkTick(883) mapTick(694) starting mapAlign
  15.735 Info MultiplayerManager.cpp:1059: networkTick(889) mapTick(694) received stateChanged peerID(0) oldState(InGame) newState(InGameAligning)
  15.736 Info MultiplayerManager.cpp:1631: networkTick(889) mapTick(694) sending mapAlignAction
  15.835 Info MultiplayerManager.cpp:1305: networkTick(895) mapTick(694) received MapAlignAction from peer(0), mapAlignTick(695) appliedTickClosuresCount(0)
  15.836 Info MultiplayerManager.cpp:1713: networkTick(896) mapTick(694) mapAlign finished targetTick(695) updating map and running the tasks ...
  15.836 Info MultiplayerManager.cpp:1585: networkTick(896) mapTick(694) peerID(0) fullStateLog: local state(InGameAligning) local peers(((peerID(0) state(InGameAligning) mapAlignTick(695))
((peerID(1) state(ConnectedWaitingForMap) mapAlignTick(-1))
)
  15.837 Info MultiplayerManager.cpp:1732: maptick(695) crc before applying all ticks: 2117681557
  15.837 Info NetworkInputHandler.cpp:644: applyAllTickClosures: expectedMapTick(695) lastTickApplied(686) referenceMapTick(695) networkTick(896)
  15.837 Info MultiplayerManager.cpp:1740: maptick(695) crc after applying all ticks: 2117681557
  15.838 Info MultiplayerManager.cpp:912: networkTick(896) mapTick(695) changing state from(InGameAligning) to(InGameAligned)
  15.838 Info MultiplayerManager.cpp:912: networkTick(896) mapTick(695) changing state from(InGameAligned) to(InGameSavingMap)
  15.935 Info MultiplayerManager.cpp:912: networkTick(902) mapTick(695) changing state from(InGameSavingMap) to(InGameSendingMap)
  15.937 Info MultiplayerManager.cpp:1176: MapTick(695) Serving map(/opt/factorio/temp/mp-download.zip) for peer(1) size(404324) crc(1230502390)
  15.952 Info MultiplayerManager.cpp:1059: networkTick(902) mapTick(695) received stateChanged peerID(0) oldState(InGameAligning) newState(InGameAligned)
  15.952 Info MultiplayerManager.cpp:1059: networkTick(902) mapTick(695) received stateChanged peerID(0) oldState(InGameAligned) newState(InGameSavingMap)
  16.052 Info MultiplayerManager.cpp:1059: networkTick(908) mapTick(695) received stateChanged peerID(0) oldState(InGameSavingMap) newState(InGameSendingMap)
  16.152 Info MultiplayerManager.cpp:1059: networkTick(914) mapTick(695) received stateChanged peerID(1) oldState(ConnectedWaitingForMap) newState(ConnectedDownloadingMap)
  16.385 Info MultiplayerManager.cpp:1059: networkTick(928) mapTick(695) received stateChanged peerID(1) oldState(ConnectedDownloadingMap) newState(ConnectedLoadingMap)
  16.385 Canceling serving for peer 1
  16.386 Info MultiplayerManager.cpp:912: networkTick(928) mapTick(695) changing state from(InGameSendingMap) to(InGameWaitingForOthers)
  16.452 Info MultiplayerManager.cpp:1059: networkTick(932) mapTick(695) received stateChanged peerID(1) oldState(ConnectedLoadingMap) newState(InGameWaitingForOthers)
  16.485 Info MultiplayerManager.cpp:1059: networkTick(934) mapTick(695) received stateChanged peerID(0) oldState(InGameSendingMap) newState(InGameWaitingForOthers)
  16.486 Info MultiplayerManager.cpp:1257: networkTick(934) mapTick(695) stopping mapAlign
  16.486 Info MultiplayerManager.cpp:912: networkTick(934) mapTick(695) changing state from(InGameWaitingForOthers) to(InGame)
  16.486 Info MultiplayerManager.cpp:1585: networkTick(934) mapTick(695) peerID(0) fullStateLog: local state(InGame) local peers(((peerID(0) state(InGameWaitingForOthers) mapAlignTick(-1))
((peerID(1) state(InGameWaitingForOthers) mapAlignTick(-1))
)
  16.585 Info MultiplayerManager.cpp:1059: networkTick(940) mapTick(701) received stateChanged peerID(0) oldState(InGameWaitingForOthers) newState(InGame)
  16.586 Info MultiplayerManager.cpp:1059: networkTick(940) mapTick(701) received stateChanged peerID(1) oldState(InGameWaitingForOthers) newState(InGame)
  16.619 Info NetworkInputHandler.cpp:582: assigning playerIndex(0) to peer(1)
  16.619 Info GameActionHandler.cpp:1945: MapTick(704) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect)
  49.084 Error Util.cpp:58: Attempting to create notice box in headless mode
  49.183 Error Util.cpp:58: Permission denied
]0;factorio@ubuntu-512mb-FactorioHooz: /opt/factorio/bin/x64factorio@ubuntu-512mb-FactorioHooz:/opt/factorio/bin/x64$ exit
exit
]0;root@ubuntu-512mb-FactorioHooz: ~root@ubuntu-512mb-FactorioHooz:~# exit
logout
Hope this is what you need :)

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

Re: Headless Server Linux Save Game Crashing

Post by prg »

Make sure the user running Factorio has write permission to wherever you're trying to write the save game.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Headless Server Linux Save Game Crashing

Post by daniel34 »

Hooo wrote:

Code: Select all

49.084 Error Util.cpp:58: Attempting to create notice box in headless mode
49.183 Error Util.cpp:58: Permission denied
This might help you, as it was the same error: [Solved] Linux Server error after a few minutes
quick links: log file | graphical issues | wiki

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

Re: Headless Server Linux Save Game Crashing

Post by prg »

Making all of /opt user-writable is maybe not the best solution. You could simply change the write-data path to somewhere in the user's home directory.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Hooo
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 06, 2016 12:52 pm
Contact:

Re: Headless Server Linux Save Game Crashing

Post by Hooo »

daniel34 wrote:
Hooo wrote:

Code: Select all

49.084 Error Util.cpp:58: Attempting to create notice box in headless mode
49.183 Error Util.cpp:58: Permission denied
This might help you, as it was the same error: [Solved] Linux Server error after a few minutes
Hi, that did help! I can now save the game using the command in game, however the game doesn't auto save without me doing so on the client side. Is there a special way I should be closing Putty, as right now I'm simply clicking the X. Thanks again!

Post Reply

Return to “Technical Help”