-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.0.Alpha1 : Unable to connect CloudRun to CloudSql #24743
Comments
cc @loicmathieu |
You are going native with an external library we haven't vetted so you might encounter some issues - not all libraries are working in native out of the box. The first issue you have is relatively simple to fix: you have to register Now I have no idea if it will be the only problem you will have. Maybe it would make sense to include an extension here https://github.com/quarkiverse/quarkus-google-cloud-services but that will be for @loicmathieu to decide. |
It seems to be working now. I think I misinterpreted the logs. By the way, I also added this solution to my deployment #6634 (comment) |
We document the usage of Cloud SQL but never tested it on native, I need to test it in native. Apparently some people report it to work when adding the google-cloud-graalvm-support library, if it's all that is needed we can add it to the documentation (this library is already used by Quarkus GCP support extension). We can also add a new extension to the existing GCP extension pack for Cloud SQL for native support as it's a very commonly used cloud service. |
Closing as this is about a very old version of Quarkus. If this is still an issue, feel free to reopen and/or comment |
Describe the bug
I come back to an issue that I opened 2 years ago (#9985) and which was delivered in the 2.0.0.Alpha1 release. I want to connect the CloudRun service to my database instance (CloudSQL)
Unfortunately, the error message has changed but the connection remains impossible.
Expected behavior
No response
Actual behavior
I get this error
Could not obtain connection to query metadata[39m[38;5;203m: org.postgresql.util.PSQLException: The SocketFactory class provided com.google.cloud.sql.postgres.SocketFactory could not be instantiated.
How to Reproduce?
Build image in native mode and deploy on google run (Cloud Build)
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
pom.xml
application.properties
The text was updated successfully, but these errors were encountered: