Mateo Graciano
08/13/2025, 9:17 PMkapa.ai
08/13/2025, 9:18 PMmemcache.go:265] couldn’t get current server API group list: Get “https://127.0.0.1:41045/api?timeout=32s”: read tcp 127.0.0.1:46756->127.0.0.1:41045: read: connection reset by peer is a Kubernetes-related error that typically indicates the local Kubernetes API server is not reachable or is refusing the connection. In the context of Airbyte, this is a common issue when using abctl or interacting with a local or remote Kubernetes cluster, especially if the cluster is not running, is misconfigured, or the API server is down. The Airbyte documentation lists a similar error under "Connection Refused" issues, which can occur when trying to communicate with Kubernetes and the API server is not available or not listening on the expected port. The recommended troubleshooting steps are to ensure that your Kubernetes cluster is running and accessible, and that your kubeconfig is correctly configured to point to the right cluster and API server endpoint. If you are running Airbyte locally, make sure your local Kubernetes environment (like Minikube, Kind, or Docker Desktop) is up and running before executing Airbyte commands that interact with Kubernetes resources. If the problem persists, restarting your Kubernetes cluster or checking for firewall/network issues may help resolve it. For more details, see the Airbyte troubleshooting documentation for "Connection Refused" errors: [Troubleshooting abctl - Connection Refused](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#connection-refused)Mateo Graciano
08/13/2025, 9:38 PMkapa.ai
08/13/2025, 9:38 PMkapa.ai
08/13/2025, 9:38 PMabctl local uninstall will stop all running containers but will keep your data. This allows you to reinstall Airbyte later and retain your previous configuration and state. If you want to delete all data as well, you need to use the --persisted flag: abctl local uninstall --persisted [Uninstall Airbyte - Quickstart](https://docs.airbyte.com/platform/next/using-airbyte/getting-started/oss-quickstart#uninstall-airbyte).Mateo Graciano
08/13/2025, 9:43 PMkapa.ai
08/13/2025, 9:43 PMkapa.ai
08/13/2025, 9:44 PMERROR failed to determine if any previous psql version exists: error reading pgdata version file: open …/.airbyte/abctl/data/airbyte-volume-db/pgdata/PG_VERSION: permission denied indicates a permissions issue when Airbyte (via abctl) tries to access the PostgreSQL data directory. This is a common problem, especially when running Airbyte with Docker or Kubernetes, and the underlying data directory is not accessible by the container due to file system permissions. This type of error is documented in several Airbyte issues and is often related to the ownership or permissions of the data directory used by PostgreSQL. For example, if the directory is not owned by the postgres user or does not have the correct permissions, PostgreSQL will fail to start, and Airbyte will not be able to read the version file, resulting in a "permission denied" error. This is consistent with other errors reported, such as: > FATAL: data directory "/var/lib/postgresql/data/pgdata" has wrong ownership > HINT: The server must be started by the user that owns the data directory. > ... > Permissions should be u=rwx (0700) or u=rwx,g=rx (0750) > [source](https://github.com/airbytehq/airbyte/issues/41063), [source](https://github.com/airbytehq/airbyte/issues/54199) How to resolve: - Ensure that the directory …/.airbyte/abctl/data/airbyte-volume-db/pgdata/ is owned by the correct user (typically postgres) and has the appropriate permissions (at least 0700). - If you previously ran Airbyte as a different user (e.g., with sudo), you may need to adjust ownership with chown or reset the directory. - On some platforms (especially Mac and Windows with Docker Desktop or Colima), file sharing and permissions issues are common. You may need to check your Docker or Kubernetes storage settings. If you continue to encounter this issue, you may need to delete the data directory and let Airbyte recreate it, but be aware this will remove your existing data. The knowledge sources do not provide a step-by-step fix, but they confirm this is a known permissions issue with the PostgreSQL data directory in Airbyte deployments [abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063), [failure to connect to airbyte-db postgresql](https://github.com/airbytehq/airbyte/issues/54199).Mateo Graciano
08/13/2025, 9:58 PMkapa.ai
08/13/2025, 9:58 PMkapa.ai
08/13/2025, 9:58 PMabctl local uninstall should stop all running containers but keep your data. This is intended so that when you run abctl local install again, your previous configuration and data are preserved [Uninstall Airbyte - Quickstart](https://docs.airbyte.com/platform/next/using-airbyte/getting-started/oss-quickstart#uninstall-airbyte). However, there are user reports indicating that after running abctl local uninstall followed by abctl local install, data and configuration can sometimes be lost. For example, one user noted that after uninstalling and reinstalling, the previous configuration was missing, even though they expected it to be retained. In that specific case, the root cause was a permissions problem on restart, which prevented Airbyte from accessing the existing data [abctl local uninstall removes existing configuration](https://github.com/airbytehq/airbyte/issues/64508). Summary: - By design, abctl local uninstall should not delete your data. - If your data is missing after reinstall, it may be due to a permissions issue or another environment-specific problem. - To ensure all data is deleted, you must use abctl local uninstall --persisted and manually remove the .airbyte/abctl directory. If you are experiencing data loss, check the permissions of your data directories and ensure Airbyte has access to them.Mateo Graciano
08/13/2025, 10:14 PMkapa.ai
08/13/2025, 10:14 PMkapa.ai
08/13/2025, 10:14 PMinitdb: error: could not access directory “/var/lib/postgresql/data/pgdata”: Permission denied indicates that the PostgreSQL process inside the Airbyte deployment does not have the necessary permissions to access or write to its data directory. This is a common issue reported when installing Airbyte with abctl, especially on MacOS, Windows (with WSL), or when using Docker/Colima. This problem is documented in several Airbyte issues and manifests as either "permission denied" or "wrong ownership" errors for the PostgreSQL data directory. The root cause is typically that the directory is not owned by the postgres user or does not have the correct permissions, preventing PostgreSQL from starting properly. For example: > FATAL: data directory "/var/lib/postgresql/data/pgdata" has wrong ownership > HINT: The server must be started by the user that owns the data directory. > ... > Permissions should be u=rwx (0700) or u=rwx,g=rx (0750) > [abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063), [failure to connect to airbyte-db postgresql](https://github.com/airbytehq/airbyte/issues/54199) What you can do: - Ensure that the directory /var/lib/postgresql/data/pgdata (or its mapped host equivalent, e.g., ~/.airbyte/abctl/data/airbyte-volume-db/pgdata/) is owned by the correct user (postgres) and has the appropriate permissions. - If you previously ran Airbyte as a different user (e.g., with sudo), you may need to adjust ownership with chown or reset the directory. - On MacOS/Windows, file sharing and permissions issues with Docker volumes are common. You may need to check your Docker Desktop or Colima storage settings. If the problem persists, you may need to delete the data directory and let Airbyte recreate it, but be aware this will remove your existing data. This is a known and recurring issue in Airbyte deployments, as confirmed by multiple user reports and GitHub issues [abctl install fails with postgres permissions error](https://github.com/airbytehq/airbyte/issues/41063), [failure to connect to airbyte-db postgresql](https://github.com/airbytehq/airbyte/issues/54199).Mateo Graciano
08/13/2025, 10:42 PMkapa.ai
08/13/2025, 10:42 PMkapa.ai
08/13/2025, 10:43 PMMateo Graciano
08/13/2025, 10:44 PMkapa.ai
08/13/2025, 10:44 PMkapa.ai
08/13/2025, 10:44 PMMateo Graciano
08/13/2025, 10:48 PMkapa.ai
08/13/2025, 10:48 PMkapa.ai
08/13/2025, 10:49 PMairbyte, temporal, and temporal_visibility) in your new Postgres instance. For example: sql CREATE DATABASE airbyte WITH OWNER = postgres; CREATE DATABASE temporal WITH OWNER = postgres; CREATE DATABASE temporal_visibility WITH OWNER = postgres; Make sure the owner matches the user Airbyte will use to connect to the database. 2. Restore your backups for each database using psql. For example: bash psql -h <new-db-host> -U postgres -d airbyte -f airbyte.sql psql -h <new-db-host> -U postgres -d temporal -f temporal.sql psql -h <new-db-host> -U postgres -d temporal_visibility -f temporal_visibility.sql Replace <new-db-host> and file names as appropriate. 3. Update your Airbyte deployment to point to the new Postgres instance by editing your configuration (such as values.yaml for Helm deployments) to use the new database connection details. This process is confirmed by user experiences and support responses, especially when migrating to an external Postgres instance or AWS RDS. Note that Airbyte does not automatically migrate or restore your data; you must handle the backup and restore process manually [Connecting to an External Postgres database](https://discuss.airbyte.io/t/2903), [External Postgres Database Setup Issues](https://github.com/airbytehq/airbyte/issues/49304). Important: - Both the old and new Airbyte instances should be on the same version to avoid compatibility issues. - Ensure the database user has the necessary permissions. If you encounter permission errors or issues with the restored database, check the ownership and permissions of the data directories and ensure they match what Airbyte expects.Mateo Graciano
08/13/2025, 10:49 PMkapa.ai
08/13/2025, 10:49 PMkapa.ai
08/13/2025, 10:49 PMabctl local status This command will display information about your Airbyte installation, including the Helm chart version and the app version, for example: $ abctl local status Existing cluster 'airbyte-abctl' found Found helm chart 'airbyte-abctl' Status: deployed Chart Version: 0.422.2 App Version: 0.63.15 ... If you no longer have access to your previous installation, the knowledge sources do not provide a method to retrieve the last version after uninstalling or deleting the environment [Install and manage local Airbyte instances](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#install-and-manage-local-airbyte-instances).Mateo Graciano
08/13/2025, 11:15 PMkapa.ai
08/13/2025, 11:16 PMkapa.ai
08/13/2025, 11:16 PMabctl, you should use the --chart-version flag with the abctl local install command. For example: abctl local install --chart-version <VERSION> You can also further customize your installation using the --values flag to provide a custom values.yaml file if needed: abctl local install --chart-version <VERSION> --values values.yaml This allows you to specify which Airbyte Helm chart version to install. The documentation confirms the use of the --chart-version flag for this purpose [Full abctl reference](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#reference). If you need to find available chart versions, you can check the [Airbyte ArtifactHub](https://artifacthub.io/packages/helm/airbyte/airbyte). > Note: The knowledge sources do not mention specifying the Airbyte app version directly, only the Helm chart version. The app version is tied to the chart version.Mateo Graciano
08/13/2025, 11:16 PMkapa.ai
08/13/2025, 11:16 PMkapa.ai
08/13/2025, 11:16 PMMateo Graciano
08/14/2025, 1:53 AMkapa.ai
08/14/2025, 1:53 AMkapa.ai
08/14/2025, 1:54 AMMateo Graciano
08/14/2025, 1:55 AMkapa.ai
08/14/2025, 1:56 AMkapa.ai
08/14/2025, 1:56 AMMAX_SYNC_WORKERS and MAX_CHECK_WORKERS: These environment variables control how many sync and non-sync jobs each worker can run concurrently. - Adjust TEMPORAL_WORKER_PORTS: Ensure you have enough ports available for the number of concurrent jobs you want to run. - Set WORKLOAD_LAUNCHER_PARALLELISM: Controls how many jobs can be started at once. Example configuration in your values.yaml or environment variables: yaml worker: replicaCount: 3 extraEnvs: - name: MAX_SYNC_WORKERS value: "10" - name: MAX_CHECK_WORKERS value: "5" This would allow 3 workers, each able to run 10 syncs and 5 checks in parallel, for a total of up to 30 concurrent syncs and 15 concurrent checks (if resources allow) [Scaling Airbyte After Installation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte). ### 2. Connector-Level Concurrency (Streams per Sync) If you want to increase the number of streams or partitions processed in parallel within a single sync, you need to set the concurrency_level in the connector's YAML definition: yaml concurrency_level: default_concurrency: 10 max_concurrency: 20 This means up to 10 streams or partitions will be processed at the same time during a sync, with a maximum of 20 if configured [ConcurrencyLevel object](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel). Note: Setting a higher concurrency may require more CPU and memory resources, so monitor your cluster and adjust resource limits as needed. If you need more details on which parameters to tune for your specific deployment (Docker, Kubernetes, etc.), let me know!Mateo Graciano
08/14/2025, 3:32 AMkapa.ai
08/14/2025, 3:32 AMkapa.ai
08/14/2025, 3:32 AMMateo Graciano
08/14/2025, 6:22 AMkapa.ai
08/14/2025, 6:22 AMkapa.ai
08/14/2025, 6:22 AMabctl and allow more workers for each sync, you need to: 1. Uninstall your current deployment (if running): abctl local uninstall 2. Reinstall Airbyte with increased worker concurrency by setting the MAX_SYNC_WORKERS environment variable. You can do this by providing a custom values.yaml file with your desired configuration, for example: yaml worker: extraEnvs: - name: MAX_SYNC_WORKERS value: "20" Then run: abctl local install --values values.yaml Alternatively, you can use the --set flag (if supported by your abctl version): abctl local install --set worker.extraEnvs[0].name=MAX_SYNC_WORKERS --set worker.extraEnvs[0].value=20 Note: - The exact syntax for setting environment variables may depend on your Airbyte and Helm chart version. The recommended approach is to use a values.yaml file as shown in the [official documentation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte). - There is no direct abctl local restart command; you must uninstall and then install again to apply new configuration values [Full abctl reference](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#reference). If you need to adjust other worker-related settings (like MAX_CHECK_WORKERS), add them to your values.yaml as well.