Startup error

252 views
Skip to first unread message

Forum Access

unread,
Mar 26, 2025, 4:10:59 PM3/26/25
to Keycloak User
Hi All,
I installed Keycloak 26.0.8 on FreeBSD 14.2. I set up a PostgreSQL dB. When I run
# /usr/local/share/java/keycloak/bin/kc.sh start --optimized, I am getting a few errors
I would appreciate any assistance troubleshootng this.


2025-03-25 15:08:56,339 WARN  [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator] (JPA Startup Thread) HHH000342: Could not obtain connection to query metadata: org.hibernate.exception.GenericJDBCException: unable to obtain isolated JDBC connection [Acquisition timeout while waiting for new connection] [n/a]

2025-03-25 15:08:56,910 INFO  [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: localhost-19408, Site name: null
2025-03-25 15:09:01,418 WARN  [io.agroal.pool] (agroal-11) Datasource '<default>': The connection attempt failed.
2025-03-25 15:09:01,933 INFO  [org.infinispan.CLUSTER] (main) ISPN000080: Disconnecting JGroups channel `ISPN`
2025-03-25 15:09:01,949 INFO  [com.arjuna.ats.jbossatx] (main) ARJUNA032014: Stopping transaction recovery manager
2025-03-25 15:09:01,969 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (production) mode
2025-03-25 15:09:01,970 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to obtain JDBC connection
2025-03-25 15:09:01,970 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Acquisition timeout while waiting for new connection
2025-03-25 15:09:01,970 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) For more details run the same command passing the '--verbose' option. Also you can use '--help' to see the details about the usage of the particular command.

Björn Pedersen

unread,
Mar 27, 2025, 8:22:01 AM3/27/25
to Keycloak User
Forum Access schrieb am Mittwoch, 26. März 2025 um 21:10:59 UTC+1:
Hi All,
I installed Keycloak 26.0.8 on FreeBSD 14.2. I set up a PostgreSQL dB. When I run
# /usr/local/share/java/keycloak/bin/kc.sh start --optimized, I am getting a few errors
I would appreciate any assistance troubleshootng this.

Sounds like you did not correct run the build steps required for start --optimized (check the docs at https://www.keycloak.org/server/configuration#_optimize_the_keycloak_startup)
Reply all
Reply to author
Forward
0 new messages