Júlia Lemes
09/04/2025, 1:37 PMkapa.ai
09/04/2025, 1:37 PMkubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash psql -U airbyte db-airbyte delete from dataplane_client_credentials; delete from dataplane; \q exit Then rerun the install so Airbyte recreates the dataplane and its credentials. If you’re using abctl locally: abctl local install --insecure-cookies -v Users reported this resolves the missing/invalid client credentials issue after upgrades/restores (the same pattern you’re hitting) ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835901991)). If it still fails, repeat the deletion and reinstall once more as some users needed a second pass ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835930644)). 2) Verify the airbyte-auth-secrets contents - Check that the Secret includes: - instance-admin-client-id - instance-admin-client-secret - instance-admin-password And, for dataplane-driven components, ensure dataplane-client-id and dataplane-client-secret exist if your chart version expects them. You can inspect with: kubectl get secret airbyte-auth-secrets -n airbyte-abctl -o yaml To manage or override the admin creds via Secret, follow the documented pattern for airbyte-auth-secrets; you may need to restart airbyte-server after changes ([Authentication docs](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/authentication#setting-a-password-via-secrets)). 3) If you set custom auth secrets before install - Ensure your custom Secret name/keys don’t override or conflict with Airbyte-managed keys required by the dataplane/workload components. Several users hit CreateContainerConfigError when dataplane-client-id/secret weren’t present in airbyte-auth-secrets after a restore or custom secret setup ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2836894802)). 4) Helm V2 note (if applicable) - When re-deploying with Helm chart V2, the recommended process is uninstall (without deleting the namespace), then reinstall with the desired app version. Ensure database backup/restore steps are followed carefully; the examples show how to drop/recreate schemas and restore. After restore, follow step (1) to refresh dataplane credentials if needed ([Chart V2 upgrade guide](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#deploy-airbyte)). If after these steps the server still logs “Credentials were not found with the clientId provided,” it likely means the clientId referenced in the DB (e.g., instance admin or dataplane client) does not match what’s in airbyte-auth-secrets. Re-run the deletions above, reinstall, and re-check the Secret contents to ensure alignment ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835901991); [Auth docs](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/authentication#authentication)).kapa.ai
09/04/2025, 1:38 PMkubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash psql -U airbyte db-airbyte delete from dataplane_client_credentials; delete from dataplane; \q exit ([GitHub issue 58587](https://github.com/airbytehq/airbyte/issues/58587)) 2) Restart Airbyte so the boot process recreates the dataplane and repopulates secrets the server/workload components read. If you’re using Helm/abctl, re-run the install/upgrade step to let the bootloader run again (same workaround flow as above) ([GitHub issue 58587](https://github.com/airbytehq/airbyte/issues/58587)). 3) If you customized the airbyte-auth-secrets for admin email/password, ensure you didn’t overwrite or remove keys that Airbyte manages (like dataplane-client-id / dataplane-client-secret). Several users reported CreateContainerConfigError when those keys were missing from airbyte-auth-secrets; letting Airbyte recreate them by clearing dataplane tables resolved it ([GitHub issue 58587](https://github.com/airbytehq/airbyte/issues/58587)). Notes: - The docs’ DB restore steps you ran match the supported approach for restoring the internal Postgres DB; after a restore, only perform a DB restore if there’s a deployment issue not related to configuration, which in your case is credential-related. If the problem persists after regeneration, re-check secrets in the namespace and that server/workload pods reference the correct secret name for credentials ([Upgrade to Helm chart V2 > Deploy Airbyte](https://docs.airbyte.com/platform/deploying-airbyte/chart-v2-community#deploy-airbyte); [Next docs variant](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#deploy-airbyte)). If, after clearing dataplane tables and restarting, the error remains, please share: - Whether the secret in your namespace contains dataplane-client-id and dataplane-client-secret. - The server and workload-launcher pod events showing which secret name they reference.Júlia Lemes
09/04/2025, 2:01 PMkapa.ai
09/04/2025, 2:01 PMkapa.ai
09/04/2025, 2:01 PMabctl local uninstall --persisted rm -rf ~/.airbyte/abctl Then reinstall: abctl local install --insecure-cookies --chart-version=1.7.1 (This is the documented reset flow for local development; it clears the local datastore/volumes that can carry bad permissions across reinstalls.) ([Resetting the developer environment](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment)). If the uninstall alone doesn’t help, users have resolved similar install/permission issues by removing abctl’s data directory specifically, or by using the uninstall with --persisted, then reinstalling (both approaches align with the reset guidance) ([Migration schema error thread](https://github.com/airbytehq/airbyte/issues/58864)).Júlia Lemes
09/04/2025, 2:02 PMkapa.ai
09/04/2025, 2:02 PMkapa.ai
09/04/2025, 2:02 PMabctl local uninstall --persisted rm -rf ~/.airbyte/abctl - Reinstall: abctl local install --insecure-cookies --chart-version=1.7.1 (This is the documented reset for local installs) ([Reset guide](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment); [abctl docs](https://docs.airbyte.com/platform/deploying-airbyte/abctl#install-and-manage-local-airbyte-instances)). - After your DB restore, force Airbyte to regenerate dataplane credentials so they match the new cluster: kubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash psql -U airbyte db-airbyte delete from dataplane_client_credentials; delete from dataplane; \q exit Then run: abctl local install --insecure-cookies -v This workaround is confirmed to resolve the “couldn’t find key dataplane-client-id”/clientId credential mismatches after upgrades or restores by recreating the dataplane and syncing secrets ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835901991); [follow-up confirmation](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835930644)). - If you use a custom airbyte-auth-secrets, ensure it doesn’t override/remove keys Airbyte manages (like dataplane-client-id/secret). Conflicts here can cause the same error even after regeneration. Verify the secret contents after reinstall/regen: kubectl get secret airbyte-auth-secrets -n airbyte-abctl -o yaml Users hit CreateContainerConfigError when these keys were missing from or overridden in their custom secret ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2836894802)). This way, you can safely restore your dump without reintroducing stale dataplane credentials, and you avoid the PG_VERSION permission problem by resetting abctl’s local data first.Júlia Lemes
09/04/2025, 2:03 PMkapa.ai
09/04/2025, 2:03 PMkapa.ai
09/04/2025, 2:03 PMabctl local uninstall --persisted rm -rf ~/.airbyte/abctl - Reinstall: abctl local install --insecure-cookies --chart-version=1.7.1 -v This specifically clears the local pgdata directory causing PG_VERSION permission errors and is the documented reset path ([Reset dev env](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment); [abctl docs](https://docs.airbyte.com/platform/deploying-airbyte/abctl#install-and-manage-local-airbyte-instances)). If the first attempt failed, removing ~/.airbyte/abctl/data (or the whole ~/.airbyte/abctl) was reported to fix stuck installs ([migration error thread](https://github.com/airbytehq/airbyte/issues/58864)). 2) Only after the reinstall succeeds, restore your dump, then refresh dataplane kubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash psql -U airbyte db-airbyte delete from dataplane_client_credentials; delete from dataplane; \q exit abctl local install --insecure-cookies -v This regenerates dataplane credentials and aligns secrets, which addresses the “Credentials were not found with the clientId provided”/dataplane clientId issues after restores ([issue workaround + confirmations](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835901991), [confirmation](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835930644)). If reinstall still fails immediately with permission denied on PG_VERSION, it indicates remaining local state. Ensure ~/.airbyte/abctl is fully removed before rerunning install (same guidance as above) ([migration error thread](https://github.com/airbytehq/airbyte/issues/58864)).Júlia Lemes
09/04/2025, 2:04 PMkapa.ai
09/04/2025, 2:04 PMkapa.ai
09/04/2025, 2:05 PMrm -rf ~/.airbyte/abctl/data abctl local install --insecure-cookies --chart-version=1.7.1 -v This specifically clears the pgdata directory that triggers PG_VERSION permission errors and has resolved similar stuck installs ([Issue 58864](https://github.com/airbytehq/airbyte/issues/58864)). The broader reset (uninstall + remove abctl dir) is also the documented path ([Reset guide](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment)). - If the host filesystem permissions block recreation, fix permissions on the abctl dir before reinstall: sudo chmod -R 777 ~/.airbyte/abctl A user reported this resolved reinstall/start issues after uninstall due to permission problems on the abctl directory ([Issue 64508](https://github.com/airbytehq/airbyte/issues/64508)). After you get a clean install, restore your dumps, then force regeneration of dataplane credentials and rerun install to sync secrets: kubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash psql -U airbyte db-airbyte delete from dataplane_client_credentials; delete from dataplane; \q exit abctl local install --insecure-cookies -v This workaround addresses the post-restore “Credentials were not found with the clientId provided” by recreating dataplane credentials and updating secrets ([Issue 58587](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835901991), [confirmation](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835930644)).Júlia Lemes
09/04/2025, 2:10 PMkapa.ai
09/04/2025, 2:10 PMkapa.ai
09/04/2025, 2:11 PMdocker exec -it airbyte-abctl-control-plane kubectl -n airbyte-abctl exec -it airbyte-db-0 -- psql --user airbyte --dbname postgres --command='create database "db-airbyte"' ([“db-airbyte” does not exist fix](https://github.com/airbytehq/airbyte/issues/45456)). - External DB/hostname/port/firewall issues - If using an external Postgres, verify host:port reachability and that the server accepts TCP connections; connection pool timeouts indicate network/refusal problems ([external Postgres thread](https://discuss.airbyte.io/t/1264)). - Known abctl install flakiness - The docs note bootloader failures are often due to DB connectivity; re-run with verbose to inspect logs, and address the underlying DB readiness/permissions issue ([troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy), [Next/1.7 docs](https://docs.airbyte.com/platform/1.7/deploying-airbyte/troubleshoot-deploy)). If you share your airbyte-db pod status and its logs around startup, I can point to the exact fix among the above.Júlia Lemes
09/04/2025, 2:19 PMkapa.ai
09/04/2025, 2:19 PMkapa.ai
09/04/2025, 2:19 PMJúlia Lemes
09/04/2025, 2:21 PMkapa.ai
09/04/2025, 2:21 PMkapa.ai
09/04/2025, 2:21 PMkubectl exec -it -n airbyte-abctl airbyte-db-0 -- /bin/bash psql -U airbyte db-airbyte delete from dataplane_client_credentials; delete from dataplane; \q exit abctl local install --insecure-cookies -v Multiple users confirmed this fixed clientId/secret mismatches after restore/upgrade; some needed to run it twice before it took effect (the reinstall syncs the regenerated credentials into Kubernetes) ([Could not deploy v1.6.0 – workaround](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835901991); [confirmation](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2835930644)). If it still fails: - Verify airbyte-auth-secrets contains the regenerated dataplane-client-id and dataplane-client-secret; custom secrets can override/remove these keys and keep the system broken. Inspect and adjust if needed: kubectl get secret airbyte-auth-secrets -n airbyte-abctl -o yaml Missing or overridden dataplane keys were a common cause of persistent failures in 1.6.x–1.7.x after restores ([1.6.x install errors](https://github.com/airbytehq/airbyte/issues/58587#issuecomment-2836894802); [1.6.0 thread](https://github.com/airbytehq/airbyte/issues/62468)). - Consider moving to 1.7.1 or 1.8.x where related issues were addressed. Users reported 1.7.1 “worked out of the box” versus 1.6.0, and 1.8.1 fixed dataplane name constraint issues affecting abctl uninstall/reinstall loops ([1.6.0 issue comments](https://github.com/airbytehq/airbyte/issues/62468#issuecomment-3143881419); [v1.8.1 notes](https://docs.airbyte.com/release_notes/v-1.8#version-181)). If you can share the current contents of airbyte-auth-secrets and whether the bootloader rewrites them on install, we can pinpoint if it’s a secret mismatch versus a regeneration not being applied.loganeales
09/08/2025, 7:43 AMfailed to determine if any previous psql version exists: error reading pgdata version file: open /home/ssm-user/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied
Our Environment:
• current version 1.6.0
• self-managed community
• running on an EC2 instance (t3a.xlarge)
• running abctl v0.30.1
Did you ever manage to find a viable solution that you could possibly share the step by step process? 🙏
*please @ me in the your response so I get a notification