Cancel
Showing results for 
Search instead for 
Did you mean: 

cf push failed because of Stager error: Unsupported buildpack type: 'nodejs_buildpack'

Experimenter
Experimenter

When I tried to perform `cf push` to deploy my Node.js app, I had the following error.

 

Unexpected Response
Response code: 500
CC code:       0
CC error code: 
Request ID:    008910cd-bc89-446a-7d5d-03063667480f::e52b4f33-b357-4351-99f7-b345986d16c6
Description:   {
  "description": "Stager error: Unsupported buildpack type: 'nodejs_buildpack'",
  "error_code": "CF-StagerError",
  "code": 170011
}

The application was deployed before and I never modified manifest.yaml file. So I don't have any idea of what caused this issue.
Does anyone know how to fix the error?

I confirmed the underlying environment should have nodejs_buildpack as shown below.

$ cf buildpacks
Getting buildpacks...

buildpack               position   enabled   locked   filename                                      stack
dotnet_core_buildpack   1          true      false    dotnet-core_buildpack-cflinuxfs3-v2.2.7.zip   cflinuxfs3
go_buildpack            2          true      false    go_buildpack-cflinuxfs3-v1.8.35.zip           cflinuxfs3
java_buildpack          3          true      false    java-buildpack-cflinuxfs3-v4.18.zip           cflinuxfs3
nodejs_buildpack        4          true      false    nodejs_buildpack-cflinuxfs3-v1.6.45.zip       cflinuxfs3
php_buildpack           5          true      false    php_buildpack-cflinuxfs3-v4.3.72.zip          cflinuxfs3
python_buildpack        6          true      false    python_buildpack-cflinuxfs3-v1.6.29.zip       cflinuxfs3
ruby_buildpack          7          true      false    ruby_buildpack-cflinuxfs3-v1.7.36.zip         cflinuxfs3
staticfile_buildpack    8          true      false    staticfile_buildpack-cflinuxfs3-v1.4.40.zip   cflinuxfs3
mendix_buildpack        9          true      false    mendix-buildpack-cflinuxfs3-v3.2.1.zip        cflinuxfs3

 

My CF CLI version is

cf version 6.45.0+5f9ff16f9.2019-06-03


Any suggestions and/or helps are appreciated.

1 REPLY 1

Re: cf push failed because of Stager error: Unsupported buildpack type: 'nodejs_buildpack'

Experimenter
Experimenter

As a workaround, I removed the app by `cf delete` then performed `cf push`.

Not sure if this is a right way but `cf push` was successfully done.
Anyway, the error message didn't provide any help, relally sucks.