Garth
unread,Feb 10, 2022, 3:55:20 PM2/10/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to keyclo...@googlegroups.com
Hi All,
I am testing out the 16.1.1 preview release of Keycloak-x. When I try to specify the `--db-url` option when using `start-dev`, I get an error that it could not find the driver.
I see the postgres driver jar in `lib/lib/main/org.postgresql.postgresql-42.3.1.jar`.
Am I specifying the option incorrectly? Is there something else I must do in order to start it properly?
Thanks!
```
[garth:keycloak.x-16.1.1]$ ./bin/kc.sh start-dev --db-url=jdbc:postgresql://localhost:5432/keycloak
2022-02-10 21:49:55,422 INFO [org.key.qua.run.hos.DefaultHostnameProvider] (main) Hostname settings: FrontEnd: <request>, Strict HTTPS: false, Path: <request>, Strict BackChannel: false, Admin: <request>
2022-02-10 21:49:55,650 WARN [io.agr.pool] (agroal-11) Datasource '<default>': No suitable driver found for jdbc:postgresql://localhost:5432/keycloak
2022-02-10 21:49:55,651 WARN [org.hib.eng.jdb.env.int.JdbcEnvironmentInitiator] (JPA Startup Thread: keycloak-default) HHH000342: Could not obtain connection to query metadata: java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:5432/keycloak
at org.h2.jdbcx.JdbcDataSource.getJdbcConnection(JdbcDataSource.java:191)
at org.h2.jdbcx.JdbcDataSource.getXAConnection(JdbcDataSource.java:352)
at io.agroal.pool.ConnectionFactory.createConnection(ConnectionFactory.java:210)
at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:509)
at io.agroal.pool.ConnectionPool$CreateConnectionTask.call(ConnectionPool.java:490)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at io.agroal.pool.util.PriorityScheduledExecutor.beforeExecute(PriorityScheduledExecutor.java:75)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1126)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
```