After having updated the analytics backend to version 21.0.5 from version 21.0.3.
In the the analytics_backend.log file following messages are present:
=======================================================================
2023-03-16 16:06:50.001 INFO 57535 --- [main] .a.a.b.c.c.CollectorContextConfiguration : Data collection enabled
2023-03-16 16:06:50.088 WARN 57535 --- [main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be perf
ormed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2023-03-16 16:06:50.187 WARN 57535 --- [main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.
springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webSecurityConfiguration': Unsatisfied dependency expressed through field 'apiKeyCa
che'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiKeyCache': Unsatisfied dependency expressed throug
h method 'setApiKeysManager' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiKeysManager':
Unsatisfied dependency expressed through field 'apiKeyCache'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with n
ame 'apiKeyCache': Requested bean is currently in creation: Is there an unresolvable circular reference?
2023-03-16 16:06:50.188 INFO 57535 --- [main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2023-03-16 16:06:50.191 INFO 57535 --- [main] com.zaxxer.hikari.HikariDataSource : ds_analytics - Shutdown initiated...
2023-03-16 16:06:50.193 INFO 57535 --- [main] com.zaxxer.hikari.HikariDataSource : ds_analytics - Shutdown completed.
2023-03-16 16:06:50.202 INFO 57535 --- [main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-03-16 16:06:50.218 INFO 57535 --- [main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-03-16 16:06:50.239 ERROR 57535 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
webSecurityConfiguration (field com.automic.analytics.backend.security.ApiKeyCache com.automic.analytics.backend.config.web.WebSecurityConfiguration.apiKeyCache)
+-----+
| apiKeyCache
? ?
| apiKeysManager (field private com.automic.analytics.backend.security.ApiKeyCache com.automic.analytics.backend.security.ApiKeysManager.apiKeyCache)
+-----+
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
=======================================================================
Release : 21.0.5
This is a configuration issue. The application.properties file in 21.0.4 introduces a new parameter spring.main.allow-circular-references=true.
If the application.properties files from the version 21.0.3 is maintained, the backend installation will run into this kind of error.
Deploy the application.properties file from the new version, adjust it accordingly and backend should be able to start.
This kind of error messages in the log files mostly will indicate a problem with a parameter that backend analytics does not find in the current application.properties file.
============================================================================================================================
webSecurityConfiguration (field com.automic.analytics.backend.security.ApiKeyCache com.automic.analytics.backend.config.web.WebSecurityConfiguration.apiKeyCache)
+-----+
| apiKeyCache
? ?
The first action is to verify if the currently used configuration files has been updated as well.
============================================================================================================================