Hi Stephen,
Thanks for your suggestions.
I managed to fix the "Access denied" error I was having above, by implementing a GRANT MySQL statement to configure the MySQL database with access to the ssg database for the "test" and "root" users at the Gateway's IP address.
However, I am still having trouble connecting:
[vagrant@vagrantbox ~]$ docker-compose logs gateway
Attaching to vagrant_gateway_1
gateway_1 | apim-provisioning: INFO: checking if a Consul server has been set in the SSG_CONSUL_IP environment variable
gateway_1 | apim-provisioning: INFO: no Consul server set via the SSG_CONSUL_IP environment variable
gateway_1 | apim-provisioning: INFO: checking for an etcd server
gateway_1 | apim-provisioning: INFO: no etcd server available (neither ETCDCTL_ENDPOINT nor ETCDCTL_DISCOVERY_SRV were set in the environment
gateway_1 | apim-provisioning: INFO: validating the collected config
gateway_1 | apim-provisioning: INFO: done validating the collected config
gateway_1 | apim-provisioning: INFO: starting the process controller
gateway_1 | Starting Gateway Services: [ OK ]
gateway_1 | apim-provisioning: INFO: waiting for the process controller to start up
gateway_1 | apim-provisioning: INFO: process controller is not running yet.
gateway_1 | apim-provisioning: INFO: process controller is not running yet.
gateway_1 | apim-provisioning: INFO: process controller is not running yet.
gateway_1 | apim-provisioning: INFO: process controller is not running yet.
gateway_1 | apim-provisioning: INFO: process controller is not running yet.
gateway_1 | apim-provisioning: INFO: waiting for MySQLto become ready
gateway_1 | apim-provisioning: INFO: running gateway'sheadless autoconfig
gateway_1 | Exception configuring gateway: Error saving configuration 'Error during node configuration 'Cannot connect todatabase.''
gateway_1 | apim-provisioning: ERROR: gateway headlessautoconfig failed
Unfortunately, neither of your suggestions fix this error.
I have verified that I have MySQL connectivity between the Gateway instance the MySQL instance:
`docker-compose up gateway-db`
`docker-compose run gateway /bin/bash -c "mysql -hgateway-db -utest -ppassword -e 'exit'"`
At this point, the Gateway database is up and configured, and I am able to connect to it from the would-be Gateway instance. However, when I go to start the actual Gateway instance (including its proper Entrypoint, which is the crucial step to start the actual CA API Gateway), I get the "Cannot connect todatabase" error.