Hi, airbyte version 0.63 error below: at io.airby...
# ask-ai
r
Hi, airbyte version 0.63 error below: at io.airbyte.integrations.source.postgres.PostgresSource.getPrivilegesTableForCurrentUser(PostgresSource.java:663) [io.airbyte.airbyte-integrations.connectors-source-postgres.jar:?] at io.airbyte.cdk.integrations.source.jdbc.AbstractJdbcSource.discoverInternal(AbstractJdbcSource.java:184) [airbyte-cdk-db-sources-0.27.6.jar:?] at io.airbyte.integrations.source.postgres.PostgresSource.discoverRawTables(PostgresSource.java:380) [io.airbyte.airbyte-integrations.connectors-source-postgres.jar:?] at io.airbyte.integrations.source.postgres.PostgresSource.discoverInternal(PostgresSource.java:371) [io.airbyte.airbyte-integrations.connectors-source-postgres.jar:?] at io.airbyte.integrations.source.postgres.PostgresSource.discoverInternal(PostgresSource.java:123) [io.airbyte.airbyte-integrations.connectors-source-postgres.jar:?] at io.airbyte.cdk.integrations.source.relationaldb.AbstractDbSource.discoverWithoutSystemTables(AbstractDbSource.java:274) [airbyte-cdk-db-sources-0.27.6.jar:?] at io.airbyte.cdk.integrations.source.relationaldb.AbstractDbSource.read(AbstractDbSource.java:167) [airbyte-cdk-db-sources-0.27.6.jar:?] at io.airbyte.cdk.integrations.base.ssh.SshWrappedSource.read(SshWrappedSource.java:75) [airbyte-cdk-core-0.27.6.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.readSerial(IntegrationRunner.java:267) [airbyte-cdk-core-0.27.6.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.java:173) [airbyte-cdk-core-0.27.6.jar:?] at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.java:125) [airbyte-cdk-core-0.27.6.jar:?] at io.airbyte.integrations.source.postgres.PostgresSource.main(PostgresSource.java:713) [io.airbyte.airbyte-integrations.connectors-source-postgres.jar:?] Stack Trace: org.postgresql.util.PSQLException: This connection has been closed. at org.postgresql.jdbc.PgConnection.checkClosed(PgConnection.java:993) at org.postgresql.jdbc.PgConnection.getAutoCommit(PgConnection.java:953) at com.zaxxer.hikari.pool.HikariProxyConnection.getAutoCommit(HikariProxyConnection.java) at io.airbyte.cdk.db.jdbc.StreamingJdbcDatabase.lambda$unsafeQuery$0(StreamingJdbcDatabase.java:72) at java.base/java.util.stream.AbstractPipeline.close(AbstractPipeline.java:323) at io.airbyte.cdk.db.jdbc.JdbcDatabase.queryJsons(JdbcDatabase.java:172) at io.airbyte.integrations.source.postgres.PostgresSource.getPrivilegesTableForCurrentUser(PostgresSource.java:663) at io.airbyte.cdk.integrations.source.jdbc.AbstractJdbcSource.discoverInternal(AbstractJdbcSource.java:184) at io.airbyte.integrations.source.postgres.PostgresSource.discoverRawTables(PostgresSource.java:380) at io.airbyte.integrations.source.postgres.PostgresSource.discoverInternal(PostgresSource.java:371) at io.airbyte.integrations.source.postgres.PostgresSource.discoverInternal(PostgresSource.java:123) at io.airbyte.cdk.integrations.source.relationaldb.AbstractDbSource.discoverWithoutSystemTables(AbstractDbSource.java:274) at io.airbyte.cdk.integrations.source.relationaldb.AbstractDbSource.read(AbstractDbSource.java:167) at io.airbyte.cdk.integrations.base.ssh.SshWrappedSource.read(SshWrappedSource.java:75) at io.airbyte.cdk.integrations.base.IntegrationRunner.readSerial(IntegrationRunner.java:267) at io.airbyte.cdk.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.java:173) at io.airbyte.cdk.integrations.base.IntegrationRunner.run(IntegrationRunner.java:125) at io.airbyte.integrations.source.postgres.PostgresSource.main(PostgresSource.java:713) 2025-07-25 110254 source > ERROR main i.a.c.i.b.s.SshWrappedSource(read):77 Exception occurred while getting the delegate read iterator, closing SSH tunnel java.lang.RuntimeException: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend. at io.airbyte.cdk.db.jdbc.StreamingJdbcDatabase$1.tryAdvance(StreamingJdbcDatabase.java:112) ~[airbyte-cdk-core-0.27.6.jar:?] at java.base/java.util.Spliterator.forEachRemaining(Spliterator.java:332) ~[?:?] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?] at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?] at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?] at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?] at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?]
k
The error message you are seeing:
Copy code
org.postgresql.util.PSQLException: This connection has been closed.
and
Copy code
java.lang.RuntimeException: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
indicates that the Airbyte Postgres source connector is losing its connection to the Postgres database during the discovery or read process. This is a common class of error in Airbyte when the underlying JDBC connection is closed unexpectedly. Possible causes and references from knowledge sources: 1. Idle Timeout or Connection Closure by Server: If the Postgres server is configured with an idle-in-transaction timeout or aggressively closes idle connections, you may see similar errors. For example, a related issue is described where the connection is terminated due to idle-in-transaction timeout, resulting in a similar stack trace and error message. The solution in that case is to review and potentially increase the
idle_in_transaction_session_timeout
setting on your Postgres server, or ensure that Airbyte is not leaving transactions open for too long during discovery or sync operations [[Source Postgres: fails with idle-transaction-timeout issue](https://github.com/airbytehq/airbyte/issues/27715)]. 2. Network Instability or Firewall: Network interruptions, firewalls, or proxies that close idle connections can also cause this. If you are running Airbyte and Postgres in different networks or containers, ensure there are no network policies or firewalls closing the connection unexpectedly. 3. Resource Exhaustion or Connection Pooling Issues: If the Airbyte instance or the Postgres server is under heavy load, or if there are not enough available connections in the pool, you may see connection closure errors. This is also seen in other Airbyte issues where HikariCP (the connection pool) cannot provide a connection in time, leading to timeouts and closed connections [[Any database connection times out](https://github.com/airbytehq/airbyte/issues/32129)]. 4. Postgres JDBC Driver or Connector Bugs: In rare cases, bugs in the JDBC driver or the Airbyte connector itself can cause connections to be closed unexpectedly. Upgrading to the latest compatible versions of Airbyte and the connectors may help. What you can do: - Check the Postgres server logs for any indication of why the connection was closed. - Review and adjust the
idle_in_transaction_session_timeout
and related timeout settings on your Postgres server. - Ensure network stability between Airbyte and Postgres. - Monitor resource usage on both Airbyte and Postgres. - If you are using SSH tunnels, ensure the tunnel remains open and stable during the sync. - Try restarting Airbyte and Postgres to clear any stale connections. If the problem persists after these checks, please provide more details about your environment (e.g., are you using SSH, what are your Postgres timeout settings, is there a proxy/firewall between Airbyte and Postgres, etc.) for more targeted troubleshooting. Let me know if you need help interpreting specific log lines or configuration settings!