Hello,
I am currently trying to set up my first system with openbalena and balenaOS. I have the following configuration:
Openbalena server 3.2.1
BalenaOS 12.3.0 on Raspberry Pi 3
Balena-cli 12.40.0
The server is running and I am able to curl to the server:
% curl api.openbalena.local/ping
OK%
However, after booting up the Pi is not joining my server and is showing following log:
Feb 17 18:20:53 85d0c4a resin-supervisor[2366]: resin_supervisor
Feb 17 18:20:53 85d0c4a resin-supervisor[2376]: active
Feb 17 18:20:56 85d0c4a resin-supervisor[2377]: Container config has not changed
Feb 17 18:21:00 85d0c4a resin-supervisor[2439]: [info] Supervisor v12.3.0 starting up...
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Setting host to discoverable
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [warn] Invalid firewall mode: . Reverting to state: off
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] 🔥 Applying firewall mode: off
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Starting logging infrastructure
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Performing database cleanup for container log timestamps
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Starting firewall
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [success] 🔥 Firewall mode applied
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Starting api binder
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Previous engine snapshot was not stored. Skipping cleanup.
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Handling of local mode switch is completed
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: (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.
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] API Binder bound to: https://api.openbalena.local/v6/
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [event] Event: Supervisor start {}
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Connectivity check enabled: true
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Starting periodic check for IP addresses
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Reporting initial state, supervisor version and API info
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Attempting to load any preloaded applications
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] VPN status path exists.
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] VPN connection is not active.
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Waiting for connectivity...
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Starting API server
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Supervisor API successfully started on port 48484
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] Applying target state
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [debug] Ensuring device is provisioned
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [event] Event: Device bootstrap {}
Feb 17 18:21:01 85d0c4a resin-supervisor[2439]: [info] New device detected. Provisioning...
Feb 17 18:21:02 85d0c4a resin-supervisor[2439]: [debug] Finished applying target state
Feb 17 18:21:02 85d0c4a resin-supervisor[2439]: [success] Device state apply success
Feb 17 18:21:04 85d0c4a resin-supervisor[2439]: [error] LogBackend: unexpected error: Error
Feb 17 18:21:04 85d0c4a resin-supervisor[2439]: [error] at /usr/src/app/dist/app.js:10:917150
Feb 17 18:21:04 85d0c4a resin-supervisor[2439]: [error] at processTicksAndRejections (internal/process/task_queues.js:97:5)
Feb 17 18:21:04 85d0c4a resin-supervisor[2439]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"","stack":"Error\n at /usr/src/app/dist/app.js:10:917150\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"}}
Feb 17 18:21:34 85d0c4a resin-supervisor[2439]: [event] Event: Device bootstrap {}
Feb 17 18:21:34 85d0c4a resin-supervisor[2439]: [info] New device detected. Provisioning...
Feb 17 18:21:37 85d0c4a resin-supervisor[2439]: [event] Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"","stack":"Error\n at /usr/src/app/dist/app.js:10:917150\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"}}
Even when forcing the device to join my server with balena join 192.168.1.118
, the list from balena devices
stays empty.
What do I miss in the process?
Best regards,
Maikel Coenen