SOLVED Update Error: %Packages/base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz has invalid checksum

encbox

Dabbler
Joined
Mar 27, 2017
Messages
25
Hi,

I'm trying to upgrade from TrueNAS 12.0-U4 to 12.0-U5.1. After downloading the above error message is displayed.
What logfiles should I try to retrieve for more information?
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Sounds like a bad download or hiccup on the CDN. If you try it again does it pass now? If its still broken please let us know.
 

encbox

Dabbler
Joined
Mar 27, 2017
Messages
25
I rebooted the server and tried again. It is still broken. The server is behind a sophos xg firewall, but there is no filtering activated and it worked before for other upgrades. Maybe I should try again in a few days.
 

encbox

Dabbler
Joined
Mar 27, 2017
Messages
25
I further investigated this issue.

If I manually download the base-*.tgz on the truenas server to /tmp its length is 803421816 bytes.
root@freenas[/tmp]# wget https://update-master.ixsystems.com...2.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz
--2021-08-31 08:50:46-- https://update-master.ixsystems.com...2.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz
Resolving update-master.ixsystems.com (update-master.ixsystems.com)... 38.126.124.199
Connecting to update-master.ixsystems.com (update-master.ixsystems.com)|38.126.124.199|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://update.freenas.org/TrueNAS/Packages/base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz [following]
--2021-08-31 08:50:46-- https://update.freenas.org/TrueNAS/Packages/base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz
Resolving update.freenas.org (update.freenas.org)... 185.172.148.128, 2a0b:4d07:102::1
Connecting to update.freenas.org (update.freenas.org)|185.172.148.128|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 803421816 (766M) [application/octet-stream]
Saving to: ‘base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz’

base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe3 100%[==========================================================================================================>] 766.20M 4.20MB/s in 2m 49s

2021-08-31 08:53:36 (4.52 MB/s) - ‘base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz’ saved [803421816/803421816]
shasum -256 is d06870da3c4279af4136433aa48065e79aee152b0c1da0551345dc931c48a3e7 which seems to be correct
root@freenas[/tmp]# shasum -a 256 base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz
d06870da3c4279af4136433aa48065e79aee152b0c1da0551345dc931c48a3e7 base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz
According to /var/log/middlewared.log the truenas gui updater only downloads 639172093 bytes for base-os-12.0-U5.1-2c2e088546e3db7e05cbdf3f818fe373.tgz


I am going to keep you updated.
 

Attachments

  • middlewared-log.txt
    218.1 KB · Views: 154

encbox

Dabbler
Joined
Mar 27, 2017
Messages
25
I copied the manually download base*.tgz to /var/db/system/update/ and started the update in webgui. That solved the problem...don't know why it didn't work with the download over webgui.
 
Top