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

I have same problems

  » an error occurred, trying again (attempt #1)
[flapper] [2023-01-31 11:51:19] │ Adding layer 'heroku/nodejs-engine:nodejs'
[flapper] [2023-01-31 11:51:21] │ Adding layer 'heroku/php:profile'
[flapper] [2023-01-31 11:51:26] │ Adding 2/2 app layer(s)
[flapper] [2023-01-31 11:51:26] │ Adding layer 'launcher'
[flapper] [2023-01-31 11:51:26] │ Adding layer 'config'
[flapper] [2023-01-31 11:51:26] │ Adding label 'io.buildpacks.lifecycle.metadata'
[flapper] [2023-01-31 11:51:26] │ Adding label 'io.buildpacks.build.metadata'
[flapper] [2023-01-31 11:51:26] │ Adding label 'io.buildpacks.project.metadata'
[flapper] [2023-01-31 11:51:26] │ Saving <image-1>...
[flapper] [2023-01-31 11:51:27] │ *** Images (sha256:a9c911837bba5e223395c9aed7b5a6069633f74a745122b54e0ae7f78f08ff2f):
[flapper] [2023-01-31 11:51:27] │       <image-2> - Post <registry-uri-4> GET <do-api-uri-3> unexpected status code 400 Bad Request
[flapper] [2023-01-31 11:51:27] │ 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]
[flapper] [2023-01-31 11:51:27] │ 
[flapper] [2023-01-31 11:51:27] │ command exited with code 246
[flapper] [2023-01-31 11:51:27] │  ✘ image upload failed

I’m having the exact same issue setting up a python app

Try DigitalOcean for free

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

Sign up

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.