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/us/en/ca-enterprise-software/layer7-api-management/api-gateway/congw-11-0/install-configure-upgrade/configuring-the-container-gateway/environment-variables-for-the-container-gateway.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