Ettore Tozzi
09/01/2025, 9:46 AMkapa.ai
09/01/2025, 9:46 AMbash TOKEN=$(openssl rand -hex 24) 2. Set the same token as an environment variable on all relevant deployments: bash kubectl -n airbyte-abctl set env deployment/airbyte-abctl-workload-api-server WORKLOAD_API_AUTH_HEADER=Authorization WORKLOAD_API_BEARER_TOKEN=$TOKEN kubectl -n airbyte-abctl set env deployment/airbyte-abctl-worker WORKLOAD_API_AUTH_HEADER=Authorization WORKLOAD_API_BEARER_TOKEN=$TOKEN kubectl -n airbyte-abctl set env deployment/airbyte-abctl-server WORKLOAD_API_AUTH_HEADER=Authorization WORKLOAD_API_BEARER_TOKEN=$TOKEN 3. Restart the deployments: bash kubectl -n airbyte-abctl rollout restart deploy/airbyte-abctl-workload-api-server airbyte-abctl-worker airbyte-abctl-server 4. Wait for the pods to restart and try again in the UI. This should resolve both the 401 Unauthorized and the 502 errors when setting up sources or custom connectors. Several users have reported success with this approach for both custom connectors and standard sources like Postgres and S3. If you continue to have issues with updating your email via abctl, this is also likely related to the same token mismatch and should be resolved by the above steps. For more details and user reports, see the following discussions: - [GitHub Issue: source-postgres Connector setup fails with HTTP 502 error](https://github.com/airbytehq/airbyte/issues/65567) - [GitHub Issue: source-file error 502 - Error on airbyte-abctl-worker](https://github.com/airbytehq/airbyte/issues/65574) If you still encounter problems after this, please let me know the exact error messages or logs you see, and I can help further.Ettore Tozzi
09/01/2025, 11:01 AMkapa.ai
09/01/2025, 11:01 AMkapa.ai
09/01/2025, 11:02 AMabctl local credentials and getting a 401 error: This is a known issue that has been reported by other users as well, especially with recent versions of abctl and Airbyte. The documentation and GitHub issues confirm that sometimes, after installation, users are unable to retrieve or update the authentication email due to a 401 Unauthorized error. The Airbyte team is aware of this and is working on a fix within the abctl tool. In the meantime, there is no official workaround that guarantees success for updating the email via abctl local credentials if you encounter this 401 error. From the documentation: > Airbyte is aware of situations where the email is not be automatically populated and we are working on addressing this within the abctl tool. In the interim, some manually steps are required to retrieve the authentication email address when it is unknown. > If the email address for authenticating is not automatically populated, you can set an email with the following command: > > abctl local credentials --email <your_email> > > The password for this user can be retrieved by running abctl local credentials. > > However, if you are still getting a 401 error, this is a known issue and currently there is no documented fix other than waiting for an update from the Airbyte team or trying a full uninstall and reinstall, which has worked for some users but not all [[source](https://docs.airbyte.com/platform/next/deploying-airbyte/troubleshoot-deploy#faq)]. Some users have reported that a full uninstall and reinstall (abctl local uninstall followed by abctl local install) resolved the issue for them, but this is not guaranteed [[source](https://github.com/airbytehq/airbyte/issues/61677)]. Summary: - The 401 error when updating or retrieving the email with abctl local credentials is a known issue. - There is no guaranteed fix at this time; the Airbyte team is working on it. - You can try a full uninstall and reinstall, but success is not assured. - Keep an eye on future abctl and Airbyte releases for a permanent fix. If you need to access Airbyte, use the credentials that were initially generated and displayed after installation, or check if you can retrieve them with abctl local credentials (even if the email cannot be updated).