Hi guys,
A supervisor container is crashing out of the blue when starting up and we have no clue why.
During development, we created a temporary container on device using balena commit <container-id>
and this container has been name focused_davinci
.
Which check does the supervisor do?
[info] Supervisor v13.1.3 starting up...
[info] Setting host to discoverable
[warn] Invalid firewall mode: . Reverting to state: off
[info] Applying firewall mode: off
[debug] Starting systemd unit: avahi-daemon.service
[debug] Starting systemd unit: avahi-daemon.socket
[debug] Starting logging infrastructure
[debug] Performing database cleanup for container log timestamps
[info] Starting firewall
[warn] Ignoring unsupported or unknown compose fields: containerName
[info] Previous engine snapshot was not stored. Skipping cleanup.
[debug] Handling of local mode switch is completed
(node:1) UnhandledPromiseRejectionWarning: InternalInconsistencyError: Expected supervised container to have name '<serviceName>_<imageId>_<releaseId>_<commit>', got: /focused_davinci
at Function.fromDockerContainer (/usr/src/app/dist/app.js:10:832269)
at /usr/src/app/dist/app.js:6:292713
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:1) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[success] Firewall mode applied
[debug] Starting api binder
(node:1) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3)
(node:1) UnhandledPromiseRejectionWarning: InternalInconsistencyError: Expected supervised container to have name '<serviceName>_<imageId>_<releaseId>_<commit>', got: /focused_davinci
at Function.fromDockerContainer (/usr/src/app/dist/app.js:10:832269)
at /usr/src/app/dist/app.js:6:292713
at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
[debug] Attempting container log timestamp flush...
[debug] Container log timestamp flush complete
....
[info] Supervisor v13.1.3 starting up...
[info] Setting host to discoverable
[debug] Starting systemd unit: avahi-daemon.service
[debug] Starting systemd unit: avahi-daemon.socket
[debug] Starting logging infrastructure
[warn] Invalid firewall mode: . Reverting to state: off
Details on the environment:
balena --version
balenaEngine version 20.10.12, build 73c78258302d94f9652da995af6f65a621fac918