-
Notifications
You must be signed in to change notification settings - Fork 442
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
[artifactory]: Host in database url is ignored #441
Comments
@ybonjour It seems like you have an error with your URL. it says: |
@danielezer thanks for your answer. However even if I use the URL formats |
Hey @ybonjour, the |
Also, good point on the example, I'll fix that |
@ybonjour using the database URL does work for me with the following values: database:
type: postgresql
url: "jdbc:postgresql://postgres123-postgresql:5432/artifactory"
user: artifactory
password: password
postgresql:
enabled: false
I had a database host running with the name |
@danielezer: I tried all the 3 formats I have mentioned above, including the one you tried:
It showed the following message in the log before timing out:
I also have a The only difference (apart possibly from different versions) I see between your config and my config is, that you used a the hostname and I used the IP. Unfortunately, I can not easily switch to a hostname. Could you test with the IP instead of the hostname? |
@ybonjour thanks for the feedback. I'm pretty sure I see your issue. Can you please share which version of the chart you are using? Also, please share your values file. You probably have the parameter |
@danielezer thanks for looking into it. I am on verrsion
So |
@ybonjour Please also send the output of |
@danielezer I have set Here is the output you asked for:
|
ok @ybonjour, I was able to reproduce this issue. It seems to be a bug with the OSS image. I will file a bug report, but for the mean time if you can make it work with specifying the host and port without the url, I suggest you do that |
@danielezer awesome, thanks. Connecting without the url works fine for me. Just wanted to make sure to report the issue. Thanks for your time and cooperation. |
@ybonjour Thanks for reporting this issue :) This is the Jira issue I created - https://www.jfrog.com/jira/browse/RTFACT-19894 |
Closed in 7.x. |
Is this a BUG REPORT or FEATURE REQUEST?:
BUG REPORT
Version of Helm and Kubernetes:
Which chart:
stable/artifactory (artifactory-7.16.9)
What happened:
I want to use an external Postgres database.
When I provide the database information using an url, artifactory seems to ignore the host part in the url. And the connection to the database fails. This is the configuration I tested with:
The logs show, that DB_HOST is set to
postgresql
and that the URL it is trying to connecto to containspostgresql
as the host instead of the host set in the url.I also observed the same when I additioanlly set the host variable in the configuration.
When I provide the database information with host and port settings, it works fine:
and the log messages show
I executed the two tests on a completely "empty" GKE cluster (I set up a new cluster for each test). There were no other charts installed.
What you expected to happen:
I would expect that I can connect to the database with a url.
The text was updated successfully, but these errors were encountered: