Device service not starting

Hi,
I have deployed a release without any issues,
Below are my release logs,

[Info]     Starting build for nginx, user g_gaurav_rokade
[Info]     Dashboard link: https://dashboard.balena-cloud.com/apps/1944335/devices
[Info]     Building on arm05
[Info]     Pulling previous images for caching purposes...
[Success]  Successfully pulled cache images
[Info]     Starting to build main
[Success]  Successfully built service main
[Info]     Uploading images
[Success]  Successfully uploaded images
[Info]     Built on arm05
[Success]  Release successfully created!
[Info]     Release: 79a3cfc721b86822c893125e0ac18633 (id: 2205495)
[Info]     Build finished in 1 minute, 13 seconds

After the release my service is not starting with the error and just printing “Starting service 'main sha256:f36d067b00b0f3c786c5a4c00dbf48a224132c8e8c41a7fd7303d12120b66994” in the logs.
I have provided access to below device summary,

Hi, thanks for sharing the details and device access, however as I can see the device is currently offline. If you can make it online, me or someone from the team can take a look. Additionally you can run diagnostics to catch some obvious potential causes.

Hi @iayanpahwa My device is online now, Can you please guide me through? I already checked the Diagnostics option, However it was not much helpful.

Hi @spitfire9,

It looks like the device is offline again. Since we seem to keep missing each other, why don’t you gather some information on your own? To start, the journal logs of the device Supervisor, using journalctl -u balena-supervisor -u resin-supervisor -xef -n 200, could tell you why the service is restarting over and over, since it looks like it’s intended to stay up once started.

Thanks,
Christina

You’ll find our masterclass for debugging various device issues here: Balena Device Debugging Masterclass - Balena Documentation

Hi,

My device is again on and i have attached the logs which you requested, Can you please guide me through?

root@0fb290a:~# journalctl -u balena-supervisor -u resin-supervisor -xef -n 200
-- Journal begins at Wed 2022-06-22 21:00:02 UTC. --
Jun 22 21:00:19 0fb290a balena-supervisor[2072]: Error response from daemon: No such container: resin_supervisor
Jun 22 21:00:20 0fb290a balena-supervisor[2088]: balena_supervisor
Jun 22 21:00:20 0fb290a balena-supervisor[2104]: active
Jun 23 07:21:06 0fb290a balena-supervisor[2105]: Container config has not changed
Jun 23 07:21:08 0fb290a balena-supervisor[2318]: find: /mnt/root/tmp/balena-supervisor/services: No such file or directory
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [info]    Supervisor v14.0.6 starting up...
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [info]    Setting host to discoverable
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [warn]    Invalid firewall mode: . Reverting to state: off
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [info]    Applying firewall mode: off
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [debug]   Starting systemd unit: avahi-daemon.service
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [debug]   Starting systemd unit: avahi-daemon.socket
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [debug]   Starting logging infrastructure
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [debug]   Performing database cleanup for container log timestamps
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [info]    Starting firewall
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [info]    Previous engine snapshot was not stored. Skipping cleanup.
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [debug]   Handling of local mode switch is completed
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: (node:1) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Jun 23 07:21:12 0fb290a balena-supervisor[2318]: [info]    API Binder bound to: https://api.balena-cloud.com/v6/
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [success] Firewall mode applied
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Starting api binder
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [event]   Event: Supervisor start {}
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Connectivity check enabled: true
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Starting periodic check for IP addresses
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [info]    Reporting initial state, supervisor version and API info
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Skipping preloading
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [info]    Starting API server
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [info]    Supervisor API successfully started on port 48484
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   VPN status path exists.
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Ensuring device is provisioned
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [info]    VPN connection is active.
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [info]    Waiting for connectivity...
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Starting current state report
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Starting target state poll
Jun 23 07:21:13 0fb290a balena-supervisor[2318]: [debug]   Spawning journald with: chroot  /mnt/root journalctl -a --follow -o json _SYSTEMD_UNIT=balena.service
Jun 23 07:21:14 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:21:16 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [error]   Updating failed, but there's another update scheduled immediately:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:21:17 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:21:18 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 2000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:18 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:18 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:18 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:18 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:18 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:20 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:21:21 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:21:22 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 4000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:22 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:22 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:22 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:22 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:22 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:23 0fb290a balena-supervisor[2318]: [info]    Internet Connectivity: OK
Jun 23 07:21:26 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:21:26 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:21:26 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:21:28 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 8000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:28 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:28 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:28 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:28 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:28 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:36 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:21:36 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 16000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:37 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:21:53 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:21:53 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:21:53 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 32000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:21:54 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:22:08 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:22:19 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:22:26 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:22:26 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:22:27 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 64000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:22:27 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:22:27 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:22:27 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:22:27 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:22:27 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:23:31 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:23:31 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 128000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:23:32 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:23:43 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:25:40 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:25:40 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 256000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:25:41 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:25:52 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:26:08 0fb290a balena-supervisor[2318]: [api]     GET /v1/healthy 200 - 15.366 ms
Jun 23 07:29:57 0fb290a balena-supervisor[2318]: [info]    Applying target state
Jun 23 07:29:57 0fb290a balena-supervisor[2318]: [event]   Event: Service start {"service":{"appId":1944335,"serviceId":1623993,"serviceName":"main","commit":"79a3cfc721b86822c893125e0ac18633","releaseId":2205495}}
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]   Scheduling another update attempt in 512000ms due to failure:  Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied: unknown  Steps:["start"]
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]         at fn (/usr/src/app/dist/app.js:6:9797)
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]       at runMicrotasks (<anonymous>)
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Jun 23 07:29:58 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:30:09 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:30:20 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:30:30 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:31:08 0fb290a balena-supervisor[2318]: [api]     GET /v1/healthy 200 - 10.495 ms
Jun 23 07:31:11 0fb290a balena-supervisor[2318]: [debug]   Attempting container log timestamp flush...
Jun 23 07:31:11 0fb290a balena-supervisor[2318]: [debug]   Container log timestamp flush complete
Jun 23 07:31:11 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:31:22 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:31:33 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:32:34 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:34:57 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:35:08 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:36:09 0fb290a balena-supervisor[2318]: [api]     GET /v1/healthy 200 - 4.971 ms
Jun 23 07:36:09 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:36:40 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:37:01 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:37:11 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:37:22 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:37:33 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud
Jun 23 07:37:53 0fb290a balena-supervisor[2318]: [info]    Reported current state to the cloud

Hi Gaurav,
I see the following line in the logs:

OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "/docker-entrypoint.sh": permission denied

Are you sure that the file docker-entrypoint.sh in your container has executable permissions? If not, doing a chmod +x for the file should help.
If doing that does not solve your problem, then feel free to share your Dockerfile for us to look at.

Thanks and regards,
Pranav

Hi,

Even chmod is not helping, I have attached my file contents below,

#!/bin/sh
# vim:sw=4:ts=4:et

set -e

if [ -z "${NGINX_ENTRYPOINT_QUIET_LOGS:-}" ]; then
    exec 3>&1
else
    exec 3>/dev/null
fi

if [ "$1" = "nginx" -o "$1" = "nginx-debug" ]; then
    if /usr/bin/find "/docker-entrypoint.d/" -mindepth 1 -maxdepth 1 -type f -print -quit 2>/dev/null | read v; then
        echo >&3 "$0: /docker-entrypoint.d/ is not empty, will attempt to perform configuration"

        echo >&3 "$0: Looking for shell scripts in /docker-entrypoint.d/"
        find "/docker-entrypoint.d/" -follow -type f -print | sort -n | while read -r f; do
            case "$f" in
                *.sh)
                    if [ -x "$f" ]; then
                        echo >&3 "$0: Launching $f";
                        "$f"
                    else
                        # warn on shell scripts without exec bit
                        echo >&3 "$0: Ignoring $f, not executable";
                    fi
                    ;;
                *) echo >&3 "$0: Ignoring $f";;
            esac
        done

        echo >&3 "$0: Configuration complete; ready for start up"
    else
        echo >&3 "$0: No files found in /docker-entrypoint.d/, skipping configuration"
    fi
fi

exec "$@"

This issue is sorted by adding bash in the entrypoint,
ENTRYPOINT [“bash”,“docker-entrypoint.sh”]