Skip to content

Instantly share code, notes, and snippets.

@quentin-burg
Created August 26, 2019 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quentin-burg/cdf4a6584b4758ba3a52c489dbf32f40 to your computer and use it in GitHub Desktop.
Save quentin-burg/cdf4a6584b4758ba3a52c489dbf32f40 to your computer and use it in GitHub Desktop.
Log error resin-image:do_image_hostapp_ext4
ERROR: resin-image-1.0-r0 do_image_hostapp_ext4: Function failed: do_image_hostapp_ext4 (log file is located at /home/admin/yocto-build/build/tmp/work/up_board-poky-linux/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.4929)
ERROR: Logfile of failure stored in: /home/admin/yocto-build/build/tmp/work/up_board-poky-linux/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.4929
Log data follows:
| DEBUG: Executing python function set_image_size
| DEBUG: 304584.000000 = 304584 * 1.000000
| DEBUG: 319488.000000 = max(304584.000000, 319488)[319488.000000] + 1
| DEBUG: 319488.000000 = int(319488.000000)
| DEBUG: 319488 = aligned(319488)
| DEBUG: returning 319488
| DEBUG: Python function set_image_size finished
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/admin/yocto-build/build/../layers/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-core/coreutils/coreutils_8.29.bb:do_populate_sysroot', '/home/admin/yocto-build/build/../layers/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.3.6.bb:do_populate_sysroot', '/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', '/home/admin/yocto-build/build/../layers/meta-balena/meta-balena-common/recipes-devtools/kernel-modules-headers/kernel-modules-headers.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/home/admin/yocto-build/build/../layers/meta-balena/meta-balena-common/recipes-containers/mkfs-hostapp-native/mkfs-hostapp-native.bb:do_populate_sysroot', 'virtual:native:/home/admin/yocto-build/build/../layers/meta-openembedded/meta-oe/recipes-devtools/jq/jq_1.5.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['mkfs-hostapp-native', 'balena-native', 'hostapp-update-native', 'go-native']
| NOTE: Skipping as already exists in sysroot: ['prelink-native', 'ldconfig-native', 'coreutils-native', 'depmodwrapper-cross', 'pseudo-native', 'opkg-utils-native', 'qemuwrapper-cross', 'makedevs-native', 'mklibs-native', 'opkg-native', 'kernel-modules-headers', 'update-rc.d-native', 'pigz-native', 'jq-native', 'xz-native', 'systemd-systemctl-native', 'qemu-native', 'quilt-native', 'kmod-native', 'openssl-native', 'debianutils-native', 'gnu-config-native', 'libtool-native', 'automake-native', 'gettext-minimal-native', 'autoconf-native', 'shadow-native', 'zlib-native', 'e2fsprogs-native', 'binutils-native', 'elfutils-native', 'attr-native', 'texinfo-dummy-native', 'nss-native', 'pkgconfig-native', 'libsolv-native', 'libarchive-native', 'glibc', 'linux-yocto', 'util-linux', 'elfutils', 'gcc-runtime', 'linux-libc-headers', 'openssl', 'onig-native', 'pixman-native', 'dtc-native', 'glib-2.0-native', 'alsa-lib-native', 'python3-native', 'gtk-doc-native', 'm4-native', 'util-linux-native', 'flex-native', 'bison-native', 'nspr-native', 'sqlite3-native', 'cmake-native', 'rpm-native', 'ninja-native', 'expat-native', 'bzip2-native', 'lzo-native', 'zlib', 'bash-completion', 'ncurses', 'opkg-utils', 'libtool', 'bzip2', 'libgcc', 'ovmf', 'cpio-native', 'qemu-helper-native', 'cryptodev-linux', 'util-macros-native', 'libpng-native', 'libffi-native', 'libpcre-native', 'gdbm-native', 'readline-native', 'ncurses-native', 'curl-native', 'db-native', 'popt-native', 'file-native', 'dbus-native', 're2c-native', 'autoconf-archive-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_hostapp_ext4
| 0+0 records in
| 0+0 records out
| 0 bytes copied, 2.0964e-05 s, 0.0 kB/s
| Loaded image ID: sha256:d0e16cb72aaf51ec06d239902e51c36c819496a2bc8b9e409316fc9ff50745ed
| + SYSROOT=/mnt/sysroot/inactive
| + pid=5
| + sleep 5
| + balenad -s=aufs --data-root=/mnt/sysroot/inactive/balena -H unix:///var/run/balena-host.sock
| time="2019-08-26T09:18:30.164370669Z" level=warning msg="could not change group /var/run/balena-host.sock to balena-engine: group balena-engine not found"
| time="2019-08-26T09:18:30.166039299Z" level=info msg="libcontainerd: started new balena-engine-containerd process" pid=13
| time="2019-08-26T09:18:30.193166505Z" level=info msg="starting containerd" revision= version=1.2.2+unknown
| time="2019-08-26T09:18:30.193523625Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
| time="2019-08-26T09:18:30.193829495Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
| time="2019-08-26T09:18:30.194921696Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.aufs" error="modprobe aufs failed: \"modprobe: FATAL: Module aufs not found in directory /lib/modules/4.9.0-6-amd64\\n\": exit status 1"
| time="2019-08-26T09:18:30.194968583Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
| time="2019-08-26T09:18:30.195226689Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
| time="2019-08-26T09:18:30.195551928Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
| time="2019-08-26T09:18:30.195720493Z" level=warning msg="could not use snapshotter aufs in metadata plugin" error="modprobe aufs failed: \"modprobe: FATAL: Module aufs not found in directory /lib/modules/4.9.0-6-amd64\\n\": exit status 1"
| time="2019-08-26T09:18:30.195740549Z" level=info msg="metadata content store policy set" policy=shared
| time="2019-08-26T09:18:30.202760005Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
| time="2019-08-26T09:18:30.202790919Z" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
| time="2019-08-26T09:18:30.202888600Z" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.202906512Z" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.202919217Z" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.202935602Z" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.202948872Z" level=info msg="loading plugin \"io.containerd.service.v1.leases-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.202991603Z" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.203007261Z" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.203023475Z" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
| time="2019-08-26T09:18:30.203301205Z" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
| time="2019-08-26T09:18:30.203548731Z" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
| time="2019-08-26T09:18:30.204189149Z" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
| time="2019-08-26T09:18:30.204247486Z" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
| time="2019-08-26T09:18:30.204289372Z" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204302934Z" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204319065Z" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204330531Z" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204342062Z" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204353530Z" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204367434Z" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204378965Z" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204418724Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
| time="2019-08-26T09:18:30.204730814Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204760429Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204810065Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.204822096Z" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
| time="2019-08-26T09:18:30.205062405Z" level=info msg=serving... address=/var/run/balena-engine/containerd/balena-engine-containerd-debug.sock
| time="2019-08-26T09:18:30.205150451Z" level=info msg=serving... address=/var/run/balena-engine/containerd/balena-engine-containerd.sock
| time="2019-08-26T09:18:30.205181795Z" level=info msg="containerd successfully booted in 0.012738s"
| time="2019-08-26T09:18:30.241911214Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
| time="2019-08-26T09:18:30.242256788Z" level=warning msg="Your kernel does not support swap memory limit"
| time="2019-08-26T09:18:30.242336275Z" level=warning msg="Your kernel does not support cgroup rt period"
| time="2019-08-26T09:18:30.242348356Z" level=warning msg="Your kernel does not support cgroup rt runtime"
| time="2019-08-26T09:18:30.242847162Z" level=info msg="Loading containers: start."
| time="2019-08-26T09:18:30.244016811Z" level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module bridge not found in directory /lib/modules/4.9.0-6-amd64\nmodprobe: WARNING: Module br_netfilter not found in directory /lib/modules/4.9.0-6-amd64\n, error: exit status 1"
| time="2019-08-26T09:18:30.244838299Z" level=warning msg="Running modprobe nf_nat failed with message: `modprobe: WARNING: Module nf_nat not found in directory /lib/modules/4.9.0-6-amd64`, error: exit status 1"
| time="2019-08-26T09:18:30.245736331Z" level=warning msg="Running modprobe xt_conntrack failed with message: `modprobe: WARNING: Module xt_conntrack not found in directory /lib/modules/4.9.0-6-amd64`, error: exit status 1"
| time="2019-08-26T09:18:30.308900229Z" level=info msg="Default bridge (balena0) is assigned with an IP address 172.18.0.0/16. Daemon option --bip can be used to set a preferred IP address"
| time="2019-08-26T09:18:30.337646628Z" level=info msg="Loading containers: done."
| time="2019-08-26T09:18:30.368090277Z" level=warning msg="failed to retrieve balena-engine-init version: exec: \"balena-engine-init\": executable file not found in $PATH"
| time="2019-08-26T09:18:30.368716820Z" level=warning msg="Couldn't run auplink before unmount /mnt/sysroot/inactive/balena/tmp/docker-aufs-union413879764" error="exec: \"auplink\": executable file not found in $PATH" storage-driver=aufs
| time="2019-08-26T09:18:30.388173883Z" level=info msg="Docker daemon" commit=95c7371304f9cef494efe93f0a8ffd53a75eac21 graphdriver(s)=aufs version=18.09.6-dev
| time="2019-08-26T09:18:30.388198495Z" level=info msg="Daemon has completed initialization"
| time="2019-08-26T09:18:30.404267330Z" level=info msg="API listen on /var/run/balena-host.sock"
| + hostapp-update -f /input -n
| time="2019-08-26T09:18:39.669738614Z" level=warning msg="Couldn't run auplink before unmount /mnt/sysroot/inactive/balena/aufs/mnt/24659e421307371d5b4a01fcc0c6c87684ed26f875685405138e47677351266d" error="exec: \"auplink\": executable file not found in $PATH" storage-driver=aufs
| + kill 5
| + wait 5
| time="2019-08-26T09:18:39.913018813Z" level=info msg="Processing signal 'terminated'"
| time="2019-08-26T09:18:39.914508195Z" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
| time="2019-08-26T09:18:39.915167259Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
| time="2019-08-26T09:18:39.915408226Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
| + mkfs.ext4 -F -E lazy_itable_init=0,lazy_journal_init=0 -i 8192 -d /mnt/sysroot/inactive /output
| mke2fs 1.43.8 (1-Jan-2018)
| Discarding device blocks: done
| Creating filesystem with 319488 1k blocks and 39936 inodes
| Filesystem UUID: aad90398-a2d7-476f-8645-157d61689c70
| Superblock backups stored on blocks:
| 8193, 24577, 40961, 57345, 73729, 204801, 221185
|
| Allocating group tables: done
| Writing inode tables: done
| Creating journal (8192 blocks): done
| Copying files into the device: __populate_fs: Could not allocate block in ext2 filesystem while writing file "init"
| mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system
| Deleted: sha256:d0e16cb72aaf51ec06d239902e51c36c819496a2bc8b9e409316fc9ff50745ed
| Deleted: sha256:58bccba17f69159cd9bae6fcecb667c083a1d7236a9d051ed05f2e6f59eb882e
| Deleted: sha256:92719cac7f72f29dc9dbc35b9d70495064e9aedad93db71035889b43c1332016
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_image_hostapp_ext4 (log file is located at /home/admin/yocto-build/build/tmp/work/up_board-poky-linux/resin-image/1.0-r0/temp/log.do_image_hostapp_ext4.4929)
ERROR: Task (/home/admin/yocto-build/build/../layers/meta-balena/meta-balena-common/recipes-core/images/resin-image.bb:do_image_hostapp_ext4) failed with exit code '1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment