Hi Leandro. Thanks for adding more eyes!
- Checked my containers for
config.v2.json
, which they all had. Most were valid, but a single one was missing the Config section, as well as anything else identifying (all 0s and nulls).
- Removed that troubled directory and restarted. The
Invalid container config.json
error is no longer showing up, but things are still stuck.
- Removed all container directories (
:/mnt/data/docker/containers# ls -a
→ . ..
) and restarted, but still no progress.
Current state: Dashboard shows “Updating” at 76% for device status, and most containers show “Downloaded” with 2 “Downloading” at 75% and 50%. No new logs are making it to the dashboard; previous logs are Failed to download image ... no space left on device
. Only Host OS is available to ssh.
To confirm that the service still won’t start:
root@b2acb23:~# systemctl start balena
Job for balena.service failed because the control process exited with error code.
See "systemctl status balena.service" and "journalctl -xeu balena.service" for details.
And since everyone loves stacktraces…
root@b2acb23:~# journalctl -xeu balena.service
May 10 22:19:13 b2acb23 balenad[32860]: time="2023-05-10T22:19:13.141621481Z" level=info msg="Starting up"
May 10 22:19:13 b2acb23 balenad[32860]: time="2023-05-10T22:19:13.141855330Z" level=warning msg="Running experimental build"
May 10 22:19:13 b2acb23 balenad[32860]: time="2023-05-10T22:19:13.144764963Z" level=warning msg="Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network." host="tcp://0.0.0.0:2375"
May 10 22:19:13 b2acb23 balenad[32860]: time="2023-05-10T22:19:13.144865832Z" level=warning msg="Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there!" host="tcp://0.0.0.0:2375"
May 10 22:19:14 b2acb23 balenad[32860]: time="2023-05-10T22:19:14.145117488Z" level=warning msg="Binding to an IP address without --tlsverify is deprecated. Startup is intentionally being slowed down to show this message" host="tcp://0.0.0.0:2375"
May 10 22:19:14 b2acb23 balenad[32860]: time="2023-05-10T22:19:14.145437781Z" level=warning msg="Please consider generating tls certificates with client validation to prevent exposing unauthenticated root access to your network" host="tcp://0.0.0.0:2375"
May 10 22:19:14 b2acb23 balenad[32860]: time="2023-05-10T22:19:14.145540428Z" level=warning msg="You can override this by explicitly specifying '--tls=false' or '--tlsverify=false'" host="tcp://0.0.0.0:2375"
May 10 22:19:14 b2acb23 balenad[32860]: time="2023-05-10T22:19:14.145628223Z" level=warning msg="Support for listening on TCP without authentication or explicit intent to run without authentication will be removed in the next release" host="tcp://0.0.0.0:2375"
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.151790705Z" level=info msg="libcontainerd: started new balena-engine-containerd process" pid=32885
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.383625428Z" level=warning msg="Configured runtime \"runc\" is deprecated and will be removed in the next release"
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.384681934Z" level=info msg="Storage migration skipped: %!s(<nil>)"
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.507087257Z" level=warning msg="Your kernel does not support CPU realtime scheduler"
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.508049838Z" level=warning msg="Your kernel does not support cgroup blkio weight"
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.508332168Z" level=warning msg="Your kernel does not support cgroup blkio weight_device"
May 10 22:19:29 b2acb23 balenad[32860]: time="2023-05-10T22:19:29.509307861Z" level=info msg="Loading containers: start."
May 10 22:19:30 b2acb23 balenad[32860]: time="2023-05-10T22:19:30.927907746Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
May 10 22:19:30 b2acb23 balenad[32860]: time="2023-05-10T22:19:30.927911339Z" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=moby
May 10 22:19:30 b2acb23 balenad[32860]: time="2023-05-10T22:19:30.928002523Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
May 10 22:19:31 b2acb23 balenad[32860]: panic: page 2 already freed
May 10 22:19:31 b2acb23 balenad[32860]: goroutine 1 [running]:
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*freelist).free(0x40003d2600, 0x5f3a0b, 0x7f643c2000)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/freelist.go:175 +0x39c
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*node).spill(0x40001f01c0, 0x4000ba8e10, 0x1)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/node.go:359 +0x348
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*node).spill(0x40001f0150, 0x4000722cf0, 0x4000d1e168)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/node.go:346 +0x9c
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*Bucket).spill(0x400086ea00, 0x4000722c00, 0x4000d1e358)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/bucket.go:570 +0x340
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*Bucket).spill(0x40006f0558, 0x42aaf0453, 0x2bad540)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/bucket.go:537 +0x2b8
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*Tx).Commit(0x40006f0540, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/tx.go:160 +0xa8
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/go.etcd.io/bbolt.(*DB).Update(0x40003d5e00, 0x4000d1e590, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/go.etcd.io/bbolt/db.go:701 +0xe4
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libkv/store/boltdb.(*BoltDB).Put(0x40004aa730, 0x4000ae6390, 0x23, 0x2bdc510, 0x0, 0x0, 0x400083da30, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libkv/store/boltdb/boltdb.go:187 +0x194
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork/datastore.(*datastore).ensureParent(0x400007f800, 0x4000ae6390, 0x23, 0x7f6457af80, 0x40007223c0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/datastore/datastore.go:507 +0xc4
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork/datastore.(*datastore).iterateKVPairsFromStore(0x400007f800, 0x4000ae6390, 0x23, 0x1e8f3b8, 0x40007223c0, 0x4000d1e768, 0x4000061c00, 0x2b01880)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/datastore/datastore.go:539 +0x70
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork/datastore.(*datastore).Map(0x400007f800, 0x4000ae6390, 0x23, 0x1e8f3b8, 0x40007223c0, 0x0, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/datastore/datastore.go:578 +0xe0
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork.(*controller).getNetworksFromStore(0x40000db300, 0x134e76c, 0x400007f840, 0x169b657)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/store.go:134 +0x480
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork.(*controller).Networks(0x40000db300, 0x0, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/controller.go:1023 +0x28
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork.(*controller).WalkNetworks(0x40000db300, 0x1dfc4e0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/controller.go:1034 +0x28
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/docker/libnetwork.New(0x4000804a80, 0x9, 0x10, 0x40006d0720, 0x4000aeac90, 0x4000804a80, 0x9)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/docker/libnetwork/controller.go:240 +0x508
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/daemon.(*Daemon).initNetworkController(0x400071c1e0, 0x4000122000, 0x4000aeac90, 0x0, 0x0, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/daemon/daemon_unix.go:855 +0x78
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/daemon.(*Daemon).restore(0x400071c1e0, 0x400086e700, 0x40006f00e0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/daemon/daemon.go:491 +0x3d8
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/daemon.NewDaemon(0x1e75a70, 0x400086e700, 0x4000122000, 0x40006d0720, 0x0, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/daemon/daemon.go:1196 +0x2160
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/cmd/dockerd.(*DaemonCli).start(0x400083fc80, 0x40000894a0, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/cmd/dockerd/daemon.go:190 +0x588
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/cmd/dockerd.runDaemon(...)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/cmd/dockerd/docker_unix.go:13
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/cmd/dockerd.newDaemonCommand.func1(0x4000396840, 0x40000dab00, 0x0, 0x10, 0x0, 0x0)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/cmd/dockerd/docker.go:34 +0x78
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).execute(0x4000396840, 0x400000c250, 0x10, 0x11, 0x4000396840, 0x400000c250)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:850 +0x320
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x4000396840, 0x0, 0x0, 0x10)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:958 +0x258
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/vendor/github.com/spf13/cobra.(*Command).Execute(...)
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:895
May 10 22:19:31 b2acb23 balenad[32860]: github.com/docker/docker/cmd/dockerd.Main()
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/cmd/dockerd/docker.go:98 +0x188
May 10 22:19:31 b2acb23 balenad[32860]: main.main()
May 10 22:19:31 b2acb23 balenad[32860]: /work/build/tmp/work/cortexa72-poky-linux/balena/20.10.26+gitaf43ce40a2eb094b68a7d91c5fd9f36280c265a2-r0/git/src/import/.gopath/src/github.com/docker/docker/cmd/balena-engine/main.go:30 +0x1b4
May 10 22:19:31 b2acb23 systemd[1]: balena.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 10 22:19:31 b2acb23 systemd[1]: balena.service: Failed with result 'exit-code'.
May 10 22:19:31 b2acb23 systemd[1]: Failed to start Balena Application Container Engine.
May 10 22:19:32 b2acb23 systemd[1]: balena.service: Found left-over process 31022 (exe) in control group while starting unit. Ignoring.
May 10 22:19:32 b2acb23 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
...
It does make me feel better that it’s not a simple fix or user-error (so far!). Thanks again to everyone working on this with me.
Device is on and support access is open.