Error: Failed to Get or Decrypt Encryption Key From File Header
Issue
Syncs fail with the following error:
INVALID_ARGUMENT: Decryption failed com.fivetran.teleport.exception.TeleportException: Failed to get or decrypt encryption key from file header.
Environment
- Deployment model: Hybrid Deployment
- Incremental update method: Fivetran Teleport Sync
Resolution
To resolve this issue, gather the following details:
Connection name
Connection ID
i. Go to your connection page.
ii. Select the Setup tab.
iii. Under Connection metadata & setup, look for the Fivetran connection ID.
Group ID
i. Go to your destination page.
ii. Select the Overview tab.
iii. Under Destination Connection Details, look for the Destination group id.
Then, complete the following steps:
In Fivetran, pause your connection.
i. Go to your connection page.
ii. Set the Enabled toggle to OFF.
Log in to the machine where the Hybrid Deployment Agent is installed.
Go to the
datadirectory inside the agent installation directory.Find and delete files named in the format
<group_id>-<connection_name>where the details match the Group ID and Connection name you found earlier.Locate the directory named with your Connection ID in the format
<connection_id>, then delete all files in the directory.In Fivetran, enable the connection again by setting the Enabled toggle to ON.
Cause
This issue occurs when the Teleport files stored on disk become corrupted.