I am getting errors similar to here when adding a custom layer, when trying to build torizon-core-docker
However, I have checked that my layers are version controlled by Git, and am still running into ostreecommit failures like
DEBUG: Python function extend_recipe_sysroot finished
| WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
| DEBUG: Executing shell function do_image_ostreecommit
| error: Parsing oe.layers=None : 0:expected value
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/beb/npu-test/bsp-synchron/build-torizon/tmp/work/verdin_imx8mp_scu-tdx-linux/torizon-core-docker/1.0-r0/temp/run.do_image_ostreecommit.3317601' failed with exit code 1
ERROR: Task (/home/beb/npu-test/bsp-synchron/build-torizon/conf/../../layers/meta-toradex-torizon/recipes-images/images/torizon-core-docker.bb:do_image_ostreecommit) failed with exit code '1'
Am I correct in thinking that this error is pointing to an issue with my meta-toradex-torizon layer (based on the error)? If so, how would I resolve it
| DEBUG: Python function extend_recipe_sysroot finished
| WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
| DEBUG: Executing shell function do_image_ostreecommit
| error: opendir(objects): No such file or directory
| error: Parsing oe.layers=None : 0:expected value
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/mgh/temp/TorizonCore/build/tmp/work/apalis_imx8-tdx-linux/torizon-core-lite/1.0-r0/temp/run.do_image_ostreecommit.96676' failed with exit code 1
ERROR: Task (/home/mgh/temp/TorizonCore/build/conf/../../layers/meta-toradex-torizon/recipes-images/images/torizon-core-lite.bb:do_image_ostreecommit) failed with exit code '1'
Or, to give the full list of warnings/errors:
WARNING: busybox-1.31.1-r0 do_fetch: Failed to fetch URL https://busybox.net/downloads/busybox-1.31.1.tar.bz2;name=tarball, attempting MIRRORS if available
WARNING: base-passwd-3.5.29-r0 do_patch: Fuzz detected:
Applying patch missing_systemd_basic.patch
patching file group.master
Hunk #1 succeeded at 36 with fuzz 2.
The context lines in the patches can be updated with devtool:
devtool modify base-passwd
devtool finish --force-patch-refresh base-passwd <layer_path>
Don't forget to review changes done by devtool!
WARNING: base-passwd-3.5.29-r0 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]
WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: torizon-core-lite-1.0-r0 do_rootfs: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: torizon-core-lite-1.0-r0 do_rootfs: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: torizon-core-lite-1.0-r0 do_image: Android repo tool failed to run; manifest not copied
WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
WARNING: torizon-core-lite-1.0-r0 do_image_ostreecommit: Failed to get layers information. Exception: <class 'bb.process.ExecutionError'>
ERROR: torizon-core-lite-1.0-r0 do_image_ostreecommit: Execution of '/home/mgh/temp/TorizonCore/build/tmp/work/apalis_imx8-tdx-linux/torizon-core-lite/1.0-r0/temp/run.do_image_ostreecommit.96676' failed with exit code 1
ERROR: Logfile of failure stored in: /home/mgh/temp/TorizonCore/build/tmp/work/apalis_imx8-tdx-linux/torizon-core-lite/1.0-r0/temp/log.do_image_ostreecommit.96676
I see the same issue if I try bitbake torizon-core-docker instead.
Note, this was working fine, on the same computer, last time I tried it, a week or so ago. I don’t think anything has changed on my side.
My issue was partially resolved by the safe.directory fix, but the ultimate workaround for the bug was o go into image_type_torizon.bbclassand simply remove the oe.layers from the metadata in the ostreecommit, after which the build works fine.
What ramifications are there for OTA using actualizr of excluding that metadata?