After a remote meeting and troubleshooting, we have figure out together with customer that a global proxy was on, which caused the backend service can not connect to the postgresql server.
BTW: Which indicates that the above error message of
1 connections initialized for localhost/127.0.0.1:6379
04-18 19:35:33.281 INFO [isson-netty-2-2] org.redisson.connection.pool.ConnectionPool.lambda$createConnection$1 [ConnectionPool.java:158]
1 connections initialized for localhost/127.0.0.1:6379
ERROR SqlExceptionHelper 尝试连线已失败。
04-18 19:35:42.449 INFO [ main] org.redisson.Version.logVersion [Version.java:41]
Redisson 3.17.5
04-18 19:35:42.474 INFO [isson-netty-5-1] org.redisson.connection.pool.ConnectionPool.lambda$createConnection$1 [ConnectionPool.java:158]
1 connections initialized for localhost/127.0.0.1:6379
04-18 19:35:42.474 INFO [isson-netty-5-2] org.redisson.connection.pool.ConnectionPool.lambda$createConnection$1 [ConnectionPool.java:158]
1 connections initialized for localhost/127.0.0.1:6379
ERROR SqlExceptionHelper 尝试连线已失败。
04-18 19:35:45.887 ERROR [ main] org.springframework.boot.SpringApplication.reportFailure [SpringApplication.java:830]
Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationProcessingFilterDeregistrationBean': Cannot resolve reference to bean 'authenticationProcessingFilter' while setting bean property 'filter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationProcessingFilter': Cannot resolve reference to bean 'authenticationManager' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationManager': Cannot resolve reference to bean 'daoAuthenticationProvider' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoAuthenticationProvider': Cannot resolve reference to bean 'userDetailsService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDetailsService': Unsatisfied dependency expressed through method 'setTargetDatastore' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateDatastore': Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception; nested exception is org.hibernate.exception.JDBCConnectionException: Unable to check JDBC Connection auto-commit in preparation for DDL execution
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:163)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at grails.boot.GrailsApp.run(GrailsApp.groovy:99)
at grails.boot.GrailsApp.run(GrailsApp.groovy:485)
at grails.boot.GrailsApp.run(GrailsApp.groovy:472)
at tech.muyan.Application.main(Application.groovy:16)
Is caused by database not connectable, maybe because of
Postgresql server is not start
Postgresql server is not expose the port to backend service
There’s some global proxy or firewall etc blocks backend service from connect to database server.