Hello I have troubles with connecting to my postgr...
# replication-troubleshooting
c
Hello I have troubles with connecting to my postgres-databse which i am hosting on Dokploy. I am using the cloud version of airbyte. I receive the following error in Airbyte when entering all the inputs: "Failed to save Dokploy | database due to the following error: Unsecured connection not allowed. If no SSH Tunnel set up, please use one of the following SSL modes: require, verify-ca, verify-full" If I set up the SSL to require. I receive this error in Airbyte: Failed to save Dokploy | database due to the following error: State code: 08004; Message: The server does not support SSL. How can I use a SSH Tunnel or activate SSL for postgres? Do you have an idea where this error ist coming from? Thanks in Advance
k
Based on the information in the knowledge sources, here’s what’s happening and how you can address it: ### Why You’re Seeing These Errors - Airbyte Cloud requires encrypted connections to your Postgres database. This means you must use either SSL (with modes like
require
,
verify-ca
, or
verify-full
) or an SSH Tunnel. Direct, unsecured connections are not allowed in Airbyte Cloud for security reasons. - The error
"The server does not support SSL"
indicates that your Postgres server on Dokploy is not configured to accept SSL connections. When you set SSL mode to
require
in Airbyte, it tries to establish an encrypted connection, but your server rejects it because SSL is not enabled on the server side. ### Solutions #### 1. Enable SSL on Your Postgres Server You need to configure your Postgres instance on Dokploy to support SSL connections. This typically involves: - Generating server certificates (server.crt and server.key). - Updating your
postgresql.conf
to set
ssl = on
. - Restarting your Postgres server. Note: The exact steps depend on your hosting provider (Dokploy). You may need to consult their documentation or support to enable SSL for your database. #### 2. Use an SSH Tunnel If you cannot enable SSL on your Postgres server, you can set up an SSH Tunnel. Airbyte supports connecting to databases via an SSH Tunnel, which encrypts the connection between Airbyte and your database even if SSL is not enabled on the database itself. To use an SSH Tunnel in Airbyte Cloud: - In the destination setup, select an SSH Tunnel method (either SSH Key Authentication or Password Authentication). - Provide the details for a bastion (jump) server that has access to your Postgres database. - Airbyte will connect securely to the bastion, which then connects to your database. You can find more details on configuring SSH Tunnels for Postgres in Airbyte here: [Postgres Destination - Naming Conventions](https://docs.airbyte.com/integrations/destinations/postgres#naming-conventions). #### 3. Why This Happens This is a security requirement of Airbyte Cloud: “Airbyte Cloud only supports connecting to your Postgres instances with SSL or TLS encryption. TLS is used by default.” [Postgres Destination Setup](https://docs.airbyte.com/integrations/destinations/postgres). ### Next Steps - If you control the Postgres server: Enable SSL support. - If you cannot enable SSL: Set up an SSH Tunnel as described above. - If you need help with Dokploy: Contact their support or check their documentation for enabling SSL or setting up a bastion host for SSH tunneling. If you need more detailed steps for either enabling SSL or setting up an SSH Tunnel, please provide more information about your Dokploy setup or access level. --- Summary: You must use either SSL or an SSH Tunnel to connect Airbyte Cloud to your Postgres database. The errors you see are because your server does not support SSL, and Airbyte Cloud does not allow unsecured connections. Enable SSL on your server or use an SSH Tunnel to resolve this issue. [Postgres Destination - Naming Conventions](https://docs.airbyte.com/integrations/destinations/postgres#naming-conventions)