Page 1 of 1

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

Posted: Wed Mar 27, 2024 9:58 am
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.

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

Posted: Wed Mar 27, 2024 10:54 am
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.

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

Posted: Wed Mar 27, 2024 4:26 pm
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.

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

Posted: Wed Mar 27, 2024 6:03 pm
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.

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

Posted: Fri Apr 19, 2024 4:57 pm
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

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

Posted: Sat Apr 20, 2024 11:25 am
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.

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

Posted: Mon Apr 22, 2024 5:30 pm
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'