Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building docker image fails #2

Open
johngigantic opened this issue Jan 10, 2024 · 3 comments
Open

Building docker image fails #2

johngigantic opened this issue Jan 10, 2024 · 3 comments

Comments

@johngigantic
Copy link

The first instruction in the README, building the docker image, fails, specifically on the dpkg --add-architecture i386 instruction. There are a few 404 errors when downloading certain portions of the i386 packages.

$ docker image build -t elk-audio-os-builder .
[+] Building 11.1s (5/15)                                                                                                    docker:desktop-linux
 => [internal] load .dockerignore                                                                                                            0.0s
 => => transferring context: 2B                                                                                                              0.0s
 => [internal] load build definition from dockerfile                                                                                         0.0s
 => => transferring dockerfile: 2.56kB                                                                                                       0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                              0.5s
 => CACHED [ 1/12] FROM docker.io/library/ubuntu:20.04@sha256:f2034e7195f61334e6caff6ecf2e965f92d11e888309065da85ff50c617732b8               0.0s
 => ERROR [ 2/12] RUN  apt-get update &&  dpkg --add-architecture i386 &&  apt-get update -q &&  apt-get -qy upgrade                        10.6s
------                                                                                                                                            
 > [ 2/12] RUN  apt-get update &&  dpkg --add-architecture i386 &&  apt-get update -q &&  apt-get -qy upgrade:                                    
0.123 + apt-get update                                                                                                                            
0.443 Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]                                                                         
1.274 Get:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]                                                                 
1.471 Get:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [108 kB]                                                               
1.668 Get:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
1.866 Get:5 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages [1234 kB]
2.269 Get:6 http://ports.ubuntu.com/ubuntu-ports focal/restricted arm64 Packages [1317 B]
2.269 Get:7 http://ports.ubuntu.com/ubuntu-ports focal/multiverse arm64 Packages [139 kB]
2.280 Get:8 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages [11.1 MB]
2.965 Get:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse arm64 Packages [9709 B]
2.965 Get:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted arm64 Packages [50.2 kB]
2.966 Get:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages [2850 kB]
3.400 Get:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe arm64 Packages [1342 kB]
4.575 Get:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe arm64 Packages [27.8 kB]
4.577 Get:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main arm64 Packages [54.8 kB]
4.583 Get:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [3615 B]
4.583 Get:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [2463 kB]
4.813 Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [1046 kB]
4.892 Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [49.8 kB]
4.955 Fetched 21.0 MB in 5s (4358 kB/s)
4.955 Reading package lists...
5.457 + dpkg --add-architecture i386
5.460 + apt-get update -q
5.815 Hit:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease
5.946 Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
6.094 Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
6.242 Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
6.392 Ign:5 http://ports.ubuntu.com/ubuntu-ports focal/universe i386 Packages
6.392 Ign:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse i386 Packages
6.392 Ign:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted i386 Packages
6.392 Ign:8 http://ports.ubuntu.com/ubuntu-ports focal/main i386 Packages
6.393 Ign:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse i386 Packages
6.393 Ign:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main i386 Packages
6.394 Ign:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted i386 Packages
6.692 Ign:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe i386 Packages
6.849 Ign:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
6.849 Ign:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main i386 Packages
6.849 Ign:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse i386 Packages
6.849 Ign:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main i386 Packages
6.849 Ign:17 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted i386 Packages
6.849 Ign:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe i386 Packages
6.849 Ign:5 http://ports.ubuntu.com/ubuntu-ports focal/universe i386 Packages
6.849 Ign:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse i386 Packages
6.850 Ign:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted i386 Packages
6.850 Ign:8 http://ports.ubuntu.com/ubuntu-ports focal/main i386 Packages
7.153 Ign:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse i386 Packages
7.304 Ign:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main i386 Packages
7.304 Ign:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted i386 Packages
7.304 Ign:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe i386 Packages
7.304 Ign:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
7.304 Ign:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main i386 Packages
7.311 Ign:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse i386 Packages
7.618 Ign:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main i386 Packages
7.618 Ign:17 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted i386 Packages
7.618 Ign:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe i386 Packages
7.618 Ign:5 http://ports.ubuntu.com/ubuntu-ports focal/universe i386 Packages
7.618 Ign:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse i386 Packages
7.618 Ign:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted i386 Packages
7.618 Ign:8 http://ports.ubuntu.com/ubuntu-ports focal/main i386 Packages
7.618 Ign:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse i386 Packages
7.618 Ign:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main i386 Packages
7.621 Ign:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted i386 Packages
7.772 Ign:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe i386 Packages
8.075 Ign:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
8.230 Ign:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main i386 Packages
8.230 Ign:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse i386 Packages
8.230 Ign:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main i386 Packages
8.230 Ign:17 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted i386 Packages
8.232 Ign:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe i386 Packages
8.232 Ign:5 http://ports.ubuntu.com/ubuntu-ports focal/universe i386 Packages
8.232 Ign:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse i386 Packages
8.232 Ign:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted i386 Packages
8.232 Ign:8 http://ports.ubuntu.com/ubuntu-ports focal/main i386 Packages
8.234 Ign:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse i386 Packages
8.535 Ign:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main i386 Packages
8.695 Ign:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted i386 Packages
8.695 Ign:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe i386 Packages
8.695 Ign:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
8.695 Ign:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main i386 Packages
8.695 Ign:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse i386 Packages
8.695 Ign:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main i386 Packages
8.695 Ign:17 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted i386 Packages
8.695 Ign:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe i386 Packages
8.695 Ign:5 http://ports.ubuntu.com/ubuntu-ports focal/universe i386 Packages
8.695 Ign:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse i386 Packages
8.998 Ign:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted i386 Packages
9.150 Ign:8 http://ports.ubuntu.com/ubuntu-ports focal/main i386 Packages
9.150 Ign:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse i386 Packages
9.155 Ign:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main i386 Packages
9.155 Ign:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted i386 Packages
9.155 Ign:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe i386 Packages
9.155 Ign:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
9.155 Ign:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main i386 Packages
9.155 Ign:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse i386 Packages
9.155 Ign:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main i386 Packages
9.159 Ign:17 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted i386 Packages
9.460 Ign:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe i386 Packages
9.616 Err:5 http://ports.ubuntu.com/ubuntu-ports focal/universe i386 Packages
9.616   404  Not Found [IP: 185.125.190.36 80]
9.616 Ign:6 http://ports.ubuntu.com/ubuntu-ports focal/multiverse i386 Packages
9.617 Ign:7 http://ports.ubuntu.com/ubuntu-ports focal/restricted i386 Packages
9.617 Ign:8 http://ports.ubuntu.com/ubuntu-ports focal/main i386 Packages
9.617 Err:9 http://ports.ubuntu.com/ubuntu-ports focal-updates/multiverse i386 Packages
9.617   404  Not Found [IP: 185.125.190.36 80]
9.617 Ign:10 http://ports.ubuntu.com/ubuntu-ports focal-updates/main i386 Packages
9.617 Ign:11 http://ports.ubuntu.com/ubuntu-ports focal-updates/restricted i386 Packages
9.617 Ign:12 http://ports.ubuntu.com/ubuntu-ports focal-updates/universe i386 Packages
9.617 Err:13 http://ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
9.617   404  Not Found [IP: 185.125.190.36 80]
9.617 Ign:14 http://ports.ubuntu.com/ubuntu-ports focal-backports/main i386 Packages
9.919 Err:15 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse i386 Packages
9.919   404  Not Found [IP: 185.125.190.36 80]
10.07 Ign:16 http://ports.ubuntu.com/ubuntu-ports focal-security/main i386 Packages
10.07 Ign:17 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted i386 Packages
10.07 Ign:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe i386 Packages
10.08 Reading package lists...
10.59 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal/universe/binary-i386/Packages  404  Not Found [IP: 185.125.190.36 80]
10.59 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/multiverse/binary-i386/Packages  404  Not Found [IP: 185.125.190.36 80]
10.59 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/universe/binary-i386/Packages  404  Not Found [IP: 185.125.190.36 80]
10.59 E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/multiverse/binary-i386/Packages  404  Not Found [IP: 185.125.190.36 80]
10.59 E: Some index files failed to download. They have been ignored, or old ones used instead.
@johngigantic
Copy link
Author

I believe this is because ubuntu has deprecated some packages due to security issues? Not exactly sure, but I've found some users with similar bug reports:

https://askubuntu.com/questions/1411792/cant-install-i386-packages-on-ubuntu-server-20-04
https://askubuntu.com/questions/1350169/cant-install-i386-packages
https://askubuntu.com/questions/1316990/apt-get-update-i386-packages-404-not-found

Although none of these have clear resolutions for this case

@idranoels
Copy link

idranoels commented Feb 9, 2024

Hi there
I'm experiencing build issues too:

yoctouser@0f95aa1d6e98:~/elk-audio-kas-configs$ run-kas build raspberrypi4/raspberrypi4-elk-audio-os-v1.0.0.yml
2024-02-09 15:21:11 - INFO - run-kas 4.0 started
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/raspberrypi4$ git rev-parse --show-toplevel
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/raspberrypi4$ git rev-parse --show-toplevel
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git remote set-url origin https://github.com/elk-audio/meta-elk.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git remote set-url origin https://github.com/sbabic/meta-swupdate
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git remote set-url origin https://git.openembedded.org/meta-openembedded
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git remote set-url origin https://git.yoctoproject.org/git/poky
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git remote set-url origin https://github.com/elk-audio/meta-elkpi.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git remote set-url origin https://github.com/elk-audio/meta-raspberrypi-elk.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git remote set-url origin https://github.com/agherzan/meta-raspberrypi.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git cat-file -t 617023192ad018277fb9d91e4323ac129fa00367
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git cat-file -t 58878bb980877f51b607d71c3648bd479d68e2a5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git cat-file -t df452d9d98659b49888fa8a5428a0a8bd3e3aaec
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git cat-file -t 75239ddd8d67c00139c6e88c1c2a790b471b12c5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git cat-file -t a262b989b6325250c41073fa7113df1b7364a2d5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git cat-file -t 10ca6cae920cd879fe173ca9f05156f1c9f83521
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git cat-file -t 2a06e4e84b04fc900f3a4524581548c9b5e57362
2024-02-09 15:21:11 - INFO - Repository meta-elk already contains 617023192ad018277fb9d91e4323ac129fa00367 as commit
2024-02-09 15:21:11 - INFO - Repository meta-swupdate already contains 58878bb980877f51b607d71c3648bd479d68e2a5 as commit
2024-02-09 15:21:11 - INFO - Repository meta-openembedded already contains df452d9d98659b49888fa8a5428a0a8bd3e3aaec as commit
2024-02-09 15:21:11 - INFO - Repository poky already contains 75239ddd8d67c00139c6e88c1c2a790b471b12c5 as commit
2024-02-09 15:21:11 - INFO - Repository meta-elkpi already contains a262b989b6325250c41073fa7113df1b7364a2d5 as commit
2024-02-09 15:21:11 - INFO - Repository meta-raspberrypi-elk already contains 10ca6cae920cd879fe173ca9f05156f1c9f83521 as commit
2024-02-09 15:21:11 - INFO - Repository meta-raspberrypi already contains 2a06e4e84b04fc900f3a4524581548c9b5e57362 as commit
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git status -s
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git checkout -q 617023192ad018277fb9d91e4323ac129fa00367
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git status -s
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git checkout -q 58878bb980877f51b607d71c3648bd479d68e2a5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git status -s
2024-02-09 15:21:12 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git checkout -q df452d9d98659b49888fa8a5428a0a8bd3e3aaec
2024-02-09 15:21:12 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git checkout -q 75239ddd8d67c00139c6e88c1c2a790b471b12c5
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git checkout -q a262b989b6325250c41073fa7113df1b7364a2d5
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git checkout -q 10ca6cae920cd879fe173ca9f05156f1c9f83521
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git checkout -q 2a06e4e84b04fc900f3a4524581548c9b5e57362
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ /tmp/tmpk_ra6tud/get_bb_env /home/yoctouser/elk-audio-kas-configs/build
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/build$ /home/yoctouser/elk-audio-kas-configs/layers/meta-poky/bitbake/bin/bitbake -c build elkpi-audio-os-image
Loading cache: 100% |########################################################################################################################################| Time: 0:00:02
Loaded 3985 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-elk-linux"
MACHINE = "raspberrypi4-64"
DISTRO = "elk"
DISTRO_VERSION = "1.0.0"
TUNE_FEATURES = "aarch64 armv8a crc cortexa72"
TARGET_FPU = ""
meta-elk = "HEAD:617023192ad018277fb9d91e4323ac129fa00367"
meta-elkpi = "HEAD:a262b989b6325250c41073fa7113df1b7364a2d5"
meta-filesystems
meta-networking
meta-oe
meta-python = "HEAD:df452d9d98659b49888fa8a5428a0a8bd3e3aaec"
meta
meta-poky
meta-yocto-bsp = "HEAD:75239ddd8d67c00139c6e88c1c2a790b471b12c5"
meta-raspberrypi = "HEAD:2a06e4e84b04fc900f3a4524581548c9b5e57362"
meta-raspberrypi-elk = "HEAD:10ca6cae920cd879fe173ca9f05156f1c9f83521"
meta-swupdate = "HEAD:58878bb980877f51b607d71c3648bd479d68e2a5"

Initialising tasks: 100% |###################################################################################################################################| Time: 0:00:09
Sstate summary: Wanted 2199 Local 0 Mirrors 0 Missed 2199 Current 414 (0% match, 15% complete)
NOTE: Executing Tasks
WARNING: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Failed to fetch URL git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https, attempting MIRRORS if available
ERROR: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/yoctouser/elk-audio-kas-configs/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/yoctouser/elk-audio-kas-configs/layers/meta-poky/scripts:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/bin/aarch64-elk-linux:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot/usr/bin/crossscripts:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/sbin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/bin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/sbin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/bin:/home/yoctouser/elk-audio-kas-configs/layers/meta-poky/bitbake/bin:/home/yoctouser/elk-audio-kas-configs/build/tmp/hosttools"; export HOME="/tmp/tmpzdldufhx"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror https://github.com/raspberrypi/linux.git /home/yoctouser/elk-audio-kas-configs/build/../downloads/git2/github.com.raspberrypi.linux.git --progress failed with exit code 128, no output
ERROR: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https')
ERROR: Logfile of failure stored in: /home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/temp/log.do_fetch.676432
ERROR: Task (/home/yoctouser/elk-audio-kas-configs/build/../layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1349 tasks of which 1240 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/yoctouser/elk-audio-kas-configs/build/../layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch
yoctouser@0f95aa1d6e98:~/elk-audio-kas-configs$ run-kas build raspberrypi4/raspberrypi4-elk-audio-os-v1.0.0.yml
2024-02-09 15:21:11 - INFO - run-kas 4.0 started
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/raspberrypi4$ git rev-parse --show-toplevel
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/raspberrypi4$ git rev-parse --show-toplevel
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git remote set-url origin https://github.com/elk-audio/meta-elk.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git remote set-url origin https://github.com/sbabic/meta-swupdate
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git remote set-url origin https://git.openembedded.org/meta-openembedded
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git remote set-url origin https://git.yoctoproject.org/git/poky
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git remote set-url origin https://github.com/elk-audio/meta-elkpi.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git remote set-url origin https://github.com/elk-audio/meta-raspberrypi-elk.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git remote set-url origin https://github.com/agherzan/meta-raspberrypi.git
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git cat-file -t 617023192ad018277fb9d91e4323ac129fa00367
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git cat-file -t 58878bb980877f51b607d71c3648bd479d68e2a5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git cat-file -t df452d9d98659b49888fa8a5428a0a8bd3e3aaec
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git cat-file -t 75239ddd8d67c00139c6e88c1c2a790b471b12c5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git cat-file -t a262b989b6325250c41073fa7113df1b7364a2d5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git cat-file -t 10ca6cae920cd879fe173ca9f05156f1c9f83521
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git cat-file -t 2a06e4e84b04fc900f3a4524581548c9b5e57362
2024-02-09 15:21:11 - INFO - Repository meta-elk already contains 617023192ad018277fb9d91e4323ac129fa00367 as commit
2024-02-09 15:21:11 - INFO - Repository meta-swupdate already contains 58878bb980877f51b607d71c3648bd479d68e2a5 as commit
2024-02-09 15:21:11 - INFO - Repository meta-openembedded already contains df452d9d98659b49888fa8a5428a0a8bd3e3aaec as commit
2024-02-09 15:21:11 - INFO - Repository poky already contains 75239ddd8d67c00139c6e88c1c2a790b471b12c5 as commit
2024-02-09 15:21:11 - INFO - Repository meta-elkpi already contains a262b989b6325250c41073fa7113df1b7364a2d5 as commit
2024-02-09 15:21:11 - INFO - Repository meta-raspberrypi-elk already contains 10ca6cae920cd879fe173ca9f05156f1c9f83521 as commit
2024-02-09 15:21:11 - INFO - Repository meta-raspberrypi already contains 2a06e4e84b04fc900f3a4524581548c9b5e57362 as commit
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git status -s
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elk$ git checkout -q 617023192ad018277fb9d91e4323ac129fa00367
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git status -s
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-swupdate$ git checkout -q 58878bb980877f51b607d71c3648bd479d68e2a5
2024-02-09 15:21:11 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git status -s
2024-02-09 15:21:12 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-openembedded$ git checkout -q df452d9d98659b49888fa8a5428a0a8bd3e3aaec
2024-02-09 15:21:12 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ git checkout -q 75239ddd8d67c00139c6e88c1c2a790b471b12c5
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-elkpi$ git checkout -q a262b989b6325250c41073fa7113df1b7364a2d5
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi-elk$ git checkout -q 10ca6cae920cd879fe173ca9f05156f1c9f83521
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git status -s
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-raspberrypi$ git checkout -q 2a06e4e84b04fc900f3a4524581548c9b5e57362
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/layers/meta-poky$ /tmp/tmpk_ra6tud/get_bb_env /home/yoctouser/elk-audio-kas-configs/build
2024-02-09 15:21:13 - INFO - /home/yoctouser/elk-audio-kas-configs/build$ /home/yoctouser/elk-audio-kas-configs/layers/meta-poky/bitbake/bin/bitbake -c build elkpi-audio-os-image
Loading cache: 100% |########################################################################################################################################| Time: 0:00:02
Loaded 3985 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-elk-linux"
MACHINE = "raspberrypi4-64"
DISTRO = "elk"
DISTRO_VERSION = "1.0.0"
TUNE_FEATURES = "aarch64 armv8a crc cortexa72"
TARGET_FPU = ""
meta-elk = "HEAD:617023192ad018277fb9d91e4323ac129fa00367"
meta-elkpi = "HEAD:a262b989b6325250c41073fa7113df1b7364a2d5"
meta-filesystems
meta-networking
meta-oe
meta-python = "HEAD:df452d9d98659b49888fa8a5428a0a8bd3e3aaec"
meta
meta-poky
meta-yocto-bsp = "HEAD:75239ddd8d67c00139c6e88c1c2a790b471b12c5"
meta-raspberrypi = "HEAD:2a06e4e84b04fc900f3a4524581548c9b5e57362"
meta-raspberrypi-elk = "HEAD:10ca6cae920cd879fe173ca9f05156f1c9f83521"
meta-swupdate = "HEAD:58878bb980877f51b607d71c3648bd479d68e2a5"

Initialising tasks: 100% |###################################################################################################################################| Time: 0:00:09
Sstate summary: Wanted 2199 Local 0 Mirrors 0 Missed 2199 Current 414 (0% match, 15% complete)
NOTE: Executing Tasks
WARNING: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Failed to fetch URL git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https, attempting MIRRORS if available
ERROR: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/yoctouser/elk-audio-kas-configs/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/yoctouser/elk-audio-kas-configs/layers/meta-poky/scripts:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/bin/aarch64-elk-linux:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot/usr/bin/crossscripts:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/sbin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/bin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/sbin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/bin:/home/yoctouser/elk-audio-kas-configs/layers/meta-poky/bitbake/bin:/home/yoctouser/elk-audio-kas-configs/build/tmp/hosttools"; export HOME="/tmp/tmpzdldufhx"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror https://github.com/raspberrypi/linux.git /home/yoctouser/elk-audio-kas-configs/build/../downloads/git2/github.com.raspberrypi.linux.git --progress failed with exit code 128, no output
ERROR: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https')
ERROR: Logfile of failure stored in: /home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/temp/log.do_fetch.676432
ERROR: Task (/home/yoctouser/elk-audio-kas-configs/build/../layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1349 tasks of which 1240 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/yoctouser/elk-audio-kas-configs/build/../layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch

What should I do to fix it?
It seems that it's the specific OS version (linux-raspberrypi-1_5.15.78) the problem, but how could I fix?
Those release numbers are only in the tmp folders not in config files, thus I guess I'm missing something.
Thank you in advance

@idranoels
Copy link

I'm continuing to debug this error, it seems to me that it's caused by the unreachability of the standard git port (9418) by github,com.
After some attempts (I'm not easy with docker, bitbake and so on) I'm attempting to fix it with a network workaround:
1 - map github.com on 127.0.0.1 using /etc/hosts
2 - map local ports (9418, 443) to github.com IP address using socat:
socat TCP-LISTEN:9418,fork TCP:140.82.121.3:443 &
socat TCP-LISTEN:443,fork TCP:140.82.121.3:443 &
3 - build the image:
run-kas build raspberrypi4/raspberrypi4-elk-audio-os-v1.0.0.yml -c populate_sdk

the task seemed to work fine until 100% (more than 1 hour of fetch), but suddenly restarted and raised the same error:

WARNING: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Failed to fetch URL git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https, attempting MIRRORS if available
ERROR: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/yoctouser/elk-audio-kas-configs/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/yoctouser/elk-audio-kas-configs/layers/meta-poky/scripts:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/bin/aarch64-elk-linux:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot/usr/bin/crossscripts:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/sbin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/usr/bin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/sbin:/home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/recipe-sysroot-native/bin:/home/yoctouser/elk-audio-kas-configs/layers/meta-poky/bitbake/bin:/home/yoctouser/elk-audio-kas-configs/build/tmp/hosttools"; export HOME="/tmp/tmp3ptw8gqv"; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror https://github.com/raspberrypi/linux.git /home/yoctouser/elk-audio-kas-configs/build/../downloads/git2/github.com.raspberrypi.linux.git --progress failed with exit code 128, no output
ERROR: linux-raspberrypi-1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https')
ERROR: Logfile of failure stored in: /home/yoctouser/elk-audio-kas-configs/build/tmp/work/raspberrypi4_64-elk-linux/linux-raspberrypi/1_5.15.78+gitAUTOINC+e1b976ee4f_46937443a9-r0/temp/log.do_fetch.72730
ERROR: Task (/home/yoctouser/elk-audio-kas-configs/build/../layers/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch) failed with exit code '1'

Any good idea on what's causing this?
Thank you

Sergio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants