Build always stuck at Adding label 'io.buildpacks.project.metadata' with no other error messages

My build of strapi is always so slow that it always stuck at “Adding label ‘io.buildpacks.project.metadata’” with no other error messages

[talentlabs-cms] [2021-10-14 17:16:05] => Uploading the built Docker image to the container registry… [talentlabs-cms] [2021-10-14 17:16:15] Adding layer ‘heroku/nodejs-engine:nodejs’ [talentlabs-cms] [2021-10-14 17:16:18] Adding layer ‘heroku/nodejs-engine:yarn’ [talentlabs-cms] [2021-10-14 17:17:24] Adding 2/2 app layer(s) [talentlabs-cms] [2021-10-14 17:17:24] Adding layer ‘launcher’ [talentlabs-cms] [2021-10-14 17:17:24] Adding layer ‘config’ [talentlabs-cms] [2021-10-14 17:17:24] Adding label ‘io.buildpacks.lifecycle.metadata’ [talentlabs-cms] [2021-10-14 17:17:24] Adding label ‘’ [talentlabs-cms] [2021-10-14 17:17:24] Adding label ‘io.buildpacks.project.metadata’


Same here. This step takes a full 4-5 minutes to finish, for example:

[myapp] [2021-12-20 15:22:45] => Initializing build
[myapp] [2021-12-20 15:22:45] => Retrieving source code to /workspace
[myapp] [2021-12-20 15:22:45] => Selecting branch "master"
[myapp] [2021-12-20 15:22:50] => Checking out commit "..."
[myapp] [2021-12-20 15:22:51] => Got source_dir: /
[myapp] [2021-12-20 15:22:51] => Using workspace root /workspace
[myapp] [2021-12-20 15:22:51] => Building app using buildpacks
[myapp] [2021-12-20 15:22:51] => Injecting app environment variables:
[myapp] [2021-12-20 15:22:51] => Configuring custom build command to be run at the end of the build:
[myapp] [2021-12-20 15:22:51] => Running buildpack detection
[myapp] [2021-12-20 15:22:52] => Checking for cache from a previous build
[myapp] [2021-12-20 15:23:20] => Building app
[myapp] [2021-12-20 15:24:36] => Uploading the built Docker image to the container registry...
[myapp] [2021-12-20 15:24:37] Reusing layers from image <registry-uri-0>
[myapp] [2021-12-20 15:24:43] Reusing layer 'heroku/nodejs-engine:nodejs'
[myapp] [2021-12-20 15:25:47] Adding 2/2 app layer(s)
[myapp] [2021-12-20 15:25:47] Reusing layer 'launcher'
[myapp] [2021-12-20 15:25:47] Reusing layer 'config'
[myapp] [2021-12-20 15:25:47] Adding label 'io.buildpacks.lifecycle.metadata'
[myapp] [2021-12-20 15:25:47] Adding label ''
[myapp] [2021-12-20 15:25:47] Adding label 'io.buildpacks.project.metadata'
[myapp] [2021-12-20 15:29:33] *** Images (sha256:...):
[myapp] [2021-12-20 15:29:33]       <image-1>
[myapp] [2021-12-20 15:29:34] Reusing cache layer 'heroku/nodejs-engine:nodejs'
[myapp] [2021-12-20 15:29:34] Reusing cache layer 'heroku/nodejs-engine:toolbox'
[myapp] [2021-12-20 15:30:02] Reusing cache layer 'digitalocean/node:node_modules'
[myapp] [2021-12-20 15:30:04] => Uploaded the built image to the container registry
[myapp] [2021-12-20 15:30:04] => Build complete

Any Update on this ? Its stuck for a long time @DO

facing same issue

Same issue here, cant find a fix

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

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.

DO really needs to fix this. Facing the same issue.

It appears to be a quirk of the buildpack container they’re using. My build succeeds (nextjs) although it takes 20+ minutes for something that takes 1-2 minutes locally. I too noticed this a week or two ago, and it then went away. @DO please keep an eye on this, like learn I am also looking to find alternative hosting solutions due to this issue.

This is totally unacceptable on production system (we are having our production system on DO App platform…). Thinking about migrating to another cloud provider now…

It was fixed for some time before, but it’s happening again. I did nothing except asking support team to check.

There must be something wrong with their build system. Hope someone from DO can officially take a look in this.

Hi, did you solve this problem? I am also facing this problem too!