I am trying to install Atlas using the docker compose file in the OHDSI/Broadsea ( Broadsea/postgresql at master · OHDSI/Broadsea (github.com)). I am using PostgreSQL as the database with cdm5 database.
I have created the PostgreSQL container using a separate docker-compose file and thehyve/ohdsi_postgresql image has been used.
Following error is shown in the stdout log of broadsea-webtools.
UnsatisfiedDependencyException: Error creating bean with name ‘shiroFilter’ defined in class path resource [org/ohdsi
/webapi/ShiroConfiguration.class]: Unsatisfied dependency expressed through method ‘shiroFilter’ parameter 0; nested exc
eption is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in cla
ss path resource [org/ohdsi/webapi/FlywayConfig.class]: Invocation of init method failed; nested exception is org.flyway
db.core.internal.dbsupport.FlywaySqlException:
Unable to obtain Jdbc connection from DataSource
------------------------------------------------
SQL State : 08001
Error Code : 0
Message : The connection attempt failed.
My docker-compose file for broadsea is as follows.
version: ‘2’
services:
broadsea-methods-library:
image: ohdsi/broadsea-methodslibrary
ports:
- “8787:8787”
- “6311:6311”
environment:
- PASSWORD=mypass
broadsea-webtools:
image: ohdsi/broadsea-webtools
ports:
- “8080:8080”
volumes:
- .:/tmp/drivers/:ro
- …/config-local.js:/usr/local/tomcat/webapps/atlas/js/config-local.js:ro
environment:
- WEBAPI_URL=http://localhost:8080
- env=webapi-postgresql
- security_origin=*
- datasource_driverClassName=org.postgresql.Driver
- datasource_url=jdbc:postgresql://postgres:1234@localhost:5432/ohdsi
- datasource.cdm.schema=cdm5
- datasource.ohdsi.schema=ohdsi
- datasource_username=postgres
- datasource_password=1234
- spring.jpa.properties.hibernate.default_schema=ohdsi
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
- spring.batch.repository.tableprefix=ohdsi.BATCH_
- flyway_datasource_driverClassName=org.postgresql.Driver
- flyway_datasource_url=jdbc:postgresql://postgres:1234@localhost:5432/ohdsi
- flyway_schemas=ohdsi
- flyway.placeholders.ohdsiSchema=ohdsi
- flyway_datasource_username=postgres
- flyway_datasource_password=1234
- flyway.locations=classpath:db/migration/postgresql
When I load the Atlas dashboard it gives error “Unable to connect to an instance of the WebAPI. Please contact your administrator to resolve this issue.”
Please someone can help me to figure out what I am doing wrong here.
Thank you.