Question

Having troubles spinning up App

Hello, I am trying to deploy my Digital Ocean App, but keep running into an issue during the build phase (specifically the “App Upload” step). It has something to do with the DOCR image not being able to be saved. I wasn’t able to find any resources online relating to this issue, so it might be isolated to my project (not entirely sure). I am posting the logs where the error happened. Some relevant information:

  • Engine: Node 12.0.0
  • Not Using a Docker Image

I’m happy to add more context to this post. Please let me know :)

[2023-01-31 04:26:22] ╭──────────── app upload ───────────╼
[2023-01-31 04:26:22] │  › uploading app container image to DOCR
[2023-01-31 04:26:26] │ Adding layer 'heroku/nodejs-engine:nodejs'
[2023-01-31 04:26:28] │ Adding layer 'heroku/nodejs-engine:yarn'
[2023-01-31 04:26:35] │ Adding 2/2 app layer(s)
[2023-01-31 04:26:35] │ Adding layer 'launcher'
[2023-01-31 04:26:35] │ Adding layer 'config'
[2023-01-31 04:26:35] │ Adding label 'io.buildpacks.lifecycle.metadata'
[2023-01-31 04:26:35] │ Adding label 'io.buildpacks.build.metadata'
[2023-01-31 04:26:35] │ Adding label 'io.buildpacks.project.metadata'
[2023-01-31 04:26:35] │ Saving <image-1>...
[2023-01-31 04:26:36] │ *** Images (sha256:335557df0a67859bf33c044925cc8be5d032a6fe7b87b54297fb89556d5c117c):
[2023-01-31 04:26:36] │       <image-2> - Post <registry-uri-4> GET <do-api-uri-3> unexpected status code 400 Bad Request
[2023-01-31 04:26:36] │ ERROR: failed to export: failed to write image to the following tags: [<image-5>: Post <registry-uri-7> GET <do-api-uri-6> unexpected status code 400 Bad Request]
[2023-01-31 04:26:36] │ 
[2023-01-31 04:26:36] │ command exited with code 246
[2023-01-31 04:26:36] │ 
[2023-01-31 04:26:36] │  » an error occurred, trying again (attempt #1)
[2023-01-31 04:26:43] │ Adding layer 'heroku/nodejs-engine:nodejs'
[2023-01-31 04:26:45] │ Adding layer 'heroku/nodejs-engine:yarn'
[2023-01-31 04:26:49] │ Adding 2/2 app layer(s)
[2023-01-31 04:26:49] │ Adding layer 'launcher'
[2023-01-31 04:26:49] │ Adding layer 'config'
[2023-01-31 04:26:49] │ Adding label 'io.buildpacks.lifecycle.metadata'
[2023-01-31 04:26:49] │ Adding label 'io.buildpacks.build.metadata'
[2023-01-31 04:26:49] │ Adding label 'io.buildpacks.project.metadata'
[2023-01-31 04:26:49] │ Saving <image-1>...
[2023-01-31 04:26:49] │ *** Images (sha256:335557df0a67859bf33c044925cc8be5d032a6fe7b87b54297fb89556d5c117c):
[2023-01-31 04:26:49] │       <image-2> - Post <registry-uri-4> GET <do-api-uri-3> unexpected status code 400 Bad Request
[2023-01-31 04:26:50] │ ERROR: failed to export: failed to write image to the following tags: [<image-5>: Post <registry-uri-7> GET <do-api-uri-6> unexpected status code 400 Bad Request]
[2023-01-31 04:26:50] │ 
[2023-01-31 04:26:50] │ command exited with code 246
[2023-01-31 04:26:50] │  ✘ image upload failed
Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
January 31, 2023
Accepted Answer

Hello @shaneciora

The issue might be related to a networking issue that occurred - https://status.digitalocean.com/

Have you tried to deploy the app again and if not can you try to deploy the app now?

Regards

Same issue here

[2023-04-27 18:58:09] ╭──────────── app upload ───────────╼
[2023-04-27 18:58:09] │  › uploading app container image to DOCR
[2023-04-27 18:58:10] │ Reusing layers from image <registry-uri-0>
[2023-04-27 18:58:11] │ Reusing layer 'heroku/nodejs-engine:nodejs'
[2023-04-27 18:58:18] │ Adding 2/2 app layer(s)
[2023-04-27 18:58:18] │ Reusing layer 'launcher'
[2023-04-27 18:58:18] │ Reusing layer 'config'
[2023-04-27 18:58:18] │ Adding label 'io.buildpacks.lifecycle.metadata'
[2023-04-27 18:58:18] │ Adding label 'io.buildpacks.build.metadata'
[2023-04-27 18:58:18] │ Adding label 'io.buildpacks.project.metadata'
[2023-04-27 18:58:25] │ *** Images (sha256:39264b2f93ca23ae1e6fdf6f3fc3732a1a3346f9a5f8f45f6752bcd87e40b183):
[2023-04-27 18:58:25] │       <image-1> - PUT <registry-uri-2> RANGE_INVALID: invalid content range
[2023-04-27 18:58:25] │ ERROR: failed to export: failed to write image to the following tags: [<image-3>: PUT <registry-uri-4> RANGE_INVALID: invalid content range]
[2023-04-27 18:58:25] │ 
[2023-04-27 18:58:25] │ command exited with code 246
[2023-04-27 18:58:47] │  ✘ image upload failed

had the same error before 14:00 (UTC). now it’s deploying wonderfully. try Actions -> Force Rebuild and Deploy :)

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel