I am using docker-compose to start a rundeck container (self made but based on the offical one) and a mysql container.
rundeck fails with
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.,
[...]
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key Retrieval is not allowed,
In docker-compose.yaml I had to change RUNDECK_DATABASE_URL to this to make it work:
I am using docker-compose to start a rundeck container (self made but based on the offical one) and a mysql container.
rundeck fails with
In docker-compose.yaml I had to change RUNDECK_DATABASE_URL to this to make it work:
RUNDECK_DATABASE_URL: jdbc:mysql://mysql/rundeck?autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
Note the addition of &allowPublicKeyRetrieval=true
Should this be added to the official docker-compose.yaml or did I make a mistake somehwere else?
Host: Red Hat 7.4