-
Notifications
You must be signed in to change notification settings - Fork 255
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
External Postgres DB connection (with ssl, digitalocean) does not work #135
Comments
The error says that you need to add custom cacerts from digitalocean. Please see plausible/analytics#3849 (comment) for more details. |
@ruslandoga can you please reopen this issue, as solution from plausible/analytics#3849 (comment) is not helping (plus several of them are already mention upper). |
|
Sorry, but I don't see DATABASE_CACERTFILE in your post. Could you please try it first? |
Make sure to recreate the container for the updated env vars to take effect. |
Added new path for DATABASE_CACERTFILE, and on the second or third restart, stated to work (envs vere not changed, magic) |
@ruslandoga Checked ui and data, looks like v2.1.0 is 100% online |
Hi, experience some issues with latest version of Plausible.
Refuses to work with external PostgreSQL DB connection (with ssl) (hosted on DigitalOcean cloud).
Have Plausible v2.0.0 deployed (works normally, with locally installed clickhouse and external postgresql), and today started the upgrade procedures to v2.1.0, did everything mentioned in release v2.1.0, but got several errors/issues with starting new plausible container.
Using DATABASE_URL to pass PG connection string, tried firstly same string as was used for v2.0.0 (checked with echo $DATABASE_URL, all is ok):
DATABASE_URL=postgres:https://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?ssl=true
and got:
Then, added sslmode=require:
DATABASE_URL=postgres:https://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?sslmode=require&ssl=true
and got same errors.
Then, tried to add sslmode=verify-ca and /app/ca-cetificate.crt (valid) and
DATABASE_URL=postgres:https://$(DB_USER):$(DB_PASSWORD)@$(DB_HOST):$(DB_PORT)/$(DB_NAME)?sslmode=verify-ca&sslrootcert=/app/ca-certificate.crt&ssl=true
and got same errors.
Tried also several fixes by ChatGPT and Google search, nothing helps, can anyone help with that?
Setup:
Plausible: plausible/community-edition:v2.1.0
Variables:
Clickhouse: clickhouse/clickhouse-server:24.3.3.102-alpine
Variables:
The text was updated successfully, but these errors were encountered: