resin-data.img no such file or directory when building balena OS image

Hello,

I am trying to build balena-jetson for v2.105.2+rev3, but I keep getting an error that I don’t know how to debug.

I ran ./balena-yocto-scripts/build/barys -m jetson-xavier-nx-devkit-emmc, and after some time got

WARNING: linux-tegra-4.9.253+gitAUTOINC+ad2fc41d9a-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NFS_V3=y in the kernel configs failed for nfsfs.
WARNING: linux-tegra-4.9.253+gitAUTOINC+ad2fc41d9a-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NFS_V4=y in the kernel configs failed for nfsfs.
WARNING: linux-tegra-4.9.253+gitAUTOINC+ad2fc41d9a-r0 do_kernel_resin_checkconfig: Checking for CONFIG_NFS_V2=y in the kernel configs failed for nfsfs.
WARNING: linux-tegra-4.9.253+gitAUTOINC+ad2fc41d9a-r0 do_kernel_resin_checkconfig: Checking for CONFIG_BACKLIGHT_CLASS_DEVICE=m in the kernel configs failed for backlight.
ERROR: docker-disk-2.105.2+rev3-r0 do_deploy: ExecutionError('/data/balena-jetson/build/tmp/work/jetson_xavier_nx_devkit_emmc-poky-linux/docker-disk/2.105.2+rev3-r0/temp/run.do_deploy.4029959', 1, None, None)
ERROR: Logfile of failure stored in: /data/balena-jetson/build/tmp/work/jetson_xavier_nx_devkit_emmc-poky-linux/docker-disk/2.105.2+rev3-r0/temp/log.do_deploy.4029959
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_deploy
| install: cannot stat '/data/balena-jetson/build/tmp/work/jetson_xavier_nx_devkit_emmc-poky-linux/docker-disk/2.105.2+rev3-r0/build/resin-data.img': No such file or directory
| WARNING: exit code 1 from a shell command.
ERROR: Task (/data/balena-jetson/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3099 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /data/balena-jetson/build/../layers/meta-balena/meta-balena-common/recipes-containers/docker-disk/docker-disk.bb:do_deploy
Summary: There were 30 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[000002494][LOG]Build for jetson-xavier-nx-devkit-emmc failed. Check failed log in build/tmp/log/cooker/jetson-xavier-nx-devkit-emmc .
[000002494][LOG]If build for jetson-xavier-nx-devkit-emmc succeeded, final image should have been generated here:
[000002494][LOG]   build/tmp/deploy/images/jetson-xavier-nx-devkit-emmc/balena-image-jetson-xavier-nx-devkit-emmc.balenaos-img
[000002494][LOG]Done.

Indeed /data/balena-jetson/build/tmp/work/jetson_xavier_nx_devkit_emmc-poky-linux/docker-disk/2.105.2+rev3-r0/build/resin-data.img does not exist, but I am not sure where to look for an error description. In the logs I see the same as above.

Any help is appreciated, thank you!
Carlos

Hi, maybe the Dockerfile build failed at some point and that’s the reason for the image not existing: meta-balena/docker-disk.bb at master · balena-os/meta-balena · GitHub
meta-balena/entry.sh at master · balena-os/meta-balena · GitHub

you can try to enter devshell for example:

$ cd balena-jetson/build &&  source ../layers/poky/oe-init-build-env .
$ MACHINE=jetson-xavier-nx-devkit-emmc bitbake docker-disk -c devshell

and then in that devshell run the docker build command and see whether the image is generated.
You can find the complete command for docker run in your build directory, in
build/tmp/work/jetson-xavier-nx-devkit-emmc-poky-linux/docker-disk/2.101.7+rev3-r0/temp/run.do_compile