Hi, I have a problem with one of my clients Balena applications.
"balena push " failed:
$ balena push 192.168.1.147 --debug
[debug] new argv=[/home/peter/.nvm/versions/node/v12.18.4/bin/node,/home/peter/.nvm/versions/node/v12.18.4/bin/balena,push,192.168.1.147] length=4
[debug] Using . as build source
[Debug] Checking we can access device
[Debug] Sending request to http://192.168.1.147:48484/ping
Could not communicate with local mode device at address 192.168.1.147
Additional information may be available with the `--debug` flag.
For help, visit our support forums: https://forums.balena.io
For bug reports or feature requests, see: https://github.com/balena-io/balena-cli/issues/
Using ssh to log into the device, I ran “systemctl status balena-engine”, which gave this output:
● balena.service - Balena Application Container Engine
Loaded: loaded (/lib/systemd/system/balena.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/balena.service.d
└─balena.conf
Active: activating (start) since Tue 2021-01-26 14:30:27 UTC; 1s ago
Docs: https://www.balena.io/docs/getting-started
Main PID: 31222 (balenad)
Tasks: 1207 (limit: 2062)
Memory: 708.3M
CGroup: /system.slice/balena.service
├─ 1375 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 1372
├─ 1378 /bin/sh /usr/lib/balena/balena-healthcheck
├─ 1382 balena info
├─ 1466 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 1465
├─ 1467 /bin/sh /usr/lib/balena/balena-healthcheck
├─ 1473 balena info
├─ 1774 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 1773
├─ 1775 /bin/sh /usr/lib/balena/balena-healthcheck
├─ 1781 balena info
├─ 1813 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 1812
├─ 1814 /bin/sh /usr/lib/balena/balena-healthcheck
├─ 1820 balena info
├─ 1889 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 1888
.... skipping a couple of 100 similar lines ...
├─31277 balena info
├─31310 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31309
├─31346 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31345
├─31383 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31382
├─31424 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31422
├─31461 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31460
├─31462 /bin/sh /usr/lib/balena/balena-healthcheck
├─31468 balena info
├─31499 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31498
├─31539 /usr/bin/balenad --experimental --log-driver=journald -s aufs -H fd:// -H unix:///var/run/balena.sock -H unix:///var/run/balena-engine.sock -H tcp://0.0.0.0:2375 --dns 10.114.1>
├─31540 /proc/self/exe --healthcheck /usr/lib/balena/balena-healthcheck --pid 31539
├─31541 /bin/sh /usr/lib/balena/balena-healthcheck
└─31547 balena info
Jan 26 14:31:43 4ddd44d balenad[31539]: time="2021-01-26T14:31:43.923971552Z" level=warning msg="failed to load plugin io.containerd.internal.v1.opt" error="mkdir /opt: read-only file system"
Jan 26 14:31:43 4ddd44d balenad[31539]: time="2021-01-26T14:31:43.926699346Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
Jan 26 14:31:43 4ddd44d balenad[31539]: time="2021-01-26T14:31:43.927134708Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
Jan 26 14:31:43 4ddd44d balenad[31539]: time="2021-01-26T14:31:43.933444092Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
Jan 26 14:31:43 4ddd44d balenad[31539]: time="2021-01-26T14:31:43.935423558Z" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
Jan 26 14:31:43 4ddd44d balenad[31539]: time="2021-01-26T14:31:43.996124188Z" level=info msg=serving... address=/var/run/balena-engine/containerd/balena-engine-containerd-debug.sock
Jan 26 14:31:44 4ddd44d balenad[31539]: time="2021-01-26T14:31:44.003817625Z" level=info msg=serving... address=/var/run/balena-engine/containerd/balena-engine-containerd.sock.ttrpc
Jan 26 14:31:44 4ddd44d balenad[31539]: time="2021-01-26T14:31:44.005079960Z" level=info msg=serving... address=/var/run/balena-engine/containerd/balena-engine-containerd.sock
Jan 26 14:31:44 4ddd44d balenad[31539]: time="2021-01-26T14:31:44.012002830Z" level=info msg="containerd successfully booted in 1.611315s"
Jan 26 14:31:44 4ddd44d balenad[31539]: time="2021-01-26T14:31:44.937936029Z" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
The key message seems to be:
… msg=“failed to load plugin io.containerd.internal.v1.opt” error=“mkdir /opt: read-only file system”
I am totally lost.
Any help would be very much appreciated.
Cheers
Peter