Skip to content

Launcher CNB_PLATFORM_API failed to get platform API version #381

@SAURABH110894

Description

@SAURABH110894

Hi Team,

I'm using CNB Apache-Tomcat Image, It was all running fine before, but now we have updated to Apache Tomcat 9.0.82 and we are getting below error.

ERROR: failed to get platform API version; please set 'CNB_PLATFORM_API' to specify the desired platform API version


> root@4c417129d5ee:/workspace# launcher /cnb/process/web
> Setting Active Processor Count to 2
> Calculating JVM memory based on 9998876K available memory
> For more information on this calculation, see https://paketo.io/docs/reference/java-reference/#memory-calculator
> Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx9424697K -XX:MaxMetaspaceSize=62178K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 9998876K, Thread Count: 250, Loaded Class Count: 8564, Headroom: 0%)
> Enabling Java Native Memory Tracking
> Adding 137 container CA certificates to JVM truststore
> ERROR: failed to get platform API version; please set 'CNB_PLATFORM_API' to specify the desired platform API version

I'm using launcher, running certain command and triggering launcher /cnb/process/web command.

Could you please help me to fix this error.

Regards
Saurabh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions