AnsweredAssumed Answered

Docker container - Lifecycle error: No license loaded

Question asked by mensur.durakovic on Nov 19, 2018
Latest reply on Nov 23, 2018 by mensur.durakovic

I have one server configured as my CA Gateway (all working) and I want to setup other server with Docker to balance load. On that server I have license.xml file in this path: 

 

/home/rsdbuser/mylicence.xml

 

I read documentation and exported base64 string into my environment variables with this command:

 

export SSG_LICENSE="$(cat /home/rsdbuser/mylicence.xml | gzip | base64)" 

 

installed Docker, pulled image and this is my docker-compose.yml file:

 

version: '2.2'
services:
api-gateway:
image: caapim/gateway
# cpus: 4
# mem_limit: 6g
# memswap_limit: 6g
# mem_swappiness: 0
ports:
- "8080"
- "8443"
- "9443"
# volumes:
# - /opt/SecureSpan/Gateway/node/default/etc/bootstrap/services/restman
environment:
ACCEPT_LICENSE: "false"
# SSG_ADMIN_USERNAME: "adminUser"
# SSG_ADMIN_PASSWORD: "somepassword"
# SSG_DATABASE_JDBC_URL: "jdbc:mysql://mysql-server:3306/ssg"
# SSG_DATABASE_USER: "ssgdbuser"
# SSG_DATABASE_PASSWORD: "dbpassword"
# SSG_CLUSTER_HOST: "mycompany.host.com"
# SSG_CLUSTER_PASSWORD: "clusterpassword"
# SSG_JVM_HEAP: "4g"
# EXTRA_JAVA_ARGS: "-XX:ParallelGCThreads=4 -Dcom.l7tech.bootstrap.autoTrustSslKey=trustAnchor,TrustedFor.SSL,TrustedFor.SAML_ISSUER"
#
# mysql-server:
# image: mysql:5.7
# mem_limit: 512m
# environment:
# - MYSQL_RANDOM_ROOT_PASSWORD=true
# - MYSQL_USER=ssgdbuser
# - MYSQL_PASSWORD=dbpassword
# - MYSQL_DATABASE=ssg
# command:
# - "--character-set-server=utf8"
# - "--innodb_log_buffer_size=32M"
# - "--innodb_log_file_size=80M"
# - "--max_allowed_packet=8M"

 

but when I run docker-compose with: 

 

docker-compose up:

 

I get this error:

 

 

When i display my env. variables I can clearly see that licence is loaded and in base64 format. I used separate licence for first and second node, but I still don't get why I am getting this error. Any help will be appreciated!

 

Thanks in advance!

Outcomes