Driver does not support the provided URL
adel-chouchane opened this issue · 2 comments
Hello,
I am using the source code from the 0.2.61.Final tag.
I builded the images locally using the dockerfiles under platforms/quarkus
I generated the .env for the docker compose + changed the image names to the local tags i created in the docker compose.
I am getting this problem :
2023-05-02 16:22:58 2023-05-02 14:22:58,092 INFO [io.qua.oid.com.run.OidcCommonUtils] (main) Connecting to OpenId Connect Provider for up to 30 times every 2 seconds 2023-05-02 16:22:58 2023-05-02 14:22:58,977 WARN [io.agr.pool] (main) Datasource '<default>': Driver does not support the provided URL: jdbc:postgresql://apicurio-studio-db/apicurio 2023-05-02 16:22:58 2023-05-02 14:22:58,979 INFO [io.agr.pool] (main) Datasource '<default>': Initial size smaller than min. Connections will be created when necessary 2023-05-02 16:22:59 2023-05-02 14:22:59,034 INFO [io.quarkus] (main) apicurio-studio-platforms-quarkus-api 0.2.61.Final on JVM (powered by Quarkus 2.16.4.Final) started in 3.586s. Listening on: http://0.0.0.0:8080 2023-05-02 16:22:59 2023-05-02 14:22:59,034 INFO [io.quarkus] (main) Profile prod activated. 2023-05-02 16:22:59 2023-05-02 14:22:59,035 INFO [io.quarkus] (main) Installed features: [agroal, cdi, jdbc-h2, jdbc-mysql, jdbc-postgresql, narayana-jta, oidc, resteasy, resteasy-jackson, security, servlet, smallrye-context-propagation, vertx]
I even used a remote database and it flagged the same error.
Any ideas please ?
Hello @adel-chouchane,
Can you try jdbc:postgresql://<database-name>:<database-port>/<database-username>?targetServerType=primary ?
Change this in files :
- https://github.com/Apicurio/apicurio-studio/blob/master/platforms/quarkus/api/src/main/resources/application.properties
- https://github.com/Apicurio/apicurio-studio/blob/master/platforms/quarkus/ws/src/main/resources/application.properties
%dev.quarkus.datasource.jdbc.url=jdbc:postgresql://<database-name>:<database-port>/<database-username>?targetServerType=primary
%dev.quarkus.datasource.db-kind=postgresql
%dev.quarkus.datasource.username=<database-username>
%dev.quarkus.datasource.password=<database-password>
Let me know if it solves your problem !
Hello @adel-chouchane @romilin I am also facing the same issue, I have tried different url but not worked:
-Dquarkus.datasource.jdbc.db-kind=postgresql
-Dquarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/apicurio
-Dquarkus.datasource.username=postgres
-Dquarkus.datasource.password=root