CA API Management: Unable to start Gateway docker container

Document ID : KB000076448
Last Modified Date : 04/04/2018
Show Technical Document Details
Issue:
When attempting to start the CA API Management Gateway Docker container via docker-compose it is observed that the container will start and terminate usually within a few seconds.

You may notice errors like the below

Exception configuring gateway: Error saving configuration 'Error during node configuration 'Database connection error 'Access denied for user 'gateway'@'x.x.x.x' (using password: YES)'.''

or

'ssg database does not exist'
Resolution:
This is typically caused by an incorrect setting in the docker compose YAML file.
The setting 'SSG_CLUSTER_COMMAND' should be set to create on the initial deployment and join on subsequent startups.

If you initially deploy using join it will be unable to locate the database as it has yet be be created.

ie:
  environment:
    SSG_CLUSTER_COMMAND: "create"