Page 1 of 1

[2.0.10] --apply-update flag expects a .zip, but headless server updates are now distributed as a .tar.xz

Posted: Thu Oct 24, 2024 10:46 pm
by adinsx
--apply-update flag expects a .zip, but headless server updates are now distributed as a .tar.xz

Relevant snippet from my journalctl:

Code: Select all

Oct 24 15:28:39 Unit-02 factorio[53313]:    0.382 Info Updater.cpp:286: Applying update /tmp/factorio_update.tar.xz
Oct 24 15:28:39 Unit-02 factorio[53313]:    0.383 Error Util.cpp:81: Error opening update package: Opening zip /tmp/factorio_update.tar.xz failed: I/O error
Oct 24 15:28:39 Unit-02 factorio[53313]:    0.402 Goodbye
And the relevant bit from my factorio unit file:

Code: Select all

ExecStartPre=curl -L --output %T/factorio_update.tar.xz 'https://factorio.com/get-download/stable/headless/linux64'
ExecStartPre=/home/adinsx/factorio-headless/bin/x64/factorio --apply-update %T/factorio_update.tar.xz
Edit: Was trying to update from 2.0.9 to 2.0.10

2nd edit: Added logfile, but this is on 2.0.10 as I already updated manually by the time I made this post. The error is the exact same, however.

3rd edit: updated thread title to include most recent game version the bug exists on.

Re: [2.0.10] --apply-update flag expects a .zip, but headless server updates are now distributed as a .tar.xz

Posted: Fri Oct 25, 2024 3:00 am
by Techjar
--apply-update isn't meant to be used with the full game (or headless) package, it's for applying partial update packages downloaded through the updater.factorio.com interface.

Here's an example of how to get one: https://updater.factorio.com/updater/ge ... iVersion=2

Re: [2.0.10] --apply-update flag expects a .zip, but headless server updates are now distributed as a .tar.xz

Posted: Fri Oct 25, 2024 5:30 am
by adinsx
Oh thanks, didn't realize there were partial update packages. This can be closed as not-a-bug, or maybe the "bug" is "clarify in the --help output what --apply-update does".