Skip to contentSkip to conversation

Bitbake does not perform to unpack tarball after second and other downloads for PREMIRRORs and MIRRORS

DISCUSSION [email protected] 4 participants 5 messages Jul 19, 2024 – Jul 25, 2024

lore
Share & tools
lore
#0 lore raw

Hi All.

I've encountered a bug, but I'm unable to report it directly as only registered users can create bug reports on Yocto Project's Bugzilla. Therefore, I'm raising the issue here to see if anyone else has experienced this problem.

The bug pertains to the use of MREMIRROR in a project setup where multiple source code tarballs are linked for a recipe.
Bitbake is designed to download and untar the tarball from the first provided link.
If there's an issue with this tarball—for instance, if the required revision is missing—Bitbake then attempts to download the tarball from the next link. However, it fails to untar this second tarball, leading to subsequent checks being incorrectly performed on outdated data from the first tarball since the untar step is skipped. As a result, even if the second tarball has the correct revision, the checks fail.

This problem can be observed in the fetch log file, where the fetcher uses wget followed by a tar command for the first link. In contrast, for the second link, after wget, it bypasses the tar step and proceeds directly to performing git checks.

Is anyone else facing this issue, or does anyone have insights on a possible workaround or an instruction how to create a bug report?

Thanks, in advance.

DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz'

DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus";  /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz' --progress=dot -v

--2024-07-19 08:45:38-- https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz

Resolving support.garz-fricke.com (support.garz-fricke.com)... 212.53.188.8, 2a00:1f78:cd:6::19e

Connecting to support.garz-fricke.com (support.garz-fricke.com)|212.53.188.8|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 19921396 (19M) [application/x-gzip]

Saving to: ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’

2024-07-19 08:45:39 (27.0 MB/s) - ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’ saved [19921396/19921396]

DEBUG: Running 'export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; tar -xzf /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz' in /usr/src/packages//git2/code.qt.io.qt.qtvirtualkeyboard.git

DEBUG: Running 'export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; git -c core.fsyncobjectfiles=0 branch --contains 7b90415c58dd02c682a9ba317f273d7b3398ff88 --list 5.15.2 2> /dev/null | wc -l' in /usr/src/packages//git2/code.qt.io.qt.qtvirtualkeyboard.git

……

DEBUG: Mirror fetch failure for url https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz (original url: git://code.qt.io/qt/qtvirtualkeyboard.git;name=qtvirtualkeyboard;branch=5.15.2;protocol=git)

DEBUG: Fetcher failure: Unable to find revision 7b90415c58dd02c682a9ba317f273d7b3398ff88 in branch 5.15.2 even from upstream

…..

DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/archive1/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz'

DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/archive1/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz' --progress=dot -v

--2024-07-19 08:45:40-- https://support.garz-fricke.com/mirror/archive1/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz

Resolving support.garz-fricke.com (support.garz-fricke.com)... 212.53.188.8, 2a00:1f78:cd:6::19e

Connecting to support.garz-fricke.com (support.garz-fricke.com)|212.53.188.8|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 20875043 (20M) [application/x-gzip]

Saving to: ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’

2024-07-19 08:45:41 (28.2 MB/s) - ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’ saved [20875043/20875043]

DEBUG: Running 'export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; git -c core.fsyncobjectfiles=0 branch --contains 7b90415c58dd02c682a9ba317f273d7b3398ff88 --list 5.15.2 2> /dev/null | wc -l' in /usr/src/packages//git2/code.qt.io.qt.qtvirtualkeyboard.git

#1 lore raw

We can perhaps handle the issue here if you describe steps to reproduce it locally in a more specific way (e.g. how to make the tarballs, what local.conf settings are needed etc.)

Note that there are PREMIRRORS tests in bitbake/lib/bb/tests/fetch.py , so the most awesome thing to do would be to add a test there that would fail in a way that exposes the issue.

Alex

Quoted 89 lines · andrii.sosiuk via lists.openembedded.org

Hi All.

I've encountered a bug, but I'm unable to report it directly as only registered users can create bug reports on Yocto Project's Bugzilla. Therefore, I'm raising the issue here to see if anyone else has experienced this problem.

The bug pertains to the use of MREMIRROR in a project setup where multiple source code tarballs are linked for a recipe.
Bitbake is designed to download and untar the tarball from the first provided link.
If there's an issue with this tarball—for instance, if the required revision is missing—Bitbake then attempts to download the tarball from the next link. However, it fails to untar this second tarball, leading to subsequent checks being incorrectly performed on outdated data from the first tarball since the untar step is skipped. As a result, even if the second tarball has the correct revision, the checks fail.

This problem can be observed in the fetch log file, where the fetcher uses wget followed by a tar command for the first link. In contrast, for the second link, after wget, it bypasses the tar step and proceeds directly to performing git checks.

Is anyone else facing this issue, or does anyone have insights on a possible workaround or an instruction how to create a bug report?

Thanks, in advance.

DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz'

DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz' --progress=dot -v

--2024-07-19 08:45:38-- https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz

Resolving support.garz-fricke.com (support.garz-fricke.com)... 212.53.188.8, 2a00:1f78:cd:6::19e

Connecting to support.garz-fricke.com (support.garz-fricke.com)|212.53.188.8|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 19921396 (19M) [application/x-gzip]

Saving to: ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’

2024-07-19 08:45:39 (27.0 MB/s) - ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’ saved [19921396/19921396]

DEBUG: Running 'export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; tar -xzf /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz' in /usr/src/packages//git2/code.qt.io.qt.qtvirtualkeyboard.git

DEBUG: Running 'export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; git -c core.fsyncobjectfiles=0 branch --contains 7b90415c58dd02c682a9ba317f273d7b3398ff88 --list 5.15.2 2> /dev/null | wc -l' in /usr/src/packages//git2/code.qt.io.qt.qtvirtualkeyboard.git

……

DEBUG: Mirror fetch failure for url https://support.garz-fricke.com/mirror/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz (original url: git://code.qt.io/qt/qtvirtualkeyboard.git;name=qtvirtualkeyboard;branch=5.15.2;protocol=git)

DEBUG: Fetcher failure: Unable to find revision 7b90415c58dd02c682a9ba317f273d7b3398ff88 in branch 5.15.2 even from upstream

…..

DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/archive1/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz'

DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp -P /usr/src/packages/ 'https://support.garz-fricke.com/mirror/archive1/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz' --progress=dot -v

--2024-07-19 08:45:40-- https://support.garz-fricke.com/mirror/archive1/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz

Resolving support.garz-fricke.com (support.garz-fricke.com)... 212.53.188.8, 2a00:1f78:cd:6::19e

Connecting to support.garz-fricke.com (support.garz-fricke.com)|212.53.188.8|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 20875043 (20M) [application/x-gzip]

Saving to: ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’

2024-07-19 08:45:41 (28.2 MB/s) - ‘/usr/src/packages/git2_code.qt.io.qt.qtvirtualkeyboard.git.tar.gz.tmp’ saved [20875043/20875043]

DEBUG: Running 'export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/58604/bus"; git -c core.fsyncobjectfiles=0 branch --contains 7b90415c58dd02c682a9ba317f273d7b3398ff88 --list 5.15.2 2> /dev/null | wc -l' in /usr/src/packages//git2/code.qt.io.qt.qtvirtualkeyboard.git

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16430): https://lists.openembedded.org/g/bitbake-devel/message/16430
Mute This Topic: https://lists.openembedded.org/mt/107432587/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

Thanks for the reply!
I have analyzed the issue further and created tests in bitbake/lib/bb/tests/fetch.py. The initial version in which I encountered this issue was 1.46.
As the tests showed the issue exist in the 1.46 but the latest version does not have this issue.

I also found the commits that resolve the issue:

* b47ecab3e3aad5c5c376ec023aa82a51aa0f3b86
* 69588e2a5c7c200e47b02b2391498dcb72388bd2

I am unsure if version 1.46 is still supported and whether it makes sense to backport the fix to 1.46.

Best regards,   Andrii

#3 lore raw

Hi Andrii,

Quoted 9 lines · andrii.sosiuk via lists.openembedded.org

You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Thanks for the reply!
I have analyzed the issue further and created tests in bitbake/lib/bb/tests/fetch.py.
The initial version in which I encountered this issue was 1.46.
As the tests showed the issue exist in the 1.46 but the latest version does not have this issue.

I also found the commits that resolve the issue:

* b47ecab3e3aad5c5c376ec023aa82a51aa0f3b86

This one is present in 2.2+.

Quoted 1 line

* 69588e2a5c7c200e47b02b2391498dcb72388bd2

This one in 2.8+.

Considering we still support Kirkstone which is based on 2.0 and that those two patches aren't seemingly backported, it'd make sense to me to backport those iff 1) kirkstone is impacted, 2) those two patches fix the issue on kirkstone.

Quoted 3 lines

I am unsure if version 1.46 is still supported and whether it makes sense to backport the fix to 1.46.

No, not maintained anymore, c.f. https://wiki.yoctoproject.org/wiki/Releases

Cheers,
Quentin

#4 lore raw
In reply to [email protected]
Quoted 10 lines · andrii.sosiuk via lists.openembedded.org

I've encountered a bug, but I'm unable to report it directly as only registered users can create bug reports on Yocto Project's Bugzilla.
Therefore, I'm raising the issue here to see if anyone else has experienced this problem.
The bug pertains to the use of MREMIRROR in a project setup where multiple source code tarballs are linked for a recipe.
Bitbake is designed to download and untar the tarball from the first provided link.
If there's an issue with this tarball—for instance, if the required revision is missing—Bitbake then attempts to download the tarball from the next link. However, it fails to untar this second tarball, leading to subsequent checks being incorrectly performed on outdated data from the first tarball since the untar step is skipped. As a result, even if the second tarball has the correct revision, the checks fail.
This problem can be observed in the fetch log file, where the fetcher uses wget followed by a tar command for the first link.
In contrast, for the second link, after wget, it bypasses the tar step and proceeds directly to performing git checks.
Is anyone else facing this issue, or does anyone have insights on a possible workaround or an instruction how to create a bug report?

Which version of bitbake/release of the project is this?

I can tell from the commandline it isn't master and it would be helpful to know if the issue is present there.

Cheers,

Richard