Hmm, no preloaded image doesn’t communicate with my openBalena server:
Here is a log of supervisor:
root@yokoso:~# balena ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6e5af6ad869e balena/rpi-supervisor:v11.12.4 "/usr/src/app/entry.…" 6 minutes ago Up 6 minutes (healthy) resin_supervisor
aca145dae1ab 9699d4ae6e16 "/usr/bin/entry.sh b…" 2 months ago Up 10 hours yokoso_5_5
root@yokoso:~# balena logs 6
WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping
Warning: Ignoring extra certs from `/etc/ssl/certs/balenaRootCA.pem`, load failed: error:02001002:system library:fopen:No such file or directory
[info] Supervisor v11.12.4 starting up...
[info] Setting host to discoverable
[warn] Invalid firewall mode: . Reverting to state: off
[info] 🔥 Applying firewall mode: of
[debug] Starting logging infrastructure
[info] Starting firewall
[success] 🔥 Firewall mode applie
[debug] Starting api binder
[event] Event: Supervisor start {}
[error] LogBackend: unexpected error: Error: self signed certificate in certificate chain
[error] at TLSSocket.onConnectSecure (_tls_wrap.js:1474:34)
[error] at TLSSocket.emit (events.js:310:20)
[error] at TLSSocket._finishInit (_tls_wrap.js:917:8)
[error] at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:687:12)
[debug] Performing database cleanup for container log timestamps
[info] Previous engine snapshot was not stored. Skipping cleanup.
[debug] Handling of local mode switch is completed
[debug] Connectivity check enabled: true
[debug] Starting periodic check for IP addresses
[info] Reporting initial state, supervisor version and API info
[debug] VPN status path exists.
[info] VPN connection is not active.
(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.
[info] Waiting for connectivity...
[info] Attempting to load any preloaded applications
[success] Preloading complete
[info] Starting API server
[info] Supervisor API successfully started on port 48484
[info] Applying target state
[debug] Ensuring device is provisioned
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[error] LogBackend: unexpected error: Error: self signed certificate in certificate chain
[error] at TLSSocket.onConnectSecure (_tls_wrap.js:1474:34)
[error] at TLSSocket.emit (events.js:310:20)
[error] at TLSSocket._finishInit (_tls_wrap.js:917:8)
[error] at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:687:12)
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[debug] Finished applying target state
[success] Device state apply success
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[api] GET /v1/healthy 200 - 182.323 ms
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
[event] Event: Device bootstrap {}
[info] New device detected. Provisioning...
[event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":""}}
Is there any other thing I should check? Seems certification issue?
Here are commmands I had used to preload the image file:
balena os configure balena.img --app yokosoApp
balena preload balena.img --add-certificate <OPENBALENA CERT FILE> --app yokosoApp --commit current --splash-image my_splash.png
Thanks!