# Issue with PostgresSinkConnector connection to Database, but same connection details works from Postgres client

**URL:** <https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870>\
**Category:** Confluent Cloud\
**Created:** [15 May 2023 09:21 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870 "2023-05-15T09:21:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lokesh](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@Lokesh](https://forum.confluent.io/u/Lokesh)\
**Post date:** [15 May 2023 09:21 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/1 "2023-05-15T09:21:39Z")

</div>

Issue with PostgresSinkConnector connection to Database, but same connection details works from Postgres client. (Using admin credentials with all rights but getting connection.password error. ) . We are using confluent cloud basic cluster for POC. Also we didn’t find an option to select schema while setting connection and table details. Could some guide us … thanks in advance ![🙂]

---

<div class="post-metadata">

**Author:** ![kuro](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/kuro/32/1809_2.png) [@kuro](https://forum.confluent.io/u/kuro)\
**Post date:** [15 May 2023 10:19 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/2 "2023-05-15T10:19:37Z")

</div>

Hi Lokesh,

Can you attach some log traces from the connector status so we can see what is happening?

Thanks!

B

---

<div class="post-metadata">

**Author:** ![Lokesh](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@Lokesh](https://forum.confluent.io/u/Lokesh)\
**Post date:** [15 May 2023 12:51 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/3 "2023-05-15T12:51:11Z")

</div>

![Outlook-image](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/2X/0/0a50e7cd6e6045e8aca315bf38b481b21ce37091.png)

Hi @kuro ,

Thanks for your reply.

We are using confluent cloud basic cluster as currently doing POC on confluent cloud to start using.

I have attached error screenshot and sharing connector config.

I have replaced all db url and cred with name as dummy as it is sensitive information.

{  
“name”: “PostgresSinkConnector\_0”,  
“config”: {  
“topics”: “CONVOX\_DG”,  
“input.data.format”: “JSON\_SR”,  
“delete.enabled”: “false”,  
“connector.class”: “PostgresSink”,  
“name”: “PostgresSinkConnector\_0”,  
“kafka.auth.mode”: “KAFKA\_API\_KEY”,  
“kafka.api.key”: “dummy”,  
“kafka.api.secret”: “\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\***",  
“connection.host”: “dummy”,  
“connection.port”: “5432”,  
“connection.user”: “dummy”,  
“connection.password”: "**”,  
“db.name”: “dummy”,  
“ssl.mode”: “prefer”,  
“insert.mode”: “INSERT”,  
“table.name.format”: “t\_crm\_logs”,  
“table.types”: “TABLE”,  
“db.timezone”: “Asia/Kolkata”,  
“pk.mode”: “none”,  
“auto.create”: “false”,  
“auto.evolve”: “false”,  
“quote.sql.identifiers”: “ALWAYS”,  
“batch.sizes”: “3000”,  
“tasks.max”: “1”  
}  
}

---

<div class="post-metadata">

**Author:** ![kuro](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/kuro/32/1809_2.png) [@kuro](https://forum.confluent.io/u/kuro)\
**Post date:** [15 May 2023 15:24 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/4 "2023-05-15T15:24:27Z")

</div>

Thanks for the detailed configuration Lokesh.

Does the specified db.name already exists in the postgres database?

---

<div class="post-metadata">

**Author:** ![Lokesh](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@Lokesh](https://forum.confluent.io/u/Lokesh)\
**Post date:** [15 May 2023 15:49 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/5 "2023-05-15T15:49:43Z")

</div>

db.name is exist in postgres and we are able to access same with postgres client like dbeaver .  
is there anything we have to whitelist the servers from my side or required to migrate to paid cluster?

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [16 May 2023 00:14 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/6 "2023-05-16T00:14:38Z")

</div>

Depending where your database is running, yes, you may need to allow Confluent Cloud to Connect with it, such as by VPC Peering, or allow-listed.

---

<div class="post-metadata">

**Author:** ![Lokesh](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@Lokesh](https://forum.confluent.io/u/Lokesh)\
**Post date:** [16 May 2023 04:34 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/7 "2023-05-16T04:34:08Z")

</div>

thank you for the reply.

so you mean to say basic cluster should work for postgres connectors without any issues ?

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [17 May 2023 19:49 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/8 "2023-05-17T19:49:48Z")

</div>

Unclear what you mean by “basic cluster”.

Yes, Self-hosted or managed JDBC Connector should work, as long as networking is configured on both sides, appropriately.

---

<div class="post-metadata">

**Author:** ![Lokesh](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@Lokesh](https://forum.confluent.io/u/Lokesh)\
**Post date:** [18 May 2023 04:22 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/9 "2023-05-18T04:22:18Z")

</div>

As confluent is provided three types of cluster

Basic Cluster :- Free of Cost  
Standard Cluster :- Premium  
Dedicated Cluster:- Premium

As we are doing RND on confluent to check my use case will support or not so we are using Basic cluster

As you saying connectors will work in basic cluster as well until proper network configured on both side. yeam i correct ?

---

<div class="post-metadata">

**Author:** ![OneCricketeer](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/onecricketeer/32/1551_2.png) [@OneCricketeer](https://forum.confluent.io/u/OneCricketeer)\
**Post date:** [18 May 2023 20:15 UTC](https://forum.confluent.io/t/issue-with-postgressinkconnector-connection-to-database-but-same-connection-details-works-from-postgres-client/7870/10 "2023-05-18T20:15:53Z")

</div>

I am not a Confluent Cloud user, but I do not believe there are any restrictions on what types of Connectors can be ran. At least, I’ve not seen any documentation that mentions this.

Still, that doesn’t prevent you from self-managing Kafka Connect in the same datacenter where your database is available.
