[1.1.104] Update failed: changelog-switch.txt has unexpected content

This subforum contains all the issues which we already resolved.
Post Reply
Xoriun
Long Handed Inserter
Long Handed Inserter
Posts: 66
Joined: Wed Apr 01, 2020 11:31 am
Contact:

[1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by Xoriun »

I tried to update from 1.1.104 for 1.1.106 but got the message
Update failed: Checking update packages failed: File D:/Factorio/Factorio normal/data/changelog-switch.txt has unexpected content

Restarting the game doesn't change this.

I added the logs of both game sessions and the mentioned file.
Attachments
changelog-switch.txt
(7.36 KiB) Downloaded 20 times
factorio-previous.log
(41.35 KiB) Downloaded 12 times
factorio-current.log
(37.51 KiB) Downloaded 13 times

Loewchen
Global Moderator
Global Moderator
Posts: 8321
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: [1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by Loewchen »

The file is missing the two latest entries, but chances are other files are incomplete or missing as well.
You could download the zip install and replace your file with that one.

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2250
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by boskid »

This is suspicious, i managed to reproduce that exact issue by using standalone 1.1.100 that was updated using built in updater to 1.1.104, and at that point when i enabled experimental updates it failed to update to 1.1.106. By using fresh, standalone 1.1.104, enabling experimental updates it correctly updates to 1.1.106.

User avatar
Sanqui
Factorio Staff
Factorio Staff
Posts: 268
Joined: Mon May 07, 2018 7:22 pm
Contact:

Re: [1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by Sanqui »

This should be fixed, the issue was that when I was making a set of "fat" update packages that were supposed to bring parity to all files to fix all of the updating trouble in the past, I seem to have thought that changelog-switch.txt is not included in the regular version. I have corrected this.
ovo

f1rewall
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 19, 2024 4:48 pm
Contact:

Re: [1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by f1rewall »

Sanqui wrote:
Wed Mar 27, 2024 6:03 pm
This should be fixed, the issue was that when I was making a set of "fat" update packages that were supposed to bring parity to all files to fix all of the updating trouble in the past, I seem to have thought that changelog-switch.txt is not included in the regular version. I have corrected this.
Can you confirm this should be fixed? I just tried updating today from 106 to 107 and getting the same error:
Error Util.cpp:86: File /opt/factorio/data/changelog-switch.txt has unexpected content

User avatar
Sanqui
Factorio Staff
Factorio Staff
Posts: 268
Joined: Mon May 07, 2018 7:22 pm
Contact:

Re: [1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by Sanqui »

f1rewall wrote:
Fri Apr 19, 2024 4:57 pm
Can you confirm this should be fixed? I just tried updating today from 106 to 107 and getting the same error:
Error Util.cpp:86: File /opt/factorio/data/changelog-switch.txt has unexpected content
This is the headless version, correct? It should work now. Sorry for the trouble.
ovo

f1rewall
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Apr 19, 2024 4:48 pm
Contact:

Re: [1.1.104] Update failed: changelog-switch.txt has unexpected content

Post by f1rewall »

Sanqui wrote:
Sat Apr 20, 2024 11:25 am
f1rewall wrote:
Fri Apr 19, 2024 4:57 pm
Can you confirm this should be fixed? I just tried updating today from 106 to 107 and getting the same error:
Error Util.cpp:86: File /opt/factorio/data/changelog-switch.txt has unexpected content
This is the headless version, correct? It should work now. Sorry for the trouble.
Just tried again this morning and it still had an error, regarding a comma in the .json file. I was able to manually remove the comma's it was complaining about and got the update to work. Sharing the error snippet, but thank you for getting this done!!


Local player-data.json available, timestamp 1713803483\n 0.594 Info PlayerData.cpp:83: Cloud player-data.json unavailable\n 0.595 Factorio initialised\n 0.595 Info Updater.cpp:280: Applying update /tmp/core-linux_headless64-1.1.106-1.1.107-update-fix2.zip\n 0.596 Error Util.cpp:86: Error opening update package: JSON parser error in package metadata: Invalid comma before \'}\' at /tmp/core-linux_headless64-1.1.106-1.1.107-update-fix2.zip/info.json:29\n 0.625 Goodbye\n'

Post Reply

Return to “Resolved Problems and Bugs”