Container access is only available for running containers

  • From balena ps -a, I get:
CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS                 PORTS               NAMES
521fd32e3037        balena/aarch64-supervisor:v11.14.0   "/usr/src/app/entry.…"   4 hours ago         Up 4 hours (healthy)                       resin_supervisor
b01fd69e1080        79f25a955cfd                         "./start.sh python3 …"   16 hours ago        Created                                    main_2858636_1573311
  • From journalctl -fn100 -uresin-supervisor, I get:
-- Logs begin at Thu 2020-08-06 07:25:58 UTC. --
Oct 21 08:35:40 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:40 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:40 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:40 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:40 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:41 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:35:41 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:42 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:44 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:35:44 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:45 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:49 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:57 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]   LogBackend: server responded with status code: 502
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:35:58 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:36:14 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:36:14 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:36:15 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:36:47 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:36:47 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:36:48 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:37:30 45bfe66 resin-supervisor[1786]: [api]     GET /v1/healthy 200 - 5.671 ms
Oct 21 08:37:31 45bfe66 resin-supervisor[1786]: [debug]   Attempting container log timestamp flush...
Oct 21 08:37:31 45bfe66 resin-supervisor[1786]: [debug]   Container log timestamp flush complete
Oct 21 08:37:52 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:37:52 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:37:53 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:40:01 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:42:31 45bfe66 resin-supervisor[1786]: [api]     GET /v1/healthy 200 - 5.652 ms
Oct 21 08:44:17 45bfe66 resin-supervisor[1786]: [info]    Applying target state
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [event]   Event: Service start {"service":{"appId":1756818,"serviceId":745995,"serviceName":"main","releaseId":1573311}}
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [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:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]   Device state apply error Error: Failed to apply state transition steps. (HTTP code 400) unexpected - OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"./start.sh\": permission denied": unknown  Steps:["start"]
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]         at /usr/src/app/dist/app.js:10:8684
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]       at runMicrotasks (<anonymous>)
Oct 21 08:44:18 45bfe66 resin-supervisor[1786]: [error]       at processTicksAndRejections (internal/process/task_queues.js:97:5)

I think is because of ENTRYPOINT ["./start.sh"] in my Dockerfile