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

Bugs that are actually features.
adinsx
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Oct 24, 2024 10:39 pm
Contact:

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

Post 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.
Attachments
factorio-current.log
(2.38 KiB) Downloaded 4 times
Techjar
Burner Inserter
Burner Inserter
Posts: 7
Joined: Tue Jan 13, 2015 11:33 pm
Contact:

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

Post 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
adinsx
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Oct 24, 2024 10:39 pm
Contact:

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

Post 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".
Post Reply

Return to “Not a bug”