Project

General

Profile

Actions

Defect #2973

closed

Monitoring: monitoring is initialized before flyway migrations (application doesn't start)

Added by Radek Tomiška over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Radek Tomiška
Category:
Monitoring
Target version:
Start date:
10/06/2021
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Monitoring can be initialized before flyway scripts are applied and application start ends with exception:

czechidm     |     Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'monitoringManager': Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet
...
czechidm     |     Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
czechidm     |         at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:106)
czechidm     |         at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
...
czechidm     |     Caused by: org.postgresql.util.PSQLException: ERROR: relation "idm_monitoring" does not exist
czechidm     |   Position: 943
czechidm     |         at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2578)

Actions

Also available in: Atom PDF