<@U04S8PLJWMT> I'm using Airbyte OSS via abctl on ...
# ask-ai
s
@kapa.ai I'm using Airbyte OSS via abctl on an Azure VM, the problem is that I quickly run out of storage, I doubled the disk size twice already but it keeps filling up so fast. How can I clean files that are not needed and if there's something to do it automatically.
k
Running out of storage quickly is a common issue with Airbyte OSS, especially when sync logs, temporary files, or workspace data accumulate over time. Here’s how you can address and automate cleanup: ### 1. Identify What’s Consuming Space - The main culprit is usually the Airbyte workspace directory (often at
/var/lib/docker/volumes/airbyte_workspace/_data
), which stores logs, temporary files, and job artifacts. Tools like
ncdu
can help you analyze which folders are growing fastest [[source]](https://discuss.airbyte.io/t/2417). ### 2. Manual Cleanup - Logs and Temporary Files: You can manually delete old logs and files from the workspace directory. If you’re using Minio for storage, you can SSH into the Minio pod or container and delete files inside
/storage/airbyte-dev-logs/job-logging/workspace/
[[source]](https://discuss.airbyte.io/t/3101). - Minio Storage: If Minio is full, deleting logs from the storage path inside the Minio pod resolves the issue [[source]](https://discuss.airbyte.io/t/1857). ### 3. Automatic Cleanup - Log Retention Policy: Airbyte schedules periodic jobs to delete logs from syncs. By default, logs are deleted every month or when their size exceeds 5GB. You can configure this with environment variables: -
MINIMUM_WORKSPACE_RETENTION_DAYS
-
MAXIMUM_WORKSPACE_RETENTION_DAYS
-
MAXIMUM_WORKSPACE_SIZE_MB
However, note that in recent Airbyte versions, these variables have been replaced or are only effective in certain deployment modes [[source]](https://discuss.airbyte.io/t/332). - Current Solution: As of Airbyte v0.45.5 and later, you should use the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable to control how long workspace files are retained. For example, to keep only 3 days of history, set:
Copy code
TEMPORAL_HISTORY_RETENTION_IN_DAYS=3
This will automatically clean up files older than the specified number of days [[source]](https://discuss.airbyte.io/t/2417), [[source]](https://discuss.airbyte.io/t/2714). ### 4. Additional Tips - If you’re running Airbyte via Docker, update your
.env
file or deployment configuration to include the retention variable. - If you’re on an older version of Airbyte, consider upgrading to at least v0.45.5 to benefit from improved cleanup features [[source]](https://discuss.airbyte.io/t/2417). --- Summary: Set the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable to automatically clean up old files. For immediate relief, manually delete logs and temporary files from the workspace or Minio storage directories. Upgrading Airbyte to a recent version is recommended for better automated cleanup.
s
@kapa.ai give the commands needed to run in order to free up the storage and delete temp and logs via ssh
k
A message from kapa.ai
To free up storage and delete temporary files and logs in Airbyte OSS (using abctl) via SSH, you can follow these steps: ### 1. Clean Up Airbyte Workspace (Local Docker Volumes) If you are running Airbyte locally (not on Kubernetes), the workspace and logs are stored in a Docker volume named
airbyte_workspace
. You can browse and delete files using a temporary container:
Copy code
bash # Open a shell in the airbyte_workspace volume docker run -it --rm --volume airbyte_workspace:/data busybox sh  # Inside the shell, navigate and delete logs and temp files cd /data # For example, to delete all logs: find . -name "*.log" -type f -delete # Or to delete all contents (be careful!): rm -rf ./* exit
This will remove files from the workspace and free up space [[Exploring Local Logs]](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#exploring-local-logs). ### 2. Clean Up Minio Storage (If Using Minio) If you are using Minio (common in Kubernetes or some Docker setups), SSH into the Minio pod or container and delete logs:
Copy code
bash # SSH into the Minio pod/container kubectl exec -it <minio-pod-name> -- sh  # Navigate to the storage directory and delete logs cd /storage/airbyte-dev-logs/job-logging/workspace/ rm -rf ./*  # You may also want to check and clean: cd /storage/airbyte-dev-logs/workload/output/ rm -rf ./* exit
This will clear out the logs and free up space [[How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101)]. --- Note: Be careful with
rm -rf ./*
as it will delete all files in the directory. Only run it in the correct log or temp directory to avoid deleting important configuration or data files. If you need to reset the entire Airbyte environment (including all data):
Copy code
bash abctl local uninstall --persisted rm -rf ~/.airbyte/
This will remove all persisted data and reset Airbyte to a clean state [[Resetting the Airbyte developer environment]](https://docs.airbyte.com/platform/contributing-to-airbyte/developing-locally#resetting-the-airbyte-developer-environment). If you need more specific commands for your setup, please provide details about your deployment (Docker Compose, Kubernetes, etc.).
s
@kapa.ai how to find the <minio-pod-name> give me full code to run this
Copy code
# SSH into the Minio pod/container
kubectl exec -it <minio-pod-name> -- sh

# Navigate to the storage directory and delete logs
cd /storage/airbyte-dev-logs/job-logging/workspace/
rm -rf ./*

# You may also want to check and clean:
cd /storage/airbyte-dev-logs/workload/output/
rm -rf ./*
exit
k
A message from kapa.ai
To find the
<minio-pod-name>
and clean up Minio logs in your Airbyte Kubernetes deployment, follow these steps: ### 1. Find the Minio Pod Name Run the following command to list all pods in your Airbyte namespace (replace
<namespace>
with your actual namespace, e.g.,
airbyte-abctl
):
Copy code
bash kubectl get pods -n <namespace>
Look for a pod with a name similar to
airbyte-minio-0
or containing
minio
in its name. For example, you might see:
Copy code
airbyte-minio-0   1/1     Running   0     4h34m
[[Developing Locally - Prerequisites]](https://docs.airbyte.com/platform/1.8/contributing-to-airbyte/developing-locally#prerequisites) ### 2. SSH into the Minio Pod and Delete Logs Replace
<minio-pod-name>
and
<namespace>
in the commands below with the actual pod name and namespace you found above:
Copy code
bash kubectl exec -it <minio-pod-name> -n <namespace> -- sh  # Inside the pod, run: cd /storage/airbyte-dev-logs/job-logging/workspace/ rm -rf ./*  cd /storage/airbyte-dev-logs/workload/output/ rm -rf ./*  exit
> Note: The exact storage path may vary depending on your Airbyte configuration. The above paths are commonly used defaults. If you are unsure, you can use
ls /storage/
to explore directories inside the Minio pod [[How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101)]. This process will help you free up storage by deleting old logs and temporary files from Minio.
s
@kapa.ai is this correct? kubectl get pods -n airbyte-abctl E1104 111210.732616 13073 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.18080 connect: connection refused" E1104 111210.732854 13073 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.18080 connect: connection refused" E1104 111210.734176 13073 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.18080 connect: connection refused" E1104 111210.734428 13073 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.18080 connect: connection refused" E1104 111210.735549 13073 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp 127.0.0.18080 connect: connection refused" The connection to the server localhost:8080 was refused - did you specify the right host or port?
k
A message from kapa.ai
The error message you are seeing:
Copy code
The connection to the server localhost:8080 was refused - did you specify the right host or port?
indicates that
kubectl
is not able to connect to your Kubernetes cluster. This usually happens if your
kubectl
context is not set to the correct cluster, or the cluster is not running. For Airbyte OSS installed via
abctl
, you need to ensure that your
kubectl
is configured to use the kubeconfig generated by
kind
and used by
abctl
. The correct command should specify the kubeconfig file and namespace, like this:
Copy code
bash kubectl --kubeconfig ~/.airbyte/abctl/abctl.kubeconfig --namespace airbyte-abctl get pods
This tells
kubectl
to use the correct configuration file and namespace for your Airbyte deployment, as described in the documentation. If you do not specify the kubeconfig,
kubectl
defaults to
~/.kube/config
, which may not point to your Airbyte cluster, resulting in the connection refused error [[Troubleshooting abctl FAQ]](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy#faq). If you have not yet exported the kubeconfig, you can do so with:
Copy code
bash kind export kubeconfig -n airbyte-abctl
After this, the
kubectl
command above should work as expected. Summary: Your command is almost correct, but you must specify the correct kubeconfig file for Airbyte's kind cluster. Otherwise, you will get a connection refused error.
f
@kapa.ai on k8s how can I extend replication jobs resources?
k
A message from kapa.ai
To extend (increase) the resources for replication jobs in Airbyte on Kubernetes, you have several options, depending on the scope you want to affect: ### 1. Instance-wide (All Jobs) You can set resource requests and limits for all job containers by editing your
values.yaml
file used with the Airbyte Helm chart. For example:
Copy code
yaml global:   jobs:     resources:       limits:         cpu: 250m      # or your desired value         memory: 500Mi  # or your desired value       requests:         cpu: 75m         memory: 150Mi
This will apply to all job pods unless overridden by more specific settings [[Scaling Airbyte After Installation]](https://docs.airbyte.com/platform/1.8/enterprise-setup/scaling-airbyte). ### 2. Connector Definition (All Instances of a Connector) You can update the resource requirements for a specific connector type by updating the
actor_definition
table in the Airbyte database:
Copy code
sql update actor_definition set resource_requirements = '{"jobSpecific": [{"jobType": "sync", "resourceRequirements": {"cpu_limit": "2", "cpu_request": "2", "memory_limit": "2048Mi", "memory_request": "2048Mi"}}]}' where id = '<connector-definition-id>';
This will override the instance-wide settings for all jobs of that connector type [[Configuring Connector Resources]](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-connector-resources). ### 3. Connector-specific or Connection-specific You can also set resource requirements for a specific connector instance or even a specific connection via the Airbyte UI or API, which will take precedence over the above settings [[Configuring Connector Resources]](https://docs.airbyte.com/platform/1.8/operator-guides/configuring-connector-resources). ### Important Notes - If you have previously set resource requirements at the connector or connection level, these will override the instance-wide settings. You may need to update or remove those overrides if you want the new global settings to take effect [[workload resource requests and limits not applied for replication jobs](https://github.com/airbytehq/airbyte/issues/68162)]. - After updating your
values.yaml
, apply the changes with
helm upgrade
. If you need more granular control (e.g., only for replication jobs and not for check/discover/spec), use the connector or connection-specific settings as described above. If you need further details on the exact SQL or UI steps, let me know your Airbyte version and deployment details.
f
@kapa.ai how can I understand which is the correct value for memory request to set for replication jobs?
k
A message from kapa.ai
To determine the correct value for the memory request for replication jobs in Airbyte, you should consider the following guidance from the official documentation: 1. Start with Defaults and Monitor Usage: Airbyte recommends starting with the default resource allocations, as these are sufficient for most use cases. If you encounter issues (e.g., jobs running out of memory), use observability tools and Airbyte logs to confirm if memory is the bottleneck. The logs for each job will show the detected resource configuration, which can help you verify what is currently being used [[Configuring Connector Resources – Debugging](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources#debugging)]. 2. Understand Your Data Size: The main memory consumer in a sync job is the Source worker, which reads up to 10,000 records into memory at once. If your source tables have large row sizes, you will need more memory. For example, if the average row size is 0.5 MB, then 10,000 rows would require about 5 GB of RAM (0.5 MB * 10,000 = 5,000 MB = 5 GB) [[Scaling Airbyte – What To Scale](https://docs.airbyte.com/platform/operator-guides/scaling-airbyte#what-to-scale)]. 3. Iterative Tuning: - Start with a mid-sized value (e.g., 1–2 GiB). - Monitor job logs and system metrics for out-of-memory errors or excessive swapping. - Increase the memory request incrementally if you observe failures or performance issues. - Use the Airbyte UI or logs to confirm the new configuration is being applied. 4. Best Practices: - Only increase memory for specific connectors or connections that need it, rather than globally, to optimize resource usage. - Over-provisioning is safer than under-provisioning, especially if you have large or variable data sizes [[Configuring Connector Resources – Best Practices](https://docs.airbyte.com/platform/operator-guides/configuring-connector-resources)]. In summary: There is no one-size-fits-all value. Start with the default, monitor your jobs, and adjust based on the size of your data and observed memory usage. For large tables or wide rows, calculate the approximate memory needed for 10,000 records and set your memory request accordingly. Always confirm changes via job logs and system monitoring tools.
f
@kapa.ai is this config ok to be passed to a deploy with helm chart v2?
Copy code
global:
  version: "2.0.1"
  airbyteUrl: "http://localhost:8000"

airbyte-server:
  config:
    manifestServer:
      enabled: false

  resources:
    requests:
      memory: "4Gi"
      cpu: "1000m"
    limits:
      memory: "6Gi"
      cpu: "2000m"

postgresql:
  persistence:
    size: 10Gi

airbyte-temporal:
  resources:
    limits:
      memory: "1536Mi"

airbyte-worker:
  resources:
    limits:
      memory: "2Gi"

airbyte-webapp:
  resources:
    limits:
      memory: "1Gi"

jobs:
  resources:
    requests:
      cpu: 1000m
      memory: 2Gi
    limits:
      cpu: 2000m
      memory: 4Gi
k
A message from kapa.ai
Based on the knowledge sources provided, your configuration is partially correct for deploying Airbyte with Helm chart V2, but there are some important adjustments and clarifications needed: ### 1. Global Section - The
global
section is required and should include keys like
edition
, and optionally
version
and
airbyteUrl
. - The
airbyteUrl
should be the actual URL where Airbyte will be accessed (not
http://localhost:8000
in production). ### 2. Resource Configuration - For Helm chart V2, job resource requests and limits should be set under
global.jobs.resources
, not at the root
jobs:
level. - Similarly, resources for components like
airbyte-server
,
airbyte-worker
, etc., should be set under their respective keys, but the main job resources (for sync/check/discover jobs) must be under
global.jobs.resources
to be effective [[Update your values.yaml file]](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). ### 3. Example Correction Here is a corrected version of your config for Helm chart V2:
Copy code
yaml global:   edition: community   version: "2.0.1"   airbyteUrl: "http://your-airbyte-url"  # Replace with your actual URL   jobs:     resources:       requests:         cpu: 1000m         memory: 2Gi       limits:         cpu: 2000m         memory: 4Gi  airbyte-server:   config:     manifestServer:       enabled: false   resources:     requests:       memory: "4Gi"       cpu: "1000m"     limits:       memory: "6Gi"       cpu: "2000m"  postgresql:   persistence:     size: 10Gi  airbyte-temporal:   resources:     limits:       memory: "1536Mi"  airbyte-worker:   resources:     limits:       memory: "2Gi"  airbyte-webapp:   resources:     limits:       memory: "1Gi"
### 4. Other Notes - The
edition
key is required in
global
(e.g.,
community
or
enterprise
). - The
jobs:
block at the root level is not recognized by Helm chart V2; it must be under
global.jobs
. - Double-check all indentation and YAML formatting. ### 5. References - For a full reference and more examples, see the [values.yaml reference for Helm chart V2](https://docs.airbyte.com/platform/next/deploying-airbyte/values). - For migration and structure details, see [Update your values.yaml file](https://docs.airbyte.com/platform/next/deploying-airbyte/chart-v2-community#update-your-valuesyaml-file). --- Summary: Move your
jobs.resources
block under
global.jobs.resources
and ensure you include the
edition
key in
global
. The rest of your configuration appears compatible with Helm chart V2, assuming you adjust the structure as shown above. If you need more advanced customizations, refer to the [values.yaml reference](https://docs.airbyte.com/platform/next/deploying-airbyte/values).
f
@kapa.ai I need to override the default persistence size for the PostgreSQL sub-chart from the standard Airbyte Helm Chart (version 2.0.19). The key
postgresql.persistence.size
is being ignored, and I'm stuck at 1Gi. What is the exact dot-notation key (e.g.,
postgresql.primary.persistence.size
) required to force the value to 10Gi for the primary volume?
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not explicitly mention the exact dot-notation key required to override the PostgreSQL sub-chart persistence size in Airbyte Helm Chart V2 (e.g., whether it should be
postgresql.persistence.size
or
postgresql.primary.persistence.size
). The documentation and issues referenced discuss general configuration and resource overrides, but do not provide a definitive answer for this specific key in Helm chart version 2.0.19. If you need the exact key, I recommend checking the [official Airbyte Helm chart values.yaml on GitHub](https://github.com/airbytehq/airbyte-platform/blob/main/charts/v2/airbyte/values.yaml) for the most up-to-date and authoritative information, as suggested in the documentation sources.
f
@kapa.ai deploying airbyte on kubernetes could be related to increase on cloud logging costs?
k
A message from kapa.ai
Yes, deploying Airbyte on Kubernetes could be related to an increase in cloud logging costs. By default, Airbyte outputs logs to both object storage (like S3 or GCS) and to
stdout
. On Kubernetes platforms such as GKE, logs written to
stdout
are automatically collected by the platform’s logging agent (e.g., Google Cloud Logging/Stackdriver), which can result in significant log ingestion and storage costs if your Airbyte jobs are verbose or run frequently. There is a community discussion where a user noted that GKE collects JSONL lines from pod containers and pushes them into Cloud Logging, and they were seeking ways to optimize or format this logging to better control costs and usability. This highlights that Airbyte’s logging behavior on Kubernetes can directly impact cloud logging costs, especially if not managed or filtered appropriately [[GKE & Cloud Logging usability](https://github.com/airbytehq/airbyte/issues/6531)]. Additionally, Airbyte’s design is to write logs to immutable object storage for reliability, but logs are also output to
stdout
, which means any logging collector on the node (such as those in managed Kubernetes environments) will pick them up and forward them to your cloud logging solution, potentially increasing costs [[K8S Production reliable deployement](https://discuss.airbyte.io/t/346)]. To mitigate this, you may want to: - Adjust Airbyte’s log verbosity. - Set up log retention and filtering policies in your cloud logging platform. - Regularly clean up or offload logs from object storage. In summary, Airbyte’s logging on Kubernetes can contribute to increased cloud logging costs if not properly managed.
f
@kapa.ai if I want to deploy the airbyte internal postgres to cloud sql and I have 3 deploys of airbyte do I have to create 3 databases?
k
A message from kapa.ai
If you want to deploy the Airbyte internal Postgres to Cloud SQL and you have 3 separate Airbyte deployments, **you should create 3 separate databases**—one for each Airbyte deployment. This is recommended to ensure data isolation and to avoid conflicts between the deployments. The documentation states that for self-managed enterprise deployments, you should use a dedicated database instance for better reliability and backups, and you need to add the external database details to your
values.yaml
file for each deployment. There is no mention of sharing a single database across multiple Airbyte deployments, and using separate databases is the standard approach to prevent issues with overlapping data or schema conflicts [[Configuring the Airbyte Database](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-the-airbyte-database)]. Additionally, a related GitHub issue discusses the need to preconfigure separate databases (e.g.,
airbyte_db_1
,
airbyte_db_2
, etc.) when using the same Postgres instance for multiple Airbyte deployments, further confirming that each deployment should have its own database [[Helm Chart: make temporal and temporal_visibility databases configurable](https://github.com/airbytehq/airbyte/issues/11157)]. In summary: Yes, you need to create 3 separate databases in Cloud SQL if you have 3 Airbyte deployments.
f
@kapa.ai replication job is reporting
Copy code
2025-11-19 16:01:45 platform > Using job log path: /workspace/408437/0/logs.log
where can I found this log? if the container is destroyed can I retrieve the log?
k
A message from kapa.ai
That path is inside Airbyte’s workspace for that job attempt: - Job ID:
408437
- Attempt:
0
- Log file:
/workspace/408437/0/logs.log
How you access it depends on your deployment. --- ### 1. Via the Airbyte UI (recommended) For any deployment (Docker or Kubernetes), you can always see/download the job logs from the UI: 1. Go to the connection → Job History. 2. Find the job, click the three dots → View logs to browse them in-app. 3. Or Download logs to get a merged
logs.log
locally. [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs)] This works even if the original worker container has already been destroyed, because Airbyte persists job logs and exposes them via the UI. --- ### 2. Docker / Open Source local deployment For OSS Docker deployments, the job workspace is persisted in the
airbyte_workspace
Docker volume under
/tmp/workspace/<job_id>/<attempt>/
. [[Exploring Local Logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#exploring-local-logs)] Example for job
408437
, attempt `0`:
Copy code
bash docker run -it --rm --volume airbyte_workspace:/data busybox ls /data/408437/0 # You should see: logs.log, catalog.json, configs, etc.  docker run -it --rm --volume airbyte_workspace:/data busybox cat /data/408437/0/logs.log
So even after the worker container is gone, the log is still in the volume. --- ### 3. Kubernetes On Kubernetes, you cannot rely on the worker pod after it has completed (it’s ephemeral), but you still have options: - Use the UI to view/download logs (Airbyte persists them separately, not only in the pod). [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs)] - For other workspace artifacts in running pods, you can
kubectl exec
into the job pod and inspect
/config
or
/workspace
, but once the pod is in
Succeeded
state you can no longer
exec
into it. [[Browsing on Kubernetes](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#browsing-on-kubernetes); [Browsing-output-logs on Kubernetes](https://discuss.airbyte.io/t/4175)] The knowledge sources do not document a supported way to reconstruct
/workspace/…/logs.log
from a terminated K8s job pod directly; log access after pod destruction is via the Airbyte UI (and any external log sink you configured), not by re-entering the pod. --- Summary - The concrete file is at
/tmp/workspace/408437/0/logs.log
inside the Airbyte workspace volume in Docker-based OSS. [[Exploring Local Logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#exploring-local-logs)] - On Kubernetes, worker pods are ephemeral; after they are destroyed you retrieve logs via the UI download/view logs feature, not by
kubectl exec
into the old pod. [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs)]