4.0.1 to 4.0.5 upgrade fails - Stage 1 unpack failed: tar: corrupted data

I have a brand new Turris Omnia 2020 which came with 4.0.1

I have not manually installed anything but I have enabled the automatic updates.

I get the following emails

Error notifications

Updater failed:
[string “transaction”]:328: [string “backend”]:485: Stage 1 unpack failed: tar: crc error

tar: short read

Error notifications

Updater failed:
[string “transaction”]:328: [string “backend”]:485: Stage 1 unpack failed: tar: corrupted data

tar: short read

Error notifications

Updater failed:
download: Download of https://repo.turris.cz/hbs/omnia/packages/packages/python3-setuptools_40.6.2-1_arm_cortex-a9_vfpv3.ipk failed: Operation timed out after 3009 milliseconds with 0 out of 0 bytes received

I have tried running pkgupdate –stderr-level=DBG but it fails each time.

DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/packages/procps-ng_3.3.11-4_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/core/kmod-usb-serial-wwan_4.14.162-1-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/packages/python3-constantly_15.1.0-3.6-1_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/base/rpcd_2018-11-28-3aa81d0d-2_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/core/libip6tc_1.6.2-3_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/turrispackages/knot-resolver_3.2.1-4_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/core/kmod-tun_4.14.162-1-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/turrispackages/knot-libs_2.7.7-2_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/core/kmod-nf-ipt6_4.14.162-1-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/core/kmod-ath_4.14.162+2017-11-01-10-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/packages/luasocket_3.0-rc1-20130909-4_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/turrispackages/lighttpd-mod-fastcgi_1.4.54-1_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/packages/python3-requests_2.21.0-3.6-3_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/core/kmod-pppoe_4.14.162-1-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/packages/python3-base_3.6.10-3.6-1_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/core/libip6tc_1.6.2-3_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 2 (https://repo.turris.cz/hbs/omnia/packages/packages/python3-light_3.6.10-3.6-1_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/core/kmod-usb-serial-wwan_4.14.162-1-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/packages/luasocket_3.0-rc1-20130909-4_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/base/openssl-util_1.0.2u-1_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/turrispackages/python3-zmq_18.0.2-3.6-1_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/turrispackages/knot-libs_2.7.7-2_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:53 (download_check_info):Download failed, trying again 3 (https://repo.turris.cz/hbs/omnia/packages/turrispackages/rainbow-omnia_3.1-0_arm_cortex-a9_vfpv3.ipk): Operation timed out after 0 milliseconds with 0 out of 0 bytes received
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/core/kmod-pppoe_4.14.162-1-0a66bb0316b4402bf65555c64ceed313_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/turrispackages/rainbow-omnia_3.1-0_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/base/openssl-util_1.0.2u-1_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/download.c:49 (download_check_info):Download succesfull (https://repo.turris.cz/hbs/omnia/packages/packages/python3-light_3.6.10-3.6-1_arm_cortex-a9_vfpv3.ipk)
DEBUG:src/lib/util.c:105 (exec_hook):File not executed, not executable: .keep
INFO:src/lib/logging.c:204 (log_subproc_open):Executing preupdate hook: 05_schnapps.sh
DEBUG:src/lib/subprocess.c:107 (subprocloc):Running subprocess: //etc/updater/hook_preupdate/05_schnapps.sh
Snapshot number 19 created
DEBUG:src/lib/journal.c:125 (journal_open):Opening journal
DEBUG:transaction.lua:281 (step):Performing step 2
INFO:transaction.lua:72 (fun):Unpacking download packages
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /usr/share/updater/download/ca-certificates-20190110-1.36.ipk -C /tmp/updater-DehOeC 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-DehOeC/control.tar.gz -C /usr/share/updater/unpacked//updater-aNpKDn/control 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-DehOeC/data.tar.gz -C /usr/share/updater/unpacked//updater-aNpKDn/data 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: rm -rf /tmp/updater-DehOeC 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find ! -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /usr/share/updater/download/libopenssl-1.0.2u-1.12.ipk -C /tmp/updater-KdkHlb 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-KdkHlb/control.tar.gz -C /usr/share/updater/unpacked//updater-jENHGc/control 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-KdkHlb/data.tar.gz -C /usr/share/updater/unpacked//updater-jENHGc/data 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: rm -rf /tmp/updater-KdkHlb 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find ! -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /usr/share/updater/download/updater-ng-63.1.2-1.20.ipk -C /tmp/updater-acaMMB 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-acaMMB/control.tar.gz -C /usr/share/updater/unpacked//updater-EEAgLA/control 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-acaMMB/data.tar.gz -C /usr/share/updater/unpacked//updater-EEAgLA/data 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: rm -rf /tmp/updater-acaMMB 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find ! -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /usr/share/updater/download/python3-base-3.6.10-3.6-1.16.ipk -C /tmp/updater-aDdJCO 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-aDdJCO/control.tar.gz -C /usr/share/updater/unpacked//updater-aNELof/control 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /tmp/updater-aDdJCO/data.tar.gz -C /usr/share/updater/unpacked//updater-aNELof/data 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: rm -rf /tmp/updater-aDdJCO 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find ! -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: find -type d -print0 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: tar -xzf /usr/share/updater/download/python3-light-3.6.10-3.6-1.16.ipk -C /tmp/updater-PLOFdP 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: rm -rf /tmp/updater-PLOFdP 
DEBUG:src/lib/interpreter.c:323 (lua_run_generic):Util command: rm -rf /usr/share/updater/unpacked//updater-AAdKje 
DEBUG:src/lib/journal.c:286 (lua_finish):Closing journal
line not found
line not found
line not found
line not found
line not found
line not found
DIE:src/pkgupdate/main.c:204 (main):
[string "transaction"]:328: [string "backend"]:485: Stage 1 unpack failed: tar: corrupted data
tar: short read

Aborted
root@turris:~# 

The problem was mentioned here by a Mox owner with no responses:

Does anyone know what the issue might be?

If you can use quick and easy soluition, choose reset mode number four.

https://docs.turris.cz/hw/omnia/rescue_modes/

Seems that files are being corrupted during download. Debugging could be an extensive effort, on a first glance it could be some sort of connectivity issue somewhere.

Might be less time consuming to try what @viktor suggested instead.

Everytime is best find the cause, but if you just bought the device, it’s better if it’s working.

Again hunting for my posts?

Thanks for your responses.

I will do the manual flashing procedure at some point but I would like to know more about the issue first.

I have filed a bug for this here: https://gitlab.labs.nic.cz/turris/updater/updater/issues/297