Do_fetch for linux_toradex failing for Yocto

Hi @nmohan86,

Our network operations team made some changes in our artifactory instance related to file sizes and such. I don’t understand why it worked for me and not you but hopefully the new settings will make it more reliable. Can you try the wget command again and let me know?

Drew

Seems to be working now.

Excellent. Thanks for confirming.

Hi Drew,

I know this post is very old but I think that my issue is related and I’m suspecting that the problem could be on your side.

I’m trying to build a project from scratch using this setup:
$ repo init -u https://git.toradex.com/toradex-manifest.git -b dunfell-5.6.0 -m tdxref/default.xml
but the do_fetch operation of linux-toradex recipe fails when it tries to uncompress the downloaded file.

I tried to download it manually using the command used by bitbaket and it is downloaded correctly (apparently):

 wget -t 2 -T 30 --passive-ftp --no-check-certificate -P . 'https://artifacts.toradex.com/artifactory/tdxref-torizoncore-sources-frankfurt/5/git2_git.toradex.com.linux-toradex.git.tar.gz'
--2022-05-16 14:46:50--  https://artifacts.toradex.com/artifactory/tdxref-torizoncore-sources-frankfurt/5/git2_git.toradex.com.linux-toradex.git.tar.gz
Resolving artifacts.toradex.com (artifacts.toradex.com)... 3.125.132.142
Connecting to artifacts.toradex.com (artifacts.toradex.com)|3.125.132.142|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2739786137 (2,6G) [application/x-gzip]
Saving to: ‘./git2_git.toradex.com.linux-toradex.git.tar.gz’

git2_git.toradex.com.linux-toradex.git.tar.gz         79%[============================================================================================>                         ]   2,02G  6,58MB/s    in 5m 58s  

2022-05-16 14:52:50 (5,78 MB/s) - Connection closed at byte 2168470750. Retrying.

--2022-05-16 14:52:51--  (try: 2)  https://artifacts.toradex.com/artifactory/tdxref-torizoncore-sources-frankfurt/5/git2_git.toradex.com.linux-toradex.git.tar.gz
Connecting to artifacts.toradex.com (artifacts.toradex.com)|3.125.132.142|:443... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 2739786137 (2,6G), 571315387 (545M) remaining [application/x-gzip]
Saving to: ‘./git2_git.toradex.com.linux-toradex.git.tar.gz’

git2_git.toradex.com.linux-toradex.git.tar.gz        100%[+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++========================>]   2,55G  5,36MB/s    in 1m 46s  

2022-05-16 14:54:38 (5,13 MB/s) - ‘./git2_git.toradex.com.linux-toradex.git.tar.gz’ saved [2739786137/2739786137]

But then, I received the same error notified by bitbaket log:

tar -xzf git2_git.toradex.com.linux-toradex.git.tar.gz 

gzip: stdin: invalid compressed data--crc error
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Note:
As you can see, wget use a second retry to download the file. I don’t think this could be a problem.

I can fix the issue commenting the line (as you suggested):

INHERIT += "toradex-mirrors"

Question: do you know if there is an issue on your server similar to the commented time ago?

Yes, there was an issue with our caching server that has been fixed. Please try again.

Drew

Hi Drew. Thanks for your quickly reply.

I can confirm that the issue was fixed. I can fetch it without problem now.

Cheers.