Skip to content

Attempting to repush / restage application with deleted buildpack will fail with "Specified unknown buildpack name" #1045

Description

@pivotal-todd-robbins

Issue

Attempting to repush / restage application with deleted buildpack will fail with Specified unknown buildpack name

Context

This is a customer reported issue. Previously they were using java buildpack 3.18 and wanted to switch applications to using new default java buildpack. After deleting the old buildpack and remove references in manifest, subsequent pushes of applications failed stating unknown buildpack.

Steps to Reproduce

  1. upload a custom buildpack (for instance java buildpack 3.18)
  2. push an application and specify custom buildpack in manifest
  3. delete the custom buildpack from system
  4. remove buildpack entry from manifest (so it instead uses default java buildpack) and re-push or re-stage application.
  5. app push will fail with "Specified unknown buildpack name" even though neither manifest or cf buildpacks reference old buildpack name. (cf curl /v2/app/<guid> still shows reference to old buildpack)

Expected result

Since no buildpack is specified in manifest, then the application push should run buildpack detect and select highest priority java buildpack on system.

Current result

Re-pushing the application appears to be checking buildpack field on existing application and failing with "Specified unknown buildpack name" even though neither manifest or cf buildpacks contain entry for this buildpack.

cf push spring-music

Using manifest file /Users/trobbins/Downloads/spring-music-master/manifest.yml

Updating app spring-music in org punal / space punal as admin...
FAILED
Server error, status code: 400, error code: 100001, message: The app is invalid: buildpack java-buildpack-18 is not valid public url or a known buildpack name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions