thank you guys for making balenaOS! I try to get a simple node.js with the gcloudsdk working but the image can’t be built. This is the message I get from the the balena cli in debug mode:
Error: connect ECONNREFUSED 192.168.2.122:48484
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1056:14)
(node:23391) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
I can confirm that the device is online and I can balena ssh mydevice.local.
The build process seems to start correct because the balena cli streams for example the curl result from the dockerfile. But at some point it throws the error message shown above. It‘s hard to debug - I can build the image on my local machine without any errors.
It seems like the supervisor is having trouble starting up cleanly. I would recommend running the checks to see if anything is obviously wrong (available in the dashboard on the left navigation column at the bottom, or dashboard.balena-cloud.com/devices/{{UUID}}/diagnostics. If nothing is obviously amiss (via the checks interface), you can use the Device Diagnostics tab to grab some logs for further analysis.
Nov 07 19:41:41 raspi resin-supervisor[1347]: [success] Device state apply success
Nov 07 19:43:57 raspi resin-supervisor[1347]: [api] GET /ping 200 - 9.770 ms
Nov 07 19:43:57 raspi resin-supervisor[1347]: [api] GET /v2/version 200 - 53.431 ms
Nov 07 19:44:00 raspi resin-supervisor[1347]: [api] GET /v2/local/device-info 200 - 15.660 ms
Nov 07 19:46:38 raspi resin-supervisor[1347]: [api] GET /v1/healthy 200 - 12.664 ms
Nov 07 19:47:14 raspi resin-supervisor[1347]: time="2019-11-07T19:47:14.332387967Z" level=error msg="error waiting for container: unexpected EOF"
Nov 07 19:47:14 raspi systemd[1]: resin-supervisor.service: Main process exited, code=exited, status=125/n/a
Nov 07 19:47:14 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:47:30 raspi resin-supervisor[1817]: Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
Nov 07 19:47:30 raspi resin-supervisor[1825]: activating
Nov 07 19:47:30 raspi systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 07 19:47:30 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:47:30 raspi systemd[1]: Failed to start Resin supervisor.
Nov 07 19:48:23 raspi resin-supervisor[1869]: Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
Nov 07 19:48:23 raspi resin-supervisor[1877]: activating
Nov 07 19:48:23 raspi systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 07 19:48:23 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:48:23 raspi systemd[1]: Failed to start Resin supervisor.
Nov 07 19:48:43 raspi resin-supervisor[1922]: Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
Nov 07 19:48:43 raspi resin-supervisor[1931]: activating
Nov 07 19:48:43 raspi systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 07 19:48:43 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:48:43 raspi systemd[1]: Failed to start Resin supervisor.
Nov 07 19:49:56 raspi resin-supervisor[1974]: Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
Nov 07 19:49:56 raspi resin-supervisor[1982]: activating
Nov 07 19:49:56 raspi systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 07 19:49:56 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:49:56 raspi systemd[1]: Failed to start Resin supervisor.
Nov 07 19:51:07 raspi resin-supervisor[2029]: Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
Nov 07 19:51:07 raspi resin-supervisor[2037]: inactive
Nov 07 19:51:07 raspi systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 07 19:51:07 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:51:07 raspi systemd[1]: Failed to start Resin supervisor.
Nov 07 19:52:11 raspi resin-supervisor[2084]: Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?
Nov 07 19:52:11 raspi resin-supervisor[2093]: activating
Nov 07 19:52:11 raspi systemd[1]: resin-supervisor.service: Control process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 07 19:52:11 raspi systemd[1]: resin-supervisor.service: Failed with result 'exit-code'.
Nov 07 19:52:11 raspi systemd[1]: Failed to start Resin supervisor.
Nov 07 19:53:54 raspi resin-supervisor[2537]: resin_supervisor
Nov 07 19:53:54 raspi resin-supervisor[2580]: active
Nov 07 19:53:56 raspi resin-supervisor[2581]: Container config has not changed
Nov 07 19:54:01 raspi resin-supervisor[2581]: Starting system message bus: dbus.
Nov 07 19:54:01 raspi resin-supervisor[2581]: * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Nov 07 19:54:01 raspi resin-supervisor[2581]: ...done.
Nov 07 19:54:03 raspi resin-supervisor[2581]: [info] Supervisor v10.3.7 starting up...
What does this line mean?
Nov 07 19:47:14 raspi resin-supervisor[1347]: time="2019-11-07T19:47:14.332387967Z" level=error msg="error waiting for container: unexpected EOF"
I can build the Dockerfile on macOS without any erros. Do I need to convert LF or something like this?
It looks like the engine is having some problems, That error you highlighted is often reported when the engine crashes. Could you paste the output of journalctl -f -u balena -n 1000 please? This should point to the issue.
It looks like containerd (the component that actually runs all the containers on the device) isn’t coming up correctly… I can see stacktraces from it in those engine logs
It also looks like we’re missing the beginning of the stacktrace. It would be helpful to have that too. Can you let me know which version of balenaOS you’re running?