# Source Datastore Troubleshooting

Source: https://userguide.qualytics.io/source-datastore/datastore/troubleshooting/

This page documents the problems any source datastore can run into, whatever its connector, and the steps to resolve them. The sections follow the order in which Qualytics uses a datastore: reaching the data source, signing in, fetching credentials from a secrets manager when the connection uses one, discovering databases and schemas, creating datastores, syncing, and then profiling and scanning. Work through them top to bottom; a failure at an early stage often shows up later under a different name.

> **Info: Errors from a specific connector**
>
> The error messages a data source returns itself, such as `ORA-01017` from Oracle, `pg_hba.conf` from PostgreSQL, or an AWS access error, are explained on that connector's own Troubleshooting page. Find the connector under [JDBC Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/jdbc/), [DFS Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/dfs/), or [Native Connectors](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/native/).

## Reaching the Data Source

### The Connection Test Reports the Server as Unreachable, Refused, or Timed Out

The **Test connection** button fails with a message such as `Connection refused`, `Host is unreachable`, or a timeout, before any credential has been checked.

**Cause:** No network path exists from your Qualytics deployment to the data source. A firewall or security group blocks the addresses Qualytics connects from, the port is closed, the hostname does not resolve from inside the deployment, or the host or port in the form is wrong.

**Resolution:** Confirm the host and port in the form, then allow the **Public addresses** or **Private addresses** listed in the banner below the connection form through your firewall, security group, or allowlist; see [Finding the addresses to allow](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/#finding-the-addresses-to-allow). Allow only the group that matches how your deployment reaches the source. A source inside a private network also needs VPC peering, a private endpoint, or a VPN tunnel to your deployment; see [Network Requirements](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/connection/#network-requirements).

---

## Signing In

### A Datastore Shows a Red Status Dot

The small dot on the datastore's icon, in the Datastores list, the datastore details below the tree, and the breadcrumb, is red instead of green.

**Cause:** The datastore's last Sync failed. Common reasons are credentials that were changed or expired at the source, a permission that was revoked, a host that moved, or a network change. The dot turns green again after the next Sync that succeeds; **Test connection** checks the values in a form but does not change the dot.

**Resolution:** Open the failed Sync in the datastore's **Activity** tab to read its message, then follow the matching entry on this page or on the connector's Troubleshooting page. When the credentials or the host changed, update the connection; see the next entry. Run a Sync once it is fixed.

### A Connection That Worked Stops Working After a Credential Change

Operations that used to succeed now fail, and the password, key, token, or certificate the connection uses was changed or expired at the source in between.

**Cause:** The connection still holds the old credential. Every datastore that shares the connection uses the same values, so all of them fail together.

**Resolution:** Edit the connection on [Manage Connections](https://userguide.qualytics.io/settings/connections/manage-connections/) and enter the new credential. Qualytics checks access again before saving, and the change reaches every datastore that shares the connection. To stop updating credentials in Qualytics at all, keep them in a secrets manager; see [HashiCorp Vault Secrets Management](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/).

---

## Secrets Management: Reaching Vault

The next four sections apply only to a connection with **Secrets Management** turned on. Qualytics reaches Vault, logs in, fetches the secret, and uses it, in that order, every time the connection is opened. Each message appears in the **Connection test failed** banner; match the wording.

### The Test Waits About Two Minutes and Fails with a Gateway Timeout

The banner reads `Request took longer than expected. Please retry. (Status: 504)`.

**Cause:** The whole request timed out. A connection test reaches Vault, reads the secret, and then connects to the data source, and the message only says that the sum of those took too long. The most common stall is Vault itself: no network path from the Qualytics addresses to Vault's host and port, or a Vault hostname that does not resolve from inside the Qualytics deployment. A data source that is slow to answer can produce the same message after Vault succeeded.

**Resolution:** Find the stage that stalled before changing anything. If the same connector works when **Secrets Management** is turned off and the credentials are typed in, Vault is the stall; if it times out either way, the data source is. For a Vault stall, allow the addresses shown below the connection form through the firewall to Vault's host and port and use a hostname that resolves from inside the deployment; see [Network Requirements](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#network-requirements). The Secrets Management field values are not evaluated until Vault answers, so retrying the form with different values does not help until the path exists.

### The Test Fails Immediately with an Unreachable Message

The banner reads `Unable to establish connection to the configured secrets manager` or `Unable to reach the configured secrets manager at [...]`.

**Cause:** The connection was refused, the hostname could not be resolved, or the TLS handshake failed.

**Resolution:** Check the host and port in both URLs, and that Vault's certificate chain is trusted by your Qualytics deployment. After fixing the cause, wait for the retry named in the message, up to five minutes after the failure, before testing again. Until then the test fails right away without contacting Vault, which is not a sign that the fix did not work.

### The Test Fails with a Bad Gateway Message

The banner reads `Bad gateway. The server received an invalid response. (Status: 502)`.

**Cause:** An unexpected failure while talking to Vault. The most common reason is a **Login URL** or **Secret URL** that is not a complete URL, for example a bare path with no `https://` and host.

**Resolution:** Make both URLs complete, then test again.

---

## Secrets Management: Logging In

### Invalid Role or Secret ID

The banner reads `The secrets manager login attempt failed. It responded with: [400: Bad Request - ['invalid role or secret ID']]`.

**Cause:** Either the role does not exist at the path the **Login URL** points to, or the secret ID is no longer valid. The first is far more common with namespaces: the AppRole lives inside a namespace, but the Login URL points at the root namespace. Vault reports an unknown role as invalid credentials by design. The second happens when the secret ID expired or ran out of uses.

**Resolution:** Confirm which namespace the AppRole is enabled in and add it after `/v1/` in the Login URL; see [Namespaces](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#namespaces). If the namespace is already right, mint a new secret ID and update the **Credentials Payload**, as in [Prepare HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/how-tos/prepare-vault/).

### The Login Service Was Not Found

The banner reads `The secrets manager login attempt failed because the configured service [...] was not found: [404]`.

**Cause:** The **Login URL** path is wrong. Usually the auth method is mounted under a name other than `approle`, or the namespace is missing or misspelled.

**Resolution:** Open **Access** in the Vault UI, with the namespace selector set correctly, and copy the mount path shown there into the Login URL.

### The Token Was Not Found in the Login Response

The banner reads `The path [$.auth.client_token] was not available in the secrets manager's login response`.

**Cause:** The login endpoint answered, but not in Vault's shape. This happens with a secrets manager other than Vault, or with a proxy in front of Vault that rewrites responses.

**Resolution:** Check the login response of your secrets manager and set **Token JSONPath** to where the token actually is.

### The Token JSONPath Is Not a Valid Expression

The banner reads `The configured token_jsonpath [...] is not a valid JSONPath expression: ...`.

**Cause:** The **Token JSONPath** has a syntax error, for example an unbalanced bracket or a missing `$`.

**Resolution:** Correct the expression. For Vault it is `$.auth.client_token`.

### The Token JSONPath Points at an Object, Not a Token

The banner reads `The path [...] in the secrets manager's login response must resolve to a scalar token value, but returned [dict]` (or `[list]`).

**Cause:** The expression selects a whole object rather than the token string inside it, for example `$.auth` instead of `$.auth.client_token`.

**Resolution:** Extend the expression down to the field that holds the token.

### The Login Response Is Not JSON

The banner reads `The secrets manager login response returned a successful response that was not valid JSON: [...]`.

**Cause:** The **Login URL** answered with something other than JSON, often an HTML page from a proxy, a sign-in portal, or a wrong path that serves the Vault web UI.

**Resolution:** Point the Login URL at the API path, `/v1/...`, not at the UI, and check that no proxy on the way rewrites the response.

---

## Secrets Management: Fetching the Secret

### Permission Denied

The banner reads `The secrets manager fetch attempt failed. It responded with: [403: Forbidden - [... permission denied]]`.

**Cause:** The role's token cannot read the secret. Either no policy grants `read` on the secret's data path, the policy path is wrong (for example missing the `/data/` segment on a KV version 2 mount), or the policy is not attached to the role.

**Resolution:** Fix the policy path, attach the policy with `token_policies` on the role, then mint a new secret ID so a fresh token carries it. The verification step in [Prepare HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/how-tos/prepare-vault/) confirms the fix from the CLI.

### The Secret Was Not Found

The banner reads `The secrets manager fetch attempt failed. It responded with: [404: Not Found ...]`.

**Cause:** The **Secret URL** path is wrong: the mount name, the secret name, a missing namespace, or a missing `/data/` segment on a KV version 2 mount.

**Resolution:** Copy the **API path** from the secret's **Paths** tab in the Vault UI and put `https://` and the host in front of it.

### The Data JSONPath Was Not Found in the Response

The banner reads `The path [...] was not available in the secrets manager's fetch response. It contained these keys: [...]`.

**Cause:** The **Data JSONPath** does not match the shape of the response. The keys listed in the message tell you what the response looked like.

**Resolution:** Use `$.data.data` for a KV version 2 secret and `$.data` for KV version 1 or the database secrets engine. See [Choosing the Data JSONPath](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#choosing-the-data-jsonpath).

For a custom response, use the full path to the credential object. A path ending in `[:]` or `[::]` selects array elements only, while `['*']` selects a field literally named `*`. To select object members, use `.*` or `[*]`. See [JSONPath Expressions for Custom Responses](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#jsonpath-expressions-for-custom-responses).

### The Data JSONPath Is Not a Valid Expression

The banner reads `The configured data_jsonpath [...] is not a valid JSONPath expression: ...`.

**Cause:** The **Data JSONPath** has a syntax error.

**Resolution:** Correct the expression. For a KV version 2 secret it is `$.data.data`.

### The Data JSONPath Points at a Single Value

The banner reads `The path [...] in the secrets manager's fetch response must resolve to a key-value object, but returned [str]` (or another type).

**Cause:** The expression selects one value, for example `$.data.data.password`, instead of the object that holds all the key/value pairs.

**Resolution:** Stop the expression at the object, `$.data.data`, and pick individual values in the connection fields with `${key}`.

### The Fetch Response Is Not JSON

The banner reads `The secrets manager fetch response returned a successful response that was not valid JSON: [...]`.

**Cause:** The **Secret URL** answered with something other than JSON, usually because it points at the Vault web UI or at a proxy page rather than the API path.

**Resolution:** Use the **API path** from the secret's **Paths** tab, which starts with `/v1/`, with `https://` and the host in front.

---

## Secrets Management: Using the Secret

### The Only Keys Available Are `data` and `metadata`

The banner reads `The datastore configuration references secret token(s) that could not be resolved: ${...}. ... Keys available in the secrets context: data, metadata`.

**Cause:** The **Data JSONPath** is `$.data` on a KV version 2 secret, so Qualytics received the wrapper object rather than the key/value pairs.

**Resolution:** Set **Data JSONPath** to `$.data.data`.

### A Reference Could Not Be Resolved

The banner reads `The datastore configuration references secret token(s) that could not be resolved: ${...}. Please check for typos in your token name(s). Keys available in the secrets context: ...`.

**Cause:** The name inside `${...}` does not match a key in the secret. Key names are case sensitive.

**Resolution:** Use one of the listed keys exactly as written, or add the missing key to the secret.

### A Reference Is Rejected Over Its Key Name

The save or the connection test fails with a message saying that secret token names may only contain letters, digits, and underscores, naming the reference, for example `${some-key}`.

**Cause:** The key name is one `${key}` cannot reference. Only names that start with a letter or underscore and contain letters, digits, and underscores can be substituted. In a file field, in **Private Key Password**, or in the Hive **Client Principal**, a name with a hyphen, dot, or other character is refused before anything is sent to the data source.

**Resolution:** Rename the key in the secret to use underscores, for example `service_account`, and update the reference. See [Referencing the Secret](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#referencing-the-secret).

### A Reference Stays in a Text Field as Literal Text

The connection test or a later operation fails with the data source rejecting a value that still reads `${some-key}`, and no Qualytics message about the reference appears.

**Cause:** The same key name problem in an ordinary text field, such as a username or password. The key exists in the secret, so the reference passes the check for unknown keys, but a name with a hyphen, dot, or other character is never substituted and reaches the data source as typed.

**Resolution:** Rename the key in the secret to use underscores, for example `service_account`, and update the reference. See [Referencing the Secret](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#referencing-the-secret).

### The Data Source Rejects a Value That Looks Like `$.key`

The banner shows an error from the data source itself quoting the literal text, for example `Value '$.role' at 'roleArn' failed to satisfy constraint` from AWS.

**Cause:** The field uses JSONPath syntax instead of a reference, so the text was sent to the data source unchanged.

**Resolution:** Write the reference with braces, `${key}`. See [Referencing the Secret](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/#referencing-the-secret).

### The Test Passes but Later Operations Fail

Syncs, profiles, or scans fail against a datastore whose connection test used to pass.

**Cause:** Qualytics logs in to Vault and fetches the secret on every use. A secret ID that has expired or run out of uses, a revoked policy, or a firewall change breaks every later operation, not only new connection tests.

**Resolution:** Run **Test connection** on the connection to get the current message, then follow the matching entry in these four sections.

---

## Discovering Databases and Schemas

### The Database, Catalog, or Schema List Is Empty or Incomplete

The connection test passes, but a **Database**, **Catalog**, or **Schema** dropdown offers nothing, or leaves out a database or schema you know exists.

**Cause:** Discovery lists what the user or identity on the connection is allowed to see. A database or schema it has no access to, for example without `USAGE` on a schema, is left out of the list. On a two-step connector, the schemas listed belong to the database or catalog selected first.

**Resolution:** Grant that user or identity access to the databases and schemas you want to monitor, as listed on the connector's Permissions page, then click the **refresh** button next to the dropdown to discover again. On a two-step connector, check that the right database or catalog is selected. System schemas such as `information_schema` are listed too when the user can see them; select only the schemas you want.

### The Catalog and Schema Dropdowns Do Not Appear

The form for creating several schemas at once shows no catalog or schema dropdowns.

**Cause:** Those dropdowns belong to JDBC and Native connectors, and discovery needs a connection that works. A DFS connector shows a **Root Path** multi-select instead, and a connection whose credentials fail returns an error instead of a list.

**Resolution:** Pick a JDBC or Native connector, fill in working credentials, and click **Test connection**. Fix any failure it reports, using the sections above, before discovering again.

---

## Creating Datastores

### Some Schemas Fail When Several Are Created at Once

Validation or creation succeeds for some of the selected schemas and reports an error for others.

**Cause:** Validation and creation run per schema, and creation is not atomic: the schemas that pass are created and the others are reported with their messages. A common cause is a permission missing on the failing schemas, or a datastore name the name template produces that is already taken.

**Resolution:** Fix the problem each message describes and click **Finish** again. Only the schemas that failed are created; the others are not affected. On a new connection, the retry reuses the connection the first attempt saved, including when every schema was refused by the enrichment destination. The same holds when the first attempt created a new group with **Create group**, because the group is saved with the connection. Only when nothing saved the connection, with every schema failing before it was created (for example because its name is already taken) and no new group created, does **Finish** create the connection again. A schema already created keeps the name and prefix it was created with, so its prefix is locked in the **Prefix** section. If you switch to another connection, or select schemas in another database, the next **Finish** creates every selected schema, even one with the same name as a schema already created. Through the [Datastore API](https://userguide.qualytics.io/source-datastore/datastore/api/), send only the failed schema names. See [Multiple-Schema](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/multiple-schema/).

---

## Syncing

### The Sync Does Not Find All Tables or Files

A Sync completes, but tables, views, files, or objects you expected are missing from the datastore.

**Cause:** Sync lists what the connection's user can see, inside the database, schema, or root path set on the datastore, and only the asset types the Sync includes. A missing permission, a datastore pointed at another schema or path, or a Sync that leaves out views are the common causes. Some connectors also skip table types or formats they cannot read; their Troubleshooting pages list those cases.

**Resolution:** Check that the user has read access, such as `SELECT`, on the missing tables, or list access on the path for a DFS datastore. Confirm the **Database** and **Schema** of a JDBC datastore or the **Root Path** of a DFS datastore. Check the **Include** option of the Sync, which chooses tables, views, or both; see [Sync](https://userguide.qualytics.io/operations/sync/sync/). If the asset is still missing, see the connector's Troubleshooting page for the types it does not read.

---

## Profiling and Scanning

### The Sync Succeeds but Profiling or Scanning Fails

A Sync completes and lists the tables, but a Profile or Scan of them fails with an access or read error.

**Cause:** A successful Sync does not prove that every record can be read. Sync works mostly from metadata, the list of tables and their columns, and reads records only in small samples where it needs them, such as when choosing a partition field on a JDBC table or detecting the layout of JSON files; see [Load on the Source System](https://userguide.qualytics.io/operations/sync/sync/#load-on-the-source-system). Profile and Scan read the records themselves. The user may be allowed to see a table but not read all of its rows. On a Native connector, the records live in storage with its own permissions, separate from the catalog or metastore the Sync reads.

**Resolution:** Grant read access to the data itself, as listed on the connector's Permissions page, then run the Profile or Scan again. For a Native connector, the connector's Troubleshooting page covers access to its storage.

---

## Deleting

### The Datastore Cannot Be Deleted

The **Delete Datastore** dialog lists flows under **Flows** and shows only **Close**, or the deletion is refused with a message.

**Cause:** Something else still depends on the datastore: a flow that names it in its trigger filter or in one of its actions, a Computed Join in another datastore that uses one of its tables or files, or a flow action that runs an operation on it.

**Resolution:** Adjust or remove what depends on it, then delete it. [When Delete Is Blocked](https://userguide.qualytics.io/source-datastore/datastore/how-tos/delete-datastore/#when-delete-is-blocked) explains each case, including how deleting through the API differs.

*Last updated: November 17, 2026.*
