Page 1 of 1

Transferring saves from a full client to a headless client

Posted: Tue Nov 23, 2021 7:37 am
by De_ViL_kinG
Hey! Interested in the ability to transfer saves. Installed a headless client on Ubuntu.
The server is fully functional on its saves, but crashes with the migrated save. In the log you can see the place where crash.
Mods and version are the same

Sorry for my english

Code: Select all

/opt/factorio/bin/x64/factorio --config /opt/factorio/config/config.ini --port 34197 --start-server-load-latest --server-settings /opt/factorio/data/server-settings.json --server-adminlist /opt/factorio/data/server-adminlist.json 
   0.000 2021-11-22 18:53:44; Factorio 1.1.46 (build 59110, linux64, headless)
   0.117 Operating system: Linux (Ubuntu 20.04)
   0.117 Program arguments: "/opt/factorio/bin/x64/factorio" "--config" "/opt/factorio/config/config.ini" "--port" "34197" "--start-server-load-latest" "--server-settings" "/opt/factorio/data/server-settings.json" "--server-adminlist" "/opt/factorio/data/server-adminlist.json" 
   0.117 Read data path: /opt/factorio/data
   0.117 Write data path: /opt/factorio [23536/50350MB]
   0.117 Binaries path: /opt/factorio/bin
   0.137 System info: [CPU: Intel Xeon Processor (Skylake, IBRS), 2 cores, RAM: 980 MB]
   0.137 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.139 Running in headless mode
   0.285 Loading mod settings miniloader 1.14.6 (settings.lua)
   0.287 Loading mod settings awf-tweaks 1.0.1 (settings.lua)
   0.288 Loading mod settings even-distribution 1.0.10 (settings.lua)
   0.288 Loading mod settings helmod 0.12.5 (settings.lua)
   0.313 Loading mod core 0.0.0 (data.lua)
   0.402 Loading mod base 1.1.46 (data.lua)
   0.936 Loading mod miniloader 1.14.6 (data.lua)
   1.087 Loading mod even-distribution 1.0.10 (data.lua)
   1.268 Loading mod helmod 0.12.5 (data.lua)
   1.486 Loading mod base 1.1.46 (data-updates.lua)
   1.702 Loading mod miniloader 1.14.6 (data-updates.lua)
   1.919 Loading mod awf-tweaks 1.0.1 (data-final-fixes.lua)
   2.148 Checksum for core: 1319320002
   2.148 Checksum of base: 3758905726
   2.148 Checksum of miniloader: 225996712
   2.148 Checksum of awf-tweaks: 2172853644
   2.148 Checksum of even-distribution: 3296431338
   2.148 Checksum of Factorio-Discord-BotIntegration: 0
   2.148 Checksum of helmod: 507418660
   2.679 Prototype list checksum: 4001185811
   2.687 Verbose ModManager.cpp:565: Time to load mods: 2.46443
   2.801 Info PlayerData.cpp:71: Local player-data.json available, timestamp 1637592938
   2.801 Info PlayerData.cpp:78: Cloud player-data.json unavailable
   2.820 Factorio initialised
   2.829 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   2.830 Info ServerMultiplayerManager.cpp:797: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   2.830 Info ServerMultiplayerManager.cpp:797: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   2.834 Loading map /opt/factorio/saves/BACKUP1.zip: 30245874 bytes.
   2.890 Loading level.dat: 97137732 bytes.
   2.937 Info Scenario.cpp:198: Map version 1.1.46-0
Killed

Re: Transferring saves from a full client to a headless client

Posted: Tue Nov 23, 2021 10:22 am
by DarkShadow44
0.137 System info: [CPU: Intel Xeon Processor (Skylake, IBRS), 2 cores, RAM: 980 MB]
...
Killed
I don't see a crash here. I noticed you don't have a lot of RAM though, could you simply be running out of RAM and getting your process killed by the OOM killer?

Re: Transferring saves from a full client to a headless client

Posted: Tue Nov 23, 2021 10:37 am
by De_ViL_kinG
Thanks. Now I will try to increase my memory

Re: Transferring saves from a full client to a headless client

Posted: Tue Nov 23, 2021 11:20 am
by De_ViL_kinG
Indeed, this was exactly the problem.

What are the general system requirements for the server?

Re: Transferring saves from a full client to a headless client

Posted: Tue Nov 23, 2021 12:14 pm
by DarkShadow44
Well, there is the minmal requirements, for the full client though.
There's also a forum thread about headless requirements.
In short, I'd say 2-4GB are good. Also depends on what else runs on your server though. :)
Like with everything factorio, it depends on how big your world/base is. Since you can get *very* big, you might need a lot of RAM.

Re: Transferring saves from a full client to a headless client

Posted: Tue Nov 23, 2021 12:27 pm
by De_ViL_kinG
Thanks for the detailed answer.