Spring Boot Application gets stuck on “Hikari-Pool-1 - Starting…”

后端 未结 5 552
滥情空心
滥情空心 2021-01-07 22:11

I\'m trying to run Spring Boot application connected to PostgreSQL database. However, when it comes to Hikari connection pool initializing, it just gets stuck and nothing go

5条回答
  •  -上瘾入骨i
    2021-01-07 22:26

    In my case spring.datasource.hikari.initializationFailTimeout was set to a really high value, 3600000 (1 hour). This, in it self, was not a malconfiguration but it hid the real problem as the app was hanging on startup.

    Once that value was adjusted, I got a much more understandable stack trace which led me to the conclusion that in this case I couldn't use the default MariaDB driver configuration that I probably got through a jHipster.

    A very wierd problem that I so far only has seen with MySQL8 and Ubuntu 20 on AWS EC2. Locally I run Ubuntu and MySQL8 via Docker without issues.

提交回复
热议问题