Persistent "Failed to download image due to 'connect ECONNREFUSED /var/run/balena-engine.sock" error

Hi there,

I’m trying to set up the National Rail sign project on my Raspberry Pi 4, and I keep hitting the above error on first download-from-cloud device setup. Log snippets below:

14.05.20 18:45:07 (+0100) Supervisor starting
14.05.20 18:45:11 (+0100) Applying configuration change {“SUPERVISOR_POLL_INTERVAL”:“900000”,“SUPERVISOR_DELTA”:“1”,“SUPERVISOR_DELTA_VERSION”:“3”}
14.05.20 18:45:11 (+0100) Applied configuration change {“SUPERVISOR_POLL_INTERVAL”:“900000”,“SUPERVISOR_DELTA”:“1”,“SUPERVISOR_DELTA_VERSION”:“3”}
14.05.20 18:45:12 (+0100) Creating network ‘default’
14.05.20 18:45:12 (+0100) Creating volume ‘resin-data’
14.05.20 18:45:13 (+0100) Downloading image [link removed to allow post]
14.05.20 18:50:51 (+0100) Failed to download image [link removed to allow post] due to ‘connect ECONNREFUSED /var/run/balena-engine.sock’
14.05.20 18:51:53 (+0100) Supervisor starting
14.05.20 18:52:03 (+0100) Downloading image [link removed to allow post]
14.05.20 18:57:48 (+0100) Failed to download image [link removed to allow post]due to ‘connect ECONNREFUSED /var/run/balena-engine.sock’
14.05.20 18:59:25 (+0100) Supervisor starting
14.05.20 18:59:26 (+0100) Downloading image '[link removed to allow post]

(This repeats over and over)

My Raspberry Pi 4 is connected to Ethernet, but it does the same over wifi as well, with refreshed SD card images on each occasion. It gets to anywhere between 20 and 60 percent complete before I get a ECONNREFUSED error. Does anyone have any advice?

I’ve granted 12 hours of support access for UDID 4dbdad259c01df1443125fa0ac23e27b. I’m new to balena so I’ve probably noobed it up somewhere…

Cheers in advance!

Hi there, looking at the device diagnostics log, it would appear this device has issues with slow/corrupted SD card. Do you have another SD card you could try to re-provision with?

I’ll dig around in the tat drawer and report back.

No such luck - new one on order and will report back. Thanks!

Cheers, please let us know how it goes with the new hardware.

New SD card arrived from Amazon and that’s sorted everything! Thanks!