after running cf push we see an error indicating buildpack type is not supported when it previously worked
Suppressed: org.cloudfoundry.client.v2.ClientV2Exception: CF-StagerError(170011): Stager error: Unsupported buildpack type: 'staticfile_buildpack'
ββββat org.cloudfoundry.reactor.util.ErrorPayloadMappers.lambda$null$0(ErrorPayloadMappers.java:51)In this specific case Cloud Controller Default Stack is set to cflinuxfs3 and when running "cf buildpacks" command we see staticfile_buildpack only supports cflinuxfs4. the cflinuxfs3 version of this buildpack was renamed or deleted. This error occurs when there is a mismatch between the default or app assigned stack and what the available buildpacks are in the system.
When migrating from cflinuxfs3 to cflinuxfs4 it is best to first increase the default stack version to cflinuxfs4 before disabling cflinuxfs3 buildpacks. After increasing the defaults you can use the stack auditor tool from Tanzu Platform For Cloud Foundry 6.0.x download page to see which apps still need to be migrated and if desired you can use this tool to migrate the stacks. Once all apps have migrated over then it is safe to disable cflinuxfs3 buildpacks.
See these links for more information about the cflinxufs migration