Error in docker compose for AWS RDS Database

97 views
Skip to first unread message

Ashish Mishra

unread,
Jun 29, 2021, 12:46:35 PM6/29/21
to rundeck-discuss
Hi,
        I am installing rundeck using docker compose.  I have a AWS RDS Mysql 5.7 instance. I can connect same from rundeck ec2 box using mysql client. I am also using mariadb client driver as per some internet articles. 

.env

RUNDECK_PORT=4440
RUNDECK_DATABASE_PASSWORD=mypassword

Docker File

FROM rundeck/rundeck:3.3.4

RUN chown -R rundeck:root /home/rundeck/server
RUN mkdir /home/rundeck/utils
RUN chown -R rundeck:root /home/rundeck/utils

COPY ./plugins/slack-incoming-webhook-plugin-1.2.5.jar /home/rundeck/libext
COPY ./plugins/http-step-1.0.12.jar /home/rundeck/libext

Docker Compose

version: "3.5"

services:
  rundeck:
    build: .
    container_name: "rundeck-prod"
    ports:
      - ${RUNDECK_PORT}:4440
    volumes:
      - rundeck:/home/rundeck
    environment:
      RUNDECK_GRAILS_URL: ${RUNDECK_URL}
      RUNDECK_DATABASE_DRIVER: org.mariadb.jdbc.Driver
      RUNDECK_DATABASE_USERNAME: master
      RUNDECK_DATABASE_PASSWORD: ${RUNDECK_DATABASE_PASSWORD}
      RUNDECK_DATABASE_URL: jdbc:mysql://rundeck-db.example.com/rundeck?autoReconnect=true&useSSL=false

Error :
at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:118) ~[tomcat-jdbc-9.0.31.jar!/:?]
        at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:107) ~[tomcat-jdbc-9.0.31.jar!/:?]
        at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:131) ~[tomcat-jdbc-9.0.31.jar!/:?]
        at org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy$LazyConnectionInvocationHandler.getTargetConnection(LazyConnectionDataSourceProxy.java:412) ~[spring-jdbc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
        at org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy$LazyConnectionInvocationHandler.invoke(LazyConnectionDataSourceProxy.java:385) ~[spring-jdbc-5.1.14.RELEASE.jar!/:5.1.14.RELEASE]
        at com.sun.proxy.$Proxy120.getMetaData(Unknown Source) ~[?:?

Ashish Mishra

unread,
Jun 29, 2021, 2:51:55 PM6/29/21
to rundeck-discuss
Please ignore, Password was wrong
Reply all
Reply to author
Forward
0 new messages