Slackbot
05/14/2026, 7:50 PMkapa.ai
05/14/2026, 7:51 PMprivate key is not provided even though private key file: rsa_key.p8 is set. This is a known pattern with key pair authentication in Airbyte's Snowflake connectors.
Key Observations from Your Log 1. private key is not provided — Despite private key file: rsa_key.p8 being listed, the JDBC driver logs this message, which typically indicates the key could not be parsed/loaded correctly.
2. No passphrase — private key pwd is not provided, meaning you're using an unencrypted key (or the passphrase isn't being passed through).
Possible Causes & Solutions 1. Encrypted Key Parsing Issue (Most Likely) If your key was generated with encryption (e.g., using AES-256 or DES3), the connector may fail to parse it without Bouncy Castle enabled. There is a known issue where keys generated with OpenSSL 3.x using encryption cannot be used without enabling Bouncy Castle support, resulting in errors like:
> Private key provided is invalid or not supported: PBE parameter parsing error: expecting the object identifier for AES cipher
[source-snowflake key issue]
A fix enabling Bouncy Castle for the destination connector was merged (PR #77978), but the source connector already had it enabled. [Bouncy Castle fix]
2. Key Generation Make sure your private key is generated correctly. For an unencrypted key:
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out rsa_key.p8 -nocrypt
For an encrypted key:
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -v2 aes-256-cbc -out rsa_key.p8
Then generate the public key:
openssl rsa -in rsa_key.p8 -pubout -out rsa_key.pub
And assign it to your Snowflake user:
alter user AIRBYTE_KEYPAIR set rsa_public_key=<public_key_value>;
[key pair auth docs]
3. Troubleshooting Steps • Verify the public key is correctly assigned to the AIRBYTE_KEYPAIR user in Snowflake.
• If using an encrypted key, ensure the passphrase is provided in the connector configuration.
• Refer to Snowflake's key pair auth troubleshooting docs for additional guidance.
If you're on an older connector version, upgrading to the latest version of the Snowflake connector may resolve parsing issues with certain key formats. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Rafael Felipe
05/14/2026, 8:01 PMkapa.ai
05/14/2026, 8:01 PMWARNING: Extract private key from file: File rsa_key.p8 is accessible by others to: read. This is a warning from the Snowflake JDBC driver about file permissions, not necessarily a fatal error, which is consistent with the fact that data was still loaded. [wrong error logs issue]
2. Job stuck after data load — This pattern (data written but job not completing) has been seen before and is typically unrelated to authentication. It may be a checkpoint/state finalization issue.
Recommended next steps:
• Check if the job eventually times out and retries, or if it needs to be manually cancelled.
• Review the full sync logs for any errors after the data load phase (e.g., checkpoint flushing, stream closing).
• Try cancelling the stuck sync and re-running it to see if it completes cleanly on a fresh attempt.
• If you're on a self-hosted deployment, consider upgrading to the latest Snowflake destination connector version, as the Bouncy Castle fix (PR #77978) was included in destination-snowflake 4.0.42. [Bouncy Castle fix]
If the issue persists, I'd recommend opening a GitHub issue with your full sync logs for the Airbyte team to investigate. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Rafael Felipe
05/14/2026, 8:02 PMkapa.ai
05/14/2026, 8:03 PMreplicaSet parameter in the connection string was not correctly passed to the Debezium CDC engine for self-managed replica sets, causing incremental syncs to fail with:
Connector configuration is not valid. Replica set not specified in connection string for REPLICA_SET cluster.
[replicaSet CDC bug]
4. Oplog Retention If your self-hosted MongoDB oplog retention is too short, CDC incremental syncs can fail with an "invalid resume token" error. Airbyte recommends at least 24 hours (ideally 1 week) of oplog retention. [MongoDB troubleshooting]
Could you share more details about your self-hosted MongoDB setup (e.g., are you using CDC/incremental sync, and do you see any specific errors in the MongoDB source logs)? That would help narrow down the root cause. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Rafael Felipe
05/14/2026, 8:10 PMkapa.ai
05/14/2026, 8:10 PMrs0) at 10.21.28.203:27017
• Authorized collections were found in the glvox database
• The check operation completed with SUCCEEDED
However, there are two things worth noting from your logs:
1. SSL is Disabled sslSettings=SslSettings{enabled=false, ...}
The connector is connecting without TLS/SSL. The documentation states that TLS/SSL is required by the connector [MongoDB troubleshooting]. While the check passed, this could cause issues during actual syncs, especially for CDC/incremental mode.
2. Cluster Mode is SINGLE (Not Replica Set Mode) mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName='null'
The client was initialized in SINGLE mode without specifying the replica set name. However, the monitor thread did discover it as a REPLICA_SET_SECONDARY, and the check passed the replica set validation. This is consistent with the check() code — it queries for authorized collections first, which forces cluster discovery, and then validates the cluster type. [MongoDbSource check]
What This Means The check passes, so the connection itself is fine. If your sync job is still stuck (as mentioned earlier), the issue is likely not with the MongoDB source check — it's more likely on the Snowflake destination side or in the sync orchestration layer. The MongoDB source logs you shared show a clean, successful check run.
To further diagnose the stuck sync, I'd recommend looking at the sync logs during the READ phase (not just the CHECK phase), as those would show what happens when data is actually being read and sent to Snowflake. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.