API Gateway: “License not accepted” for container Gateway
search cancel

API Gateway: “License not accepted” for container Gateway

book

Article ID: 72237

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Starting the CA API Docker Gateway leads to the “License not accepted” error. This happens even with a valid API Gateway license.

Environment

All supported versions of the API Container Gateway

Resolution

This can occur for several reasons:

1) The license file has not been provided. This can be done via the SSG_LICENSE variable or docker secrets

https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/api-gateway/10-0/using-the-container-gateway/getting-started-with-the-container-gateway/load-the-container-gateway-license.html

https://docs.docker.com/compose/compose-file/#secrets

2) The ACCEPT_LICENSE variable has not been set to "true", ie:

  environment:
            ACCEPT_LICENSE"true"

3) The environment section of your YML is missing the value "Dcom.l7tech.bootstrap.env.license.enable=true". This setting enables loading the SSG license gzip, base64 string as a environment variable. By default it is disabled 

        environment:
            EXTRA_JAVA_ARGS"-XX:ParallelGCThreads=4 -Dcom.l7tech.bootstrap.env.license.enable=true