Please find the complete bitbake build log, i am using Arago Project (Yocto project compatible) and with meta-mender (zeus-next) layer i am facing these issues.
Unfortunately the log does not say much. The actually error messages are not printed. I do not see how the failing packages would be related to meta-mender.
Have you included the necessary configuration options required by Mender as outlined in this section,
Initialising tasks: 100% |############################################################################################| Time: 0:00:01
Sstate summary: Wanted 4 Found 1 Missed 3 Current 756 (25% match, 99% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: core-image-minimal-1.0-r0 do_image_tar: Execution of ‘/home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.11943’ failed with exit code 1: xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB
md5sum: core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz: No such file or directory
WARNING: /home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.11943:1 exit 1 from ‘md5sum core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz > core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz.md5’
ERROR: Logfile of failure stored in: /home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_tar.11943
Log data follows:
| DEBUG: Executing python function prepare_excluded_directories
| DEBUG: Python function prepare_excluded_directories finished
| DEBUG: Executing python function set_image_size
| DEBUG: 140564.000000 = 140564 * 1.000000
| DEBUG: 434176.000000 = max(140564.000000, 430080)[430080.000000] + 4096
| DEBUG: 434176.000000 = int(434176.000000)
| DEBUG: 434176 = aligned(434176)
| DEBUG: returning 434176
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_tar
| xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB
| md5sum: core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz: No such file or directory
| WARNING: /home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.11943:1 exit 1 from ‘md5sum core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz > core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz.md5’
| ERROR: Execution of ‘/home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.11943’ failed with exit code 1: | xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB
| md5sum: core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz: No such file or directory
| WARNING: /home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.11943:1 exit 1 from ‘md5sum core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz > core-image-minimal-am57xx-evm-20200426181127.rootfs.tar.xz.md5’
|
ERROR: Task (/home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/sources/oe-core/meta/recipes-core/images/core-image-minimal.bb:do_image_tar) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 2568 tasks of which 2560 didn’t need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 62 seconds
I see the same below errors, even after adding image FS type to local.conf file.
Is it something related to system limitation (memory usage limit), during compressing the files, which may have with mender artifacts and mender images ?
error log:
ERROR: core-image-minimal-1.0-r0 do_image_tar: Execution of ‘/home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.11943’ failed with exit code 1: xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB
I don’t really know. I’ve never see that message but it sounds like it is being careful not to use all the memory.
What does “/home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_image_tar.11943” contain?
It’s been a while, working on this. Again came back to Mender, and trying it out to upgrade rootfs. But same error i am getting every time.
The content of the log is below, which is your query in previous thread of this discussion. log_content:
DEBUG: Executing python function prepare_excluded_directories
DEBUG: Python function prepare_excluded_directories finished
DEBUG: Executing python function set_image_size
DEBUG: 186960.000000 = 186960 * 1.000000
DEBUG: 221184.000000 = max(186960.000000, 217088)[217088.000000] + 4096
DEBUG: 221184.000000 = int(221184.000000)
DEBUG: 221184 = aligned(221184)
DEBUG: returning 221184
DEBUG: Python function set_image_size finished
DEBUG: Executing shell function do_image_tar
xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB
md5sum: core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz: No such file or directory
WARNING: /home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_hs_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.27661:1 exit 1 from ‘md5sum core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz > core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz.md5’
ERROR: Execution of ‘/home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_hs_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.27661’ failed with exit code 1:
xz: Adjusted the number of threads from 4 to 3 to not exceed the memory usage limit of 3,943 MiB
md5sum: core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz: No such file or directory
WARNING: /home/user/SVN_BWT/Code/BWT_Software_WP2_Src/Arago/tisdk/build/arago-tmp-external-arm-toolchain/work/am57xx_hs_evm-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_tar.27661:1 exit 1 from ‘md5sum core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz > core-image-minimal-am57xx-hs-evm-20200608112838.rootfs.tar.xz.md5’
Well the warnings about memory usage are a bit concerning. How much RAM do you have in the build machine? I couldn’t find an explicit statement about RAM requirements but more is always better here.
Are you able to build that MACHINE without Mender integrated?
Yes I am able to build the rootfs image, without integrating Mender.
When I build separately mender-client, it will build successfully.
Issue is only during creating rootfs image and that’s with only when we integrate with Mender.