The WebApi service continues to exhibit issues. It initiates but then repeatedly starts and restarts without stabilization.
To provide you with more context and facilitate a comprehensive resolution, could you guide me on where to locate specific logs that may hold crucial information?
My postgresql is listenning on port 5433 :
My .env file modification :
If not using a pre-filled WebAPI schema, change this to false
FLYWAY_BASELINE_ON_MIGRATE=“false”
WebAPI logging levels, set to other log4j levels to expose more verbose logging
WEBAPI_LOGGING_LEVEL_ROOT=“info” # for the entire application
WEBAPI_LOGGING_LEVEL_ORG_OHDSI=“info” # for any ohdsi library logging
WEBAPI_LOGGING_LEVEL_ORG_APACHE_SHIRO=“warn” # for shiro, the security authentication library
Shiro logging level, for authentication provider logging
WEBAPI_SHIRO_LOGGING_LEVEL=“warn”
Keep as-is if using Broadsea to launch the WebAPI postgres, replace if using an external postgres instance
WEBAPI_DATASOURCE_URL=“jdbc:postgresql://localhost:5433/omop”
WEBAPI_DATASOURCE_USERNAME=“postgres”
WEBAPI_DATASOURCE_PASSWORD_FILE="./secrets/webapi/WEBAPI_DATASOURCE_PASSWORD"
WEBAPI_DATASOURCE_OHDSI_SCHEMA=“public”
A part of the logs from webAPI :
2023-12-14 14:25:57 2023-12-14 13:25:57.451 WARN main org.springframework.context.support.AbstractApplicationContext - [] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.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 exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘flyway’ defined in class path resource [org/ohdsi/webapi/FlywayConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.dbsupport.FlywaySqlException:
2023-12-14 14:25:57 Unable to obtain Jdbc connection from DataSource
2023-12-14 14:25:57 ------------------------------------------------
2023-12-14 14:25:57 SQL State : 08001
2023-12-14 14:25:57 Error Code : 0
2023-12-14 14:25:57 Message : Connection to localhost:5433 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
2023-12-14 14:25:57
And the table in my DB :
Thank you so much for your time and effort.