> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting Common Connector Issues

> Fix common connector setup and metadata ingestion issues in Collate, with troubleshooting guides for each supported connector.

# Connector Troubleshooting Guide

This guide provides instructions to help resolve common issues encountered during connector setup and metadata ingestion in Collate. Below are some of the most frequently observed troubleshooting scenarios.

* [ADLS Datalake](#adls-datalake)
* [AzureSQL](#azuresql)
* [Databricks](#databricks)
* [Domo Database](#domo-database)
* [Hive](#hive)
* [Impala](#impala)
* [MSSQL](#mssql)
* [PostgreSQL](#postgresql)
* [Redshift](#redshift)
* [S3 Datalake](#s3-datalake)
* [Vertica](#vertica)
* [Kafka](#kafka)
* [Nifi](#nifi)

## How to Enable Debug Logging for Any Ingestion

To enable debug logging for any ingestion workflow in Collate:

1. **Navigate to Connections**
   Go to **Connections** > **Service Type** (e.g., Database) in the Collate UI.

2. **Select a Service**
   Choose the specific service for which you want to enable debug logging.

![Select a Service](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/debug/debug1.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=6bde2c941bac99c6e2031e65a39013ba)

3. **Access Agents Tab**
   Go to the **Agents tab** and click the three-dot menu on the right-hand side of the ingestion type, and select Edit.

![Access Agents Tab](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/debug/debug2.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=47039488c3577a8451dfffb5a27df1ba)

4. **Enable Debug Logging**
   In the configuration dialog, enable the **Debug Log** option and click **Next**.

![Enable Debug Logging](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/debug/debug3.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=6f7f4f5794b970a21723e9b5a12f0b3e)

5. **Schedule and Submit**
   Configure the schedule if needed and click **Submit** to apply the changes.

![Schedule and Submit](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/debug/debug4.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=e8c647aa0278779d105260b81ee57a24)

## Permission Issues

If you encounter permission-related errors during connector setup or metadata ingestion, ensure that all the prerequisites and access configurations specified for each connector are properly implemented. Refer to the connector-specific documentation to verify the required permissions.

## ADLS Datalake

Learn how to resolve the most common problems people encounter in the ADLS Datalake connector.

#### **'Azure Datalake'** credentials details

##### Where Can I Find the Client Secret?

* Login to `Azure Portal`
* Find and click on your application
* Select `Certificates & Secret` under `Manage` Section

![Configure service connection](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/datalake/troubleshoot-clientId.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=e016338b7f5ce7863417e523f9ef6342)

## AzureSQL

Learn how to resolve the most common problems people encounter in the AzureSQL connector.

* **Unknown error connecting with Engine \[...]; An attempt to complete a transaction has failed. No corresponding transaction found. (111214) (SQLEndTran)**

This is an exception you can get when trying to connect to AzureSQL using SQLAlchemy (the internal Collate Ingestion
library for reaching databases).

To solve this issue, you can edit your Service Connection by adding the following **Connection Argument**:

* Key: `autocommit`
* Value: `true`

![autocommit](https://mintcdn.com/collatedocs/XRLyE3HymqoH13_i/public/images/connectors/azuresql/autocommit.png?fit=max\&auto=format\&n=XRLyE3HymqoH13_i\&q=85\&s=36ac0debd331da931c3fc2d753ca39cd)

* **Cannot open server '\[server name]' requested by the login. Client with IP address '\[your IP]' is not allowed to access the server**

This is an exception you can get when trying to connect to AzureSQL using SQLAlchemy (the internal Collate Ingestion library for reaching databases).

To solve this issue, you need to add your IP address in firewall rules for your Azure SQL instance.

![azure sql firewall rules](https://mintcdn.com/collatedocs/XRLyE3HymqoH13_i/public/images/connectors/azuresql/azure-firewall.png?fit=max\&auto=format\&n=XRLyE3HymqoH13_i\&q=85\&s=a877bdb2f30762d8abe75c745dbd4b65)

## Databricks

### Databricks Connection Details

```
source:
  type: databricks
  serviceName: local_databricks
  serviceConnection:
    config:
      catalog: hive_metastore
      databaseSchema: default
      token: <databricks token>
      hostPort: localhost:443
      connectionArguments:
        http_path: <http path of databricks cluster>
  sourceConfig:
    config:
      type: DatabaseMetadata
sink:
  type: metadata-rest
  config: {}
workflowConfig:
  openMetadataServerConfig:
    hostPort: http://localhost:8585/api
    authProvider: no-auth
```

Here are the steps to get `hostPort`, `token` and `http_path`.

First login to Azure Databricks and from side bar select SQL Warehouse (In SQL section)

![Select Sql Warehouse](https://mintcdn.com/collatedocs/12mtkhFtvTP7FUxZ/public/images/connectors/databricks/select-sql-warehouse.png?fit=max\&auto=format\&n=12mtkhFtvTP7FUxZ\&q=85\&s=a6ccc6fecaf022d45aa2e7e93786a49a)

Now click on sql Warehouse from the SQL Warehouses list.

![Open Sql Warehouse](https://mintcdn.com/collatedocs/12mtkhFtvTP7FUxZ/public/images/connectors/databricks/Open-sql-warehouse.png?fit=max\&auto=format\&n=12mtkhFtvTP7FUxZ\&q=85\&s=5d6e2843334b4577ee5823062b0200c5)

Now inside that page go to Connection details section.
In this page Server hostname and Port is your `hostPort`, HTTP path is your `http_path`.

![Connection details](https://mintcdn.com/collatedocs/12mtkhFtvTP7FUxZ/public/images/connectors/databricks/Connection-details.png?fit=max\&auto=format\&n=12mtkhFtvTP7FUxZ\&q=85\&s=b88e4860e18859b972730990dd569aa6)

In Connection details section page click on Create a personal access token.

![Open create token](https://mintcdn.com/collatedocs/12mtkhFtvTP7FUxZ/public/images/connectors/databricks/Open-create-tocken-page.png?fit=max\&auto=format\&n=12mtkhFtvTP7FUxZ\&q=85\&s=a4146387838f6299efde74d9e45aed4d)

Now In this page you can create new `token`.

![Generate token](https://mintcdn.com/collatedocs/12mtkhFtvTP7FUxZ/public/images/connectors/databricks/Generate-token.png?fit=max\&auto=format\&n=12mtkhFtvTP7FUxZ\&q=85\&s=e2e1ae65869fa2bd98ad67cb6432ead2)

## Domo Database

Learn how to resolve the most common problems people encounter in the Domo Database connector.

### How to Find the Client ID?

1. You can find your `clientId` by [logging](https://developer.domo.com/) into your domo instance.
2. After that click on `My Account`> `Manage Clients`(if created).

![Client-id](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/domo-database/client-id.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=d7d74f1d98473f4221b28f7aa6ff3658)

### Where to Find the Access Token?

1. You need to generate accessToken.
2. [Login](https://www.domo.com/login) into your sandbox domain ex. `<your-domain>.domo.com`.
3. Click on the `MORE` button on navbar, after that click on `Admin`.
4. Under `Authentication` you will find `Access tokens`.

![Access Token](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/domo-database/access-token.png?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=e51a045b586405eccf5df5c5d423bbcd)

### Where Can I Find My Scopes?

* Scopes can be find Under `Manage Clients` section in `My Account` (If client not found, click [here](#how-to-find-the-client-id))

![Scopes](https://mintcdn.com/collatedocs/sQLcFBJkf-K-wqlw/public/images/connectors/domo-database/scopes.jpeg?fit=max\&auto=format\&n=sQLcFBJkf-K-wqlw\&q=85\&s=ee83748f1cc6d7078bc1ab9368815bb5)

## Hive

Learn how to resolve the most common problems people encounter in the Hive connector.

### Connection Timeout

You might be getting `thrift.transport.TTransport.TTransportException: TSocket read 0 bytes`.

Make sure that if there is a Load Balancer in between Collate and Hive, the LB timeout
is not impacting the ingestion. For example, when extracting data with a lot of partitions the `DESCRIBE`
command might take more than 60 seconds, so a Load Balancer with `Idle Timeout` at 60 seconds would
kill the connection.

## Impala

Learn how to resolve the most common problems people encounter in the Impala connector.

### Connection Timeout

You might be getting `thrift.transport.TTransport.TTransportException: TSocket read 0 bytes`.

Make sure that if there is a Load Balancer in between Collate and Impala, the LB timeout
is not impacting the ingestion. For example, when extracting data with a lot of partitions the `DESCRIBE`
command might take more than 60 seconds, so a Load Balancer with `Idle Timeout` at 60 seconds would
kill the connection.

## MSSQL

### Resolving SQL Server Authentication Issue for Windows User

This guide addresses a common issue when connecting to a SQL Server instance using Windows OS. If you encounter the error below, follow the steps outlined to resolve it effectively.

### Error Description

When attempting to connect to SQL Server using a Windows user, the following error appears:

```
(pyodbc.InterfaceError) ('28000', "[28000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'domain\\user'. (18456)")
```

Additionally, the SQL Server logs display:

```
Login failed for user 'domain\user'. Reason: Attempting to use an NT account name with SQL Server Authentication.
```

### Root Cause

The error occurs because the connection is configured to use SQL Server Authentication instead of Windows Authentication. Windows Authentication requires a connection scheme that supports integrated security.

### Resolution

Follow the steps below to update the connection to use Windows Authentication.

### Step 1: Verify Connection Configuration

1. Ensure that you are connecting to SQL Server using **Windows Authentication**.
2. Update the connection scheme to use `mssql+pymssql` instead of `mssql.pyodbc`.

### Step 2: Update the Connection Details in Collate

1. Navigate to **MSSQL Service Configuration** in the Collate UI.
2. Update the **Connection Scheme** to `mssql+pymssql`.
3. Retain the following connection details:
   * **Host and Port**: e.g., `10.121.89.148:62452`.
   * **Database**: Specify the target database (e.g., `OneSumx_Stoging`).
   * **Username**: Use the Windows account username, e.g., `domain\user`.
4. Save the updated configuration.

### Step 3: Test the Connection

1. After saving the changes, click **Test Connection** in the Collate UI.
2. Confirm that the following steps pass successfully:
   * **CheckAccess**
   * **GetDatabases**
   * **GetSchemas**
   * **GetTables**
   * **GetViews**
   * **GetQueries**

### Expected Outcome

After updating the connection scheme, the connection should succeed. The status will display:

```
Connection Status: Success
```

## PostgreSQL

Learn how to resolve the most common problems people encounter in the PostgreSQL connector.

### Column XYZ Does Not Exist

If when running the metadata ingestion workflow you get a similar error to:

```
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1165, in _run_raw_task
    self._prepare_and_execute_task_with_callbacks(context, task)
  File "/usr/local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1283, in _prepare_and_execute_task_with_callbacks
    result = self._execute_task(context, task_copy)
  File "/usr/local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1313, in _execute_task
    result = task_copy.execute(context=context)
  File "/usr/local/lib/python3.9/site-packages/airflow/operators/python.py", line 150, in execute
    return_value = self.execute_callable()
  File "/usr/local/lib/python3.9/site-packages/airflow/operators/python.py", line 161, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/usr/local/lib/python3.9/site-packages/openmetadata/workflows/ingestion/common.py", line 114, in metadata_ingestion_workflow
    workflow.execute()
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/api/workflow.py", line 161, in execute
    for record in self.source.next_record():
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 104, in next_record
    yield from self.process_nodes(get_topology_root(self.topology))
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 89, in process_nodes
    yield from self.process_nodes(child_nodes)
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 89, in process_nodes
    yield from self.process_nodes(child_nodes)
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 89, in process_nodes
    yield from self.process_nodes(child_nodes)
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/api/topology_runner.py", line 67, in process_nodes
    for element in node_producer() or []:
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/source/database/common_db_source.py", line 210, in get_tables_name_and_type
    if self.is_partition(
  File "/usr/local/lib/python3.9/site-packages/metadata/ingestion/source/database/postgres.py", line 87, in is_partition
    cur.execute(
psycopg2.errors.UndefinedColumn: column "relispartition" does not exist
LINE 2:                 SELECT relispartition as is_partition
```

Then you might be using an unsupported PostgreSQL version. Check the requirements for the PostgreSQL connector:
Note that we only support officially supported PostgreSQL versions. You can check the version list [here](https://www.postgresql.org/support/versioning/).

### Error: `no pg_hba.conf entry for host`

When trying to connect to a PostgreSQL server hosted on Azure/AWS using basic authentication, the connection may fail with the following error message:

```
(psycopg2.OperationalError) FATAL: no pg_hba.conf entry for host "x.xx.xxx.x", user "xxxxxx", database "xxxxx", no encryption
```

This error generally indicates that the host trying to access the PostgreSQL server is not permitted according to the server's `pg_hba.conf` configuration, which manages authentication.

1. **Allowlist the IP address**
   Ensure that the IP address provided by the Collate Service wizard is whitelisted in the Azure network firewall rules. You should also verify that the correct IP is added in the firewall for the database to allow connections from Collate.

2. **Check pg\_hba.conf File**
   While Azure-managed PostgreSQL doesn't allow direct access to modify the `pg_hba.conf` file, you can control access using Azure Firewall rules. Ensure that the IP address attempting to connect is allowed.

3. **Verify Network Access**
   Ensure that the PostgreSQL server is accessible from the internet for the allowed IP addresses. If the server is behind a VPN or private network, adjust the network settings accordingly.

4. **Adjust SSL Mode**
   The error could also be related to SSL settings. Setting the SSL mode to `allow` can help resolve this issue. Modify the connection settings in the Collate Service configuration to:

```
SSL Mode: Allow
```

This will allow the connection even if SSL is not enforced by the server.

## Redshift

Learn how to resolve the most common problems people encounter in the Redshift connector.

### Connection Error

```
connection to server at \"<host>:<port>\" (@IP),
<port> failed: server certificate for \"\*<host>:<port>\"
does not match host name \"<host>:<port>\"
```

If you get this error that time please pass `{'sslmode': 'verify-ca'}` in the connection arguments.

![Configure service connection](https://mintcdn.com/collatedocs/piJyXg9wW6Ik1lg-/public/images/connectors/redshift/service-connection-arguments.png?fit=max\&auto=format\&n=piJyXg9wW6Ik1lg-\&q=85\&s=fe108a3afb02024a7faabe674a12b7f6)

### Metadata Ingestion Failure

If your metadata ingestion fails and you have errors like:

```text theme={null}
RuntimeError: Table entity not found: [<default>.pg_class]
RuntimeError: Table entity not found: [<default>.pg_constraint]
```

This is because the schema `information_schema` is being ingested and the ingestion bot does not have the permissions
to access it. It is recommended to exclude the schema `information_schema` unless you explicitly need to ingest it
like in [the example config](https://github.com/open-metadata/OpenMetadata/blob/2477bbc9ca398c33703c85627cdd26bc2c27aad3/ingestion/src/metadata/examples/workflows/redshift.yaml#L16).

```yaml theme={null}
# ...
source:
  # ...
  type: redshift
  sourceConfig:
    config:
      type: DatabaseMetadata
      schemaFilterPattern:
        excludes:
        - information_schema.*
# ...
```

## S3 Datalake

Learn how to resolve the most common problems people encounter in the S3 Datalake connector.

* **'Access Denied' error when reading from S3 bucket**

Ensure you have a Bucket Policy with the permissions explained in the requirement section [here](https://docs.getcollate.io/ai-2-0/connectors/database/s3-datalake.md).

## Unity Catalog

### Unity Catalog Connection Details

```
source:
  type: unitycatalog
  serviceName: local_unity_catalog
  serviceConnection:
    config:
      catalog: hive_metastore
      databaseSchema: default
      token: <databricks token>
      hostPort: localhost:443
      connectionArguments:
        http_path: <http path of databricks cluster>
  sourceConfig:
    config:
      type: DatabaseMetadata
sink:
  type: metadata-rest
  config: {}
workflowConfig:
  openMetadataServerConfig:
    hostPort: http://localhost:8585/api
    authProvider: no-auth
```

Here are the steps to get `hostPort`, `token` and `http_path`.

First login to Azure Databricks and from side bar select SQL Warehouse (In SQL section)

![Select Sql Warehouse](https://mintcdn.com/collatedocs/VqDQzKrztCMb5uhb/public/images/connectors/unity-catalog/select-sql-warehouse.png?fit=max\&auto=format\&n=VqDQzKrztCMb5uhb\&q=85\&s=603634ce8e25597636cfc3327a4884c6)

Now click on sql Warehouse from the SQL Warehouses list.

![Open Sql Warehouse](https://mintcdn.com/collatedocs/VqDQzKrztCMb5uhb/public/images/connectors/unity-catalog/Open-sql-warehouse.png?fit=max\&auto=format\&n=VqDQzKrztCMb5uhb\&q=85\&s=85f4943e0142aa95df763bbdf2e65913)

Now inside that page go to Connection details section.
In this page Server hostname and Port is your `hostPort`, HTTP path is your `http_path`.

![Connection details](https://mintcdn.com/collatedocs/VqDQzKrztCMb5uhb/public/images/connectors/unity-catalog/Connection-details.png?fit=max\&auto=format\&n=VqDQzKrztCMb5uhb\&q=85\&s=34f2a7bcb764b908098e32c5d6699c11)

In Connection details section page click on Create a personal access token.

![Open create token](https://mintcdn.com/collatedocs/VqDQzKrztCMb5uhb/public/images/connectors/unity-catalog/Open-create-token-page.png?fit=max\&auto=format\&n=VqDQzKrztCMb5uhb\&q=85\&s=8f2b0f3153810b4b10a93685d9804d96)

Now In this page you can create new `token`.

![Generate token](https://mintcdn.com/collatedocs/VqDQzKrztCMb5uhb/public/images/connectors/unity-catalog/Generate-token.png?fit=max\&auto=format\&n=VqDQzKrztCMb5uhb\&q=85\&s=9b6639fdda0545e93db0c870b6972048)

## Vertica

Learn how to resolve the most common problems people encounter in the Vertica connector.

### Profiler: New Session Rejected

If you see the following error when computing the profiler `New session rejected due to limit, already XYZ sessions active`,
it means that the number of threads configured in the profiler workflow is exceeding the connection limits of your
Vertica instance.

Note that by default the profiler runs with 5 threads. In case you see this error, you might need to reduce this number.

## Kafka

### Consumer and Schema Registry Config

When configuring the Kafka connector, we could need to pass extra parameters to the consumer or the schema registry to
be able to connect. The accepted values for the consumer can be found in the following
[link](https://github.com/confluentinc/librdkafka/blob/master/CONFIGURATION.md), while the ones optional for
the schema registry are [here](https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#schemaregistryclient).

If you encounter issues connecting to the Schema Registry, ensure that the protocol is explicitly specified in the Schema Registry URL. For example:

* Use `http://localhost:8081` instead of `localhost:8081`.
  The Schema Registry requires a properly formatted URL, including the protocol (`http://` or `https://`). While this differentiation is expected in the Schema Registry configuration, it may not be immediately apparent.

In case you are performing the ingestion through the CLI with a YAML file, the service connection config should look
like this:

```yaml theme={null}
  serviceConnection:
    config:
      type: Kafka
      bootstrapServers: localhost:9092
      schemaRegistryURL: http://localhost:8081
      consumerConfig:
        "ssl.truststore.password": "password"
      schemaRegistryConfig:
        "basic.auth.user.info": "username:password"
```

### Connecting to Confluent Cloud Kafka

If you are using Confluent kafka and SSL encryption is enabled you need to add `security.protocol` as key and `SASL_SSL` as value under Consumer Config.

## Nifi

Learn how to resolve the most common problems people encounter in the Nifi connector.

### No applicable policies could be found

If you see the error `No applicable policies could be found. Contact the system administrator` during the Test
Connection or when running the ingestion, you will need to add the missing policies in the Nifi instance.

You can find more information in this [link](https://community.cloudera.com/t5/Support-Questions/API-call-to-nifi-api-resources-results-in-quot-No-applicable/td-p/363534).

The accepted answer is to add a policy to `authorizations.xml` as follows:

```xml theme={null}
<policy identifier="0c6d205e-9153-4bcd-9534-aeb029c65e10" resource="/resources" action="R">
    <group identifier="2c7ce5db-0186-1000-ffff-ffffdbb1315d"/>
</policy>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.