Download error, URL wrong

That would be very helpful, please let us know if and when you are able to do that! Thank you @danielgnzlzvll :slight_smile:

Hi,

I have the same issue right now. Device went down 5 days ago. Trying to get the device online again, but failing:

Apr 27 16:31:11 neonlink 582dcc81d013[808]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"&quot;uuid&quot; must be unique.","stack":"Error: &quot;uuid&quot; must be unique.\n    at /usr/src/app/dist/app.js:307:79659\n    at c.f (/usr/src/app/dist/app.js:312:352231)\n    at c (/usr/src/app/dist/app.js:9:77523)\n    at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)\n    at O._settlePromise (/usr/src/app/dist/app.js:312:326241)\n    at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)\n    at O._settlePromises (/usr/src/app/dist/app.js:312:328292)\n    at O._fulfill (/usr/src/app/dist/app.js:312:327310)\n    at q._callback (/usr/src/app/dist/app.js:122:15665)\n    at q.t._callback.t.callback.t.callback (/usr/src/app/dist/app.js:544:5327)\n    at q.emit (events.js:189:13)\n    at q.<anonymous> (/usr/src/app/dist/app.js:544:18140)\n    at q.emit (events.js:189:13)\n    at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:544:16982)\n    at Object.onceWrapper (events.js:277:13)\n    at IncomingMessage.emit (events.js:194:15)\n    at endReadableNT (_stream_readable.js:1125:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)"}}
Apr 27 16:31:28 neonlink 582dcc81d013[808]: [info]    Applying target state
Apr 27 16:31:28 neonlink 582dcc81d013[808]: [warn]    Ignoring unsupported or unknown compose fields: containerName
Apr 27 16:31:28 neonlink 582dcc81d013[808]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884@sha256:c24ee79503334be04517fbdf2323e647702bcb997d179c58dad9a78729ed01b7","appId":1504202,"serviceId":419142,"serviceName":"neonlink_build","imageId":2071507,"releaseId":1303578,"dependent":0,"dockerImageId":null}}
Apr 27 16:31:30 neonlink balenad[808]: time="2020-04-27T16:31:30.397393131Z" level=error msg="Not continuing with pull after error: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
Apr 27 16:31:30 neonlink balenad[808]: time="2020-04-27T16:31:30.397609588Z" level=info msg="Ignoring extra error returned from registry: unauthorized: authentication required"
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [event]   Event: Image download error {"error":{"message":"(HTTP code 404) unexpected - pull access denied for registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884, repository does not exist or may require 'docker login' ","stack":"Error: (HTTP code 404) unexpected - pull access denied for registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884, repository does not exist or may require 'docker login' \n    at /usr/src/app/dist/app.js:727:42130\n    at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:727:42074)\n    at IncomingMessage.emit (events.js:194:15)\n    at endReadableNT (_stream_readable.js:1125:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)"},"image":{"name":"registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884@sha256:c24ee79503334be04517fbdf2323e647702bcb997d179c58dad9a78729ed01b7","appId":1504202,"serviceId":419142,"serviceName":"neonlink_build","imageId":2071507,"releaseId":1303578,"dependent":0,"dockerImageId":null}}
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [warn]    Ignoring unsupported or unknown compose fields: containerName
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]   Scheduling another update attempt in 64000ms due to failure:  Error: Failed to apply state transition steps.  Steps:["fetch"]
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]         at /usr/src/app/dist/app.js:614:16375
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at c (/usr/src/app/dist/app.js:9:77523)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromise (/usr/src/app/dist/app.js:312:326241)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromises (/usr/src/app/dist/app.js:312:328181)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at d (/usr/src/app/dist/app.js:312:329886)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at p (/usr/src/app/dist/app.js:312:329825)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at s._drainQueues (/usr/src/app/dist/app.js:312:331345)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at Immediate.drainQueues [as _onImmediate] (/usr/src/app/dist/app.js:312:329567)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at runCallback (timers.js:705:18)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at tryOnImmediate (timers.js:676:5)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at processImmediate (timers.js:658:5)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]   Device state apply error Error: Failed to apply state transition steps.  Steps:["fetch"]
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]         at /usr/src/app/dist/app.js:614:16375
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at c (/usr/src/app/dist/app.js:9:77523)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromise (/usr/src/app/dist/app.js:312:326241)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at O._settlePromises (/usr/src/app/dist/app.js:312:328181)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at d (/usr/src/app/dist/app.js:312:329886)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at p (/usr/src/app/dist/app.js:312:329825)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at s._drainQueues (/usr/src/app/dist/app.js:312:331345)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at Immediate.drainQueues [as _onImmediate] (/usr/src/app/dist/app.js:312:329567)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at runCallback (timers.js:705:18)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at tryOnImmediate (timers.js:676:5)
Apr 27 16:31:30 neonlink 582dcc81d013[808]: [error]       at processImmediate (timers.js:658:5)
Apr 27 16:31:41 neonlink 582dcc81d013[808]: [event]   Event: Device bootstrap {}
Apr 27 16:31:41 neonlink 582dcc81d013[808]: [info]    New device detected. Provisioning...
Apr 27 16:31:42 neonlink 582dcc81d013[808]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"&quot;uuid&quot; must be unique.","stack":"Error: &quot;uuid&quot; must be unique.\n    at /usr/src/app/dist/app.js:307:79659\n    at c.f (/usr/src/app/dist/app.js:312:352231)\n    at c (/usr/src/app/dist/app.js:9:77523)\n    at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)\n    at O._settlePromise (/usr/src/app/dist/app.js:312:326241)\n    at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)\n    at O._settlePromises (/usr/src/app/dist/app.js:312:328292)\n    at O._fulfill (/usr/src/app/dist/app.js:312:327310)\n    at q._callback (/usr/src/app/dist/app.js:122:15665)\n    at q.t._callback.t.callback.t.callback (/usr/src/app/dist/app.js:544:5327)\n    at q.emit (events.js:189:13)\n    at q.<anonymous> (/usr/src/app/dist/app.js:544:18140)\n    at q.emit (events.js:189:13)\n    at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:544:16982)\n    at Object.onceWrapper (events.js:277:13)\n    at IncomingMessage.emit (events.js:194:15)\n    at endReadableNT (_stream_readable.js:1125:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)"}}
Apr 27 16:32:12 neonlink 582dcc81d013[808]: [event]   Event: Device bootstrap {}
Apr 27 16:32:12 neonlink 582dcc81d013[808]: [info]    New device detected. Provisioning...
Apr 27 16:32:14 neonlink 582dcc81d013[808]: [event]   Event: Device bootstrap failed, retrying {"delay":30000,"error":{"message":"&quot;uuid&quot; must be unique.","stack":"Error: &quot;uuid&quot; must be unique.\n    at /usr/src/app/dist/app.js:307:79659\n    at c.f (/usr/src/app/dist/app.js:312:352231)\n    at c (/usr/src/app/dist/app.js:9:77523)\n    at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)\n    at O._settlePromise (/usr/src/app/dist/app.js:312:326241)\n    at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)\n    at O._settlePromises (/usr/src/app/dist/app.js:312:328292)\n    at O._fulfill (/usr/src/app/dist/app.js:312:327310)\n    at q._callback (/usr/src/app/dist/app.js:122:15665)\n    at q.t._callback.t.callback.t.callback (/usr/src/app/dist/app.js:544:5327)\n    at q.emit (events.js:189:13)\n    at q.<anonymous> (/usr/src/app/dist/app.js:544:18140)\n    at q.emit (events.js:189:13)\n    at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:544:16982)\n    at Object.onceWrapper (events.js:277:13)\n    at IncomingMessage.emit (events.js:194:15)\n    at endReadableNT (_stream_readable.js:1125:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)"}}
Apr 27 16:32:34 neonlink 582dcc81d013[808]: [info]    Applying target state
Apr 27 16:32:34 neonlink 582dcc81d013[808]: [warn]    Ignoring unsupported or unknown compose fields: containerName
Apr 27 16:32:35 neonlink 582dcc81d013[808]: [event]   Event: Docker image download {"image":{"name":"registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884@sha256:c24ee79503334be04517fbdf2323e647702bcb997d179c58dad9a78729ed01b7","appId":1504202,"serviceId":419142,"serviceName":"neonlink_build","imageId":2071507,"releaseId":1303578,"dependent":0,"dockerImageId":null}}
Apr 27 16:32:36 neonlink balenad[808]: time="2020-04-27T16:32:36.825212739Z" level=error msg="Not continuing with pull after error: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
Apr 27 16:32:36 neonlink balenad[808]: time="2020-04-27T16:32:36.825337790Z" level=info msg="Ignoring extra error returned from registry: unauthorized: authentication required"
Apr 27 16:32:36 neonlink 582dcc81d013[808]: [event]   Event: Image download error {"error":{"message":"(HTTP code 404) unexpected - pull access denied for registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884, repository does not exist or may require 'docker login' ","stack":"Error: (HTTP code 404) unexpected - pull access denied for registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884, repository does not exist or may require 'docker login' \n    at /usr/src/app/dist/app.js:727:42130\n    at IncomingMessage.<anonymous> (/usr/src/app/dist/app.js:727:42074)\n    at IncomingMessage.emit (events.js:194:15)\n    at endReadableNT (_stream_readable.js:1125:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)"},"image":{"name":"registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884@sha256:c24ee79503334be04517fbdf2323e647702bcb997d179c58dad9a78729ed01b7","appId":1504202,"serviceId":419142,"serviceName":"neonlink_build","imageId":2071507,"releaseId":1303578,"dependent":0,"dockerImageId":null}}
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [warn]    Ignoring unsupported or unknown compose fields: containerName
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]   Scheduling another update attempt in 128000ms due to failure:  Error: Failed to apply state transition steps.  Steps:["fetch"]
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]         at /usr/src/app/dist/app.js:614:16375
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at c (/usr/src/app/dist/app.js:9:77523)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromise (/usr/src/app/dist/app.js:312:326241)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromises (/usr/src/app/dist/app.js:312:328181)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at d (/usr/src/app/dist/app.js:312:329886)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at p (/usr/src/app/dist/app.js:312:329825)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at s._drainQueues (/usr/src/app/dist/app.js:312:331345)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at Immediate.drainQueues [as _onImmediate] (/usr/src/app/dist/app.js:312:329567)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at runCallback (timers.js:705:18)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at tryOnImmediate (timers.js:676:5)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at processImmediate (timers.js:658:5)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]   Device state apply error Error: Failed to apply state transition steps.  Steps:["fetch"]
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]         at /usr/src/app/dist/app.js:614:16375
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at c (/usr/src/app/dist/app.js:9:77523)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromiseFromHandler (/usr/src/app/dist/app.js:312:325441)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromise (/usr/src/app/dist/app.js:312:326241)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromise0 (/usr/src/app/dist/app.js:312:326940)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at O._settlePromises (/usr/src/app/dist/app.js:312:328181)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at d (/usr/src/app/dist/app.js:312:329886)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at p (/usr/src/app/dist/app.js:312:329825)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at s._drainQueues (/usr/src/app/dist/app.js:312:331345)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at Immediate.drainQueues [as _onImmediate] (/usr/src/app/dist/app.js:312:329567)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at runCallback (timers.js:705:18)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at tryOnImmediate (timers.js:676:5)
Apr 27 16:32:37 neonlink 582dcc81d013[808]: [error]       at processImmediate (timers.js:658:5)

27.04.20 18:32:36 (+0200) Failed to download image 'registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884@sha256:c24ee79503334be04517fbdf2323e647702bcb997d179c58dad9a78729ed01b7' due to '(HTTP code 404) unexpected - pull access denied for registry2.balena-cloud.com/v2/21c30ee8465cdd06e3ce77c76feb2884, repository does not exist or may require 'docker login'

Hi,

Can you provide the make/model of the SD card?

Thanks,
John

It’s possible this error isn’t due to the SD card. I’m getting download errors right now, but I traced it down to my deploy jobs failing to upload the images to the registry… See here: Balena deploy does not work suddenly

Hey, the balena deploy issue was fixed and is available in balena-cli v11.31.23