build icon indicating copy to clipboard operation
build copied to clipboard

[Bug]: Build fails for desktop on orangepione

Open stephengraf opened this issue 1 year ago • 10 comments

What happened?

🌱] Checking MD5 sum of installed packages [ debsums ] [🔨] debsums: changed file /usr/share/doc/base-files/changelog.gz (from base-files package) [🔨] debsums: changed file /etc/os-release (from base-files package) [🔨] debsums: changed file /etc/issue.net (from base-files package) [🔨] debsums: changed file /etc/issue (from base-files package) [💥] Error 2 occurred in main shell [ at /home/sysadmin/build/lib/functions/logging/runners.sh:211 run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211 chroot_sdcard() --> lib/functions/logging/runners.sh:122 create_new_rootfs_cache_via_debootstrap() --> lib/functions/rootfs/rootfs-create.sh:230 create_new_rootfs_cache() --> lib/functions/rootfs/create-cache.sh:69 do_with_logging() --> lib/functions/logging/section-logging.sh:81 artifact_rootfs_build_from_sources() --> lib/functions/artifacts/artifact-rootfs.sh:80 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392 get_or_create_rootfs_cache_chroot_sdcard() --> lib/functions/rootfs/create-cache.sh:83 build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:14 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [💥] Error context msg [ Check MD5 sum of installed packages failed ]

How to reproduce?

This happens with debian bookworm and ubuntu jammy desktop builds for current in main. Others have not been tested. It happens when building with my desktop ubuntu 24 and on a KVM ubuntu 22.04 server.

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 22.04 Jammy

Are you building on Windows WSL2?

  • [ ] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

https://paste.armbian.com/zimufoqisa

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

stephengraf avatar Aug 09 '24 04:08 stephengraf

Jira ticket: AR-2454

github-actions[bot] avatar Aug 09 '24 04:08 github-actions[bot]

I am not sure this is worth fixing. An orangepione with 512MB of memory does not work very well with a desktop image. However the build should work. Builds of full server for legacy, current and edge work for orangepione.

stephengraf avatar Aug 09 '24 05:08 stephengraf

Probably related to https://github.com/armbian/build/issues/7048 but leaving open since this affects main.

EvilOlaf avatar Aug 09 '24 05:08 EvilOlaf

I am not sure this is worth fixing.

Build must work. I could not reproduced on my 22.04 build. (using v24.08 repo, which is almost identical to main at this point). Will repeat on main ... need coffee to be able to look into the logs. On first scan, nothing strange ... damn why this base-files makes troubles?

igorpecovnik avatar Aug 09 '24 05:08 igorpecovnik

Try wiping your cache directory and retry.

EvilOlaf avatar Aug 09 '24 06:08 EvilOlaf

The build that was reported was the first build job run after the Ubuntu 22.04 vm was created and the repository downloaded.

Tried again with empty cache.

@.:~/build$ sudo rm -r cache/ @.*:~/build$ ls -alh cache total 8.0K drwxrwxr-x 2 root root 4.0K Aug 9 17:10 . drwxrwxr-x 15 sysadmin sysadmin 4.0K Aug 9 01:22 ..

[🌱] Checking MD5 sum of installed packages [ debsums ] [🔨] debsums: changed file /usr/share/doc/base-files/changelog.gz (from base-f iles package) [🔨] debsums: changed file /etc/os-release (from base-files package) [🔨] debsums: changed file /etc/issue.net (from base-files package) [🔨] debsums: changed file /etc/issue (from base-files package) [💥] Error 2 occurred in main shell [ at /home/sysadmin/build/lib/functions/logg ing/runners.sh:211 run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211 chroot_sdcard() --> lib/functions/logging/runners.sh:122 create_new_rootfs_cache_via_debootstrap() --> lib/functions/rootfs/rootfs-cre ate.sh:230 create_new_rootfs_cache() --> lib/functions/rootfs/create-cache.sh:69 do_with_logging() --> lib/functions/logging/section-logging.sh:8 1 artifact_rootfs_build_from_sources() --> lib/functions/artifacts/artifact-roo tfs.sh:80 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.s h:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.s h:280 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.s h:392 get_or_create_rootfs_cache_chroot_sdcard() --> lib/functions/rootfs/create-ca che.sh:83 build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:14 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.s h:36 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [💥] Error context msg [ Check MD5 sum of installed packages failed ] [💥] Cleaning up [ please wait for cleanups to finish ]

https://paste.armbian.com/vedokeyajo

On 2024-08-08 23:50, Werner wrote:

Try wiping your |cache| directory and retry.

— Reply to this email directly, view it on GitHub https://github.com/armbian/build/issues/7054#issuecomment-2277262518, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJLQAHQ7Z437SVGC6YRH2TZQRRELAVCNFSM6AAAAABMHWFJ5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZXGI3DENJRHA. You are receiving this because you authored the thread.Message ID: @.***>

stephengraf avatar Aug 09 '24 18:08 stephengraf

We do have a problem here it seems as there are more reports.

igorpecovnik avatar Aug 09 '24 18:08 igorpecovnik

Quick fix would be to disable this checking or put it under the switch.

igorpecovnik avatar Aug 09 '24 18:08 igorpecovnik

This is not making sense.

I went back installed a new kvm vm and loaded it with ubuntu 22.04lts. Then I downloaded the 24.05 armbian repository and built an orangepione desktop. It failed to build.

This worked three months ago when I was doing release testing for 24.05.

login as: sysadmin @.***'s password: Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-118-generic x86_64)

@.:~$ git clone --depth=1 --branch=v24.05 https://github.com/armbian/build Cloning into 'build'... remote: Enumerating objects: 5695, done. remote: Counting objects: 100% (5695/5695), done. remote: Compressing objects: 100% (4519/4519), done. remote: Total 5695 (delta 1557), reused 3741 (delta 790), pack-reused 0 Receiving objects: 100% (5695/5695), 64.89 MiB | 17.71 MiB/s, done. Resolving deltas: 100% (1557/1557), done. Updating files: 100% (6350/6350), done. @.:~$ cd build/ @.***:~/build$

[🌱] Checking MD5 sum of installed packages [ debsums ] [🔨] debsums: changed file /usr/share/doc/base-files/changelog.gz (from base-files package) [🔨] debsums: changed file /etc/os-release (from base-files package) [🔨] debsums: changed file /etc/issue.net (from base-files package) [🔨] debsums: changed file /etc/issue (from base-files package) [💥] Error 2 occurred in main shell [ at /home/sysadmin/build/lib/functions/logging/runners.sh:211 run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211 chroot_sdcard() --> lib/functions/logging/runners.sh:122 create_new_rootfs_cache_via_debootstrap() --> lib/functions/rootfs/rootfs-create.sh:230 create_new_rootfs_cache() --> lib/functions/rootfs/create-cache.sh:69 do_with_logging() --> lib/functions/logging/section-logging.sh:81 artifact_rootfs_build_from_sources() --> lib/functions/artifacts/artifact-rootfs.sh:80 artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34 obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280 build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392 get_or_create_rootfs_cache_chroot_sdcard() --> lib/functions/rootfs/create-cache.sh:83 build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:14 full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36 do_with_default_build() --> lib/functions/main/default-build.sh:42 cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25 armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176 main() --> compile.sh:50 ] [💥] Error context msg [ Check MD5 sum of installed packages failed ]

https://paste.armbian.com/ipocadidet

On 2024-08-09 11:25, Igor wrote:

Quick fix would be to disable this checking or put it under the switch.

— Reply to this email directly, view it on GitHub https://github.com/armbian/build/issues/7054#issuecomment-2278507541, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJLQAGBD5MWP3XVL556PR3ZQUCRNAVCNFSM6AAAAABMHWFJ5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZYGUYDONJUGE. You are receiving this because you authored the thread.Message ID: @.***>

stephengraf avatar Aug 10 '24 19:08 stephengraf

We are aware of the issue. Seems to occur randomly. Wiping cache sometimes helps. Still investigating.

EvilOlaf avatar Aug 10 '24 19:08 EvilOlaf

I think this was fixed. I checked and can't reproduce it anymore.

igorpecovnik avatar Sep 09 '24 10:09 igorpecovnik