Hi,
I am currently trying to setup an internal openBalena instance for testing purposes.
The server setup went pretty smoothly but I am now stuck at the deploy process.
I followed the Getting started guide, only change is that I deployed balenaDash instead using balena deploy myApp --logs --source . --emulated
. Only nothing happens on my development Rpi3.
The device appears when using the local command balena devices
$ balena devices
ID UUID DEVICE NAME DEVICE TYPE APPLICATION NAME STATUS IS ONLINE SUPERVISOR VERSION OS VERSION DASHBOARD URL
1 04e43a0 hidden-dream raspberrypi3 myApp Idle true 9.15.7 balenaOS 2.38.0+rev1 https://dashboard.openbalena.<redacted>/devices/04e43a0f842d3a0914f6d39f5fef042b/summary
The device shows as Idle
from the server POV:
$ balena device 04e43a0
== HIDDEN DREAM
ID: 1
DEVICE TYPE: raspberrypi3
STATUS: idle
IS ONLINE: true
IP ADDRESS: <redacted>
APPLICATION NAME: myApp
UUID: 04e43a0f842d3a0914f6d39f5fef042b
COMMIT: 1a1a33c8eed1c99b56e5ae801b163b68
SUPERVISOR VERSION: 9.15.7
OS VERSION: balenaOS 2.38.0+rev1
DASHBOARD URL: https://dashboard.openbalena.<redacted>/devices/04e43a0f842d3a0914f6d39f5fef042b/summary
I successfully ssh’d into my development Rpi3 using ssh root@<ip> -p 22222
.
Here are the logs from the supervisor, using journalctl -u resin-supervisor -fn100
:
root@04e43a0:~# journalctl -u resin-supervisor -fn100-- Logs begin at Wed 2019-06-12 18:01:15 UTC. --
Jul 25 16:17:44 04e43a0 systemd[1]: Starting Resin supervisor...
Jul 25 16:17:45 04e43a0 resin-supervisor[1615]: resin_supervisorJul 25 16:17:45 04e43a0 resin-supervisor[1655]: active
Jul 25 16:17:45 04e43a0 systemd[1]: Started Resin supervisor.Jul 25 16:17:46 04e43a0 resin-supervisor[1666]: Container config has not changed
Jul 25 16:17:50 04e43a0 resin-supervisor[1666]: Starting system message bus: dbus.
Jul 25 16:17:50 04e43a0 resin-supervisor[1666]: * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Jul 25 16:17:50 04e43a0 resin-supervisor[1666]: ...done.
Jul 25 16:18:00 04e43a0 resin-supervisor[1666]: (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.
Jul 25 16:18:00 04e43a0 resin-supervisor[1666]: Starting event tracker
Jul 25 16:18:00 04e43a0 resin-supervisor[1666]: Starting up api binder
Jul 25 16:18:00 04e43a0 resin-supervisor[1666]: Starting logging infrastructure
Jul 25 16:18:00 04e43a0 resin-supervisor[1666]: Event: Supervisor start {}
Jul 25 16:18:00 04e43a0 resin-supervisor[1666]: Performing database cleanup for container log timestamps
Jul 25 16:18:01 04e43a0 resin-supervisor[1666]: Connectivity check enabled: true
Jul 25 16:18:01 04e43a0 resin-supervisor[1666]: Starting periodic check for IP addresses
Jul 25 16:18:01 04e43a0 resin-supervisor[1666]: Reporting initial state, supervisor version and API info
Jul 25 16:18:01 04e43a0 resin-supervisor[1666]: VPN status path exists.
Jul 25 16:18:01 04e43a0 resin-supervisor[1666]: Waiting for connectivity...
Jul 25 16:18:02 04e43a0 resin-supervisor[1666]: Skipping preloading
Jul 25 16:18:02 04e43a0 resin-supervisor[1666]: Starting API server
Jul 25 16:18:02 04e43a0 resin-supervisor[1666]: Applying target state
Jul 25 16:18:02 04e43a0 resin-supervisor[1666]: Ensuring device is provisioned
Jul 25 16:18:02 04e43a0 resin-supervisor[1666]: Starting current state report
Jul 25 16:18:02 04e43a0 resin-supervisor[1666]: Starting target state poll
Jul 25 16:18:03 04e43a0 resin-supervisor[1666]: Supervisor API listening on allowed interfaces only
Jul 25 16:18:03 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:08 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:08 04e43a0 resin-supervisor[1666]: Finished applying target state
Jul 25 16:18:08 04e43a0 resin-supervisor[1666]: Apply success!
Jul 25 16:18:08 04e43a0 resin-supervisor[1666]: Applying target state
Jul 25 16:18:08 04e43a0 resin-supervisor[1666]: Finished applying target state
Jul 25 16:18:08 04e43a0 resin-supervisor[1666]: Apply success!
Jul 25 16:18:10 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:11 04e43a0 resin-supervisor[1666]: Internet Connectivity: OK
Jul 25 16:18:14 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:17 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:21 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:24 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:30 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:33 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:42 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:44 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:18:50 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:19:00 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:19:02 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:19:31 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:19:33 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:19:50 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:20:27 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:20:29 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:21:17 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:21:33 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:21:35 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:22:22 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:22:38 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:22:40 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:22:50 04e43a0 resin-supervisor[1666]: Supervisor API: GET /v1/healthy 200 - 31.215 ms
Jul 25 16:23:27 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:23:43 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:23:45 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:24:32 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:24:48 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:24:50 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:25:32 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:25:54 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:25:56 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:26:32 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:26:59 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:27:02 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:27:33 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:27:51 04e43a0 resin-supervisor[1666]: Supervisor API: GET /v1/healthy 200 - 9.975 ms
Jul 25 16:27:59 04e43a0 resin-supervisor[1666]: Attempting container log timestamp flush...
Jul 25 16:28:00 04e43a0 resin-supervisor[1666]: Container log timestamp flush complete
Jul 25 16:28:04 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:28:07 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:28:33 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:29:09 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:29:11 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:29:33 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:30:14 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:30:17 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:30:33 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:31:19 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:31:21 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:31:33 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:32:24 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:32:27 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:32:33 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
Jul 25 16:32:52 04e43a0 resin-supervisor[1666]: Supervisor API: GET /v1/healthy 200 - 9.555 ms
Jul 25 16:33:30 04e43a0 resin-supervisor[1666]: Event: Service restart {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:33:32 04e43a0 resin-supervisor[1666]: Event: Service exit {"service":{"appId":1,"serviceId":1,"serviceName":"wpe","releaseId":1}}
Jul 25 16:33:34 04e43a0 resin-supervisor[1666]: LogBackend: server responded with status code: 504
I tried looking for this 504 error in the openBalena server logs but can’t seem to find anything.
Any help is greatly appreciated.
Thanks,
Erwan