<@U04S8PLJWMT> I have extraInitContainer for tempo...
# ask-ai
s
@kapa.ai I have extraInitContainer for temporal with such code:
Copy code
extraInitContainers:
    - name: config-loader
      image: temporalio/auto-setup:1.27.2
      command:
        - /bin/sh
        - -c
        - >-
          find /etc/temporal/config/ -maxdepth 1 -mindepth 1 -exec cp -ar {} /config/ \;
      volumeMounts:
        - name: config
          mountPath: /config
This extra container has these errors:
Copy code
cp: can't preserve ownership of '/config/config_template.yaml': Operation not permitted
cp: can't preserve ownership of '/config/dynamicconfig/docker.yaml': Operation not permitted
cp: can't preserve ownership of '/config/dynamicconfig': Operation not permitted
How can I correct this?
k
The errors you're encountering are related to file permission issues when copying files in the init container. This is a common problem when using
readOnlyRootFilesystem=true
or when there are ownership/permission constraints. Based on the knowledge sources, I can see examples of similar configurations. The issue occurs because the
cp -ar
command tries to preserve ownership and permissions, which fails due to insufficient privileges. To resolve this, you should modify your command to not preserve ownership. Here's the corrected configuration:
Copy code
yaml extraInitContainers:   - name: config-loader     image: temporalio/auto-setup:1.27.2     command:       - /bin/sh       - -c       - >-         find /etc/temporal/config/ -maxdepth 1 -mindepth 1 -exec cp -r {} /config/ \;     volumeMounts:       - name: config         mountPath: /config
The key change is replacing
cp -ar
with
cp -r
. The
-a
flag (archive mode) attempts to preserve ownership, permissions, and timestamps, which causes the "Operation not permitted" errors. Using just
-r
(recursive) will copy the files without trying to preserve ownership. Alternatively, you could use
cp -rL
to also dereference symbolic links if needed, or add
|| true
at the end of the command to ignore permission errors:
Copy code
yaml command:   - /bin/sh   - -c   - >-     find /etc/temporal/config/ -maxdepth 1 -mindepth 1 -exec cp -r {} /config/ \; || true
This approach is consistent with the pattern shown in the [Helm chart configuration examples](https://github.com/airbytehq/airbyte/issues/49843) for temporal init containers.
A message from kapa.ai
The warning messages you're seeing are related to enterprise connector entitlements. These warnings indicate that Airbyte is checking for entitlements for certain connectors (identified by their
actorDefinitionId
) but finding that they're not available for your organization. Based on the knowledge sources, these warnings are typically harmless and occur when: 1. You're using Airbyte OSS (Open Source) and the system is checking for enterprise connectors 2. The connectors in question are enterprise-only connectors that require specific entitlements The
organizationId=00000000-0000-0000-0000-000000000000
indicates this is the default organization ID, which is commonly used in OSS deployments. These are just warnings and shouldn't prevent your Airbyte instance from functioning normally. The system is simply logging that certain enterprise connectors are not available for use. If you're not planning to use these specific enterprise connectors, you can safely ignore these warnings. If you want to reduce these warnings, you could: 1. Continue using your current setup - These warnings don't affect functionality and can be safely ignored if you're not using enterprise connectors 2. Filter out enterprise connectors - Though the knowledge sources don't provide a specific configuration for this in your version The warnings are part of the normal entitlement checking process and don't indicate any configuration error on your part. Your Airbyte deployment should work correctly despite these warnings.
A message from kapa.ai
The errors you're seeing indicate that the Airbyte worker is trying to connect to Temporal's frontend service, but the Temporal frontend is not yet ready to accept connections. The error message "Frontend is not healthy yet" is a clear indication that Temporal is still starting up or initializing. Based on the knowledge sources, these are temporary startup errors that typically resolve themselves once Temporal becomes fully operational. Here's what's happening: 1. The worker pods are starting before Temporal is fully ready - The worker is attempting to poll various task queues (SYNC, CHECK_CONNECTION, GET_SPEC, DISCOVER_SCHEMA, CONNECTION_UPDATER, ui_commands) but Temporal's frontend service hasn't completed its initialization yet. 2. This is a timing issue during startup - These warnings should disappear once Temporal's frontend service becomes healthy and ready to accept connections. What you should do: 1. Wait a few minutes - These errors typically resolve automatically as Temporal completes its startup sequence. The worker will continue retrying the connection. 2. Check Temporal pod status - Verify that your Temporal pods are running and healthy:
Copy code
bash    kubectl get pods -l app=temporal    kubectl logs <temporal-pod-name>
3. Monitor the worker logs - If these errors persist for more than a few minutes after Temporal pods show as "Running" and "Ready", there may be a connectivity issue between the worker and Temporal services. 4. Verify Temporal service configuration - Ensure that the worker can reach the Temporal service endpoint. Check your Helm values for the correct Temporal service name and port configuration. These warnings are part of the normal startup sequence when the worker starts before Temporal is fully initialized. They should stop appearing once Temporal's frontend service is healthy and accepting connections. If they persist beyond the initial startup period, you may need to investigate network connectivity or Temporal configuration issues.
A message from kapa.ai
The errors you're seeing in Temporal indicate a "context deadline exceeded" issue, which means that Temporal is experiencing timeouts when trying to communicate with its persistence layer (database). This is a critical issue that's preventing Temporal from properly fetching workflow execution data. Based on the knowledge sources, this type of error is commonly related to database connectivity and performance issues. Here's what's happening and how to address it: ## Root Cause The error
"GetWorkflowExecution: failed to get signals requested. Error: Failed to get signals requested. Error: context deadline exceeded"
indicates that Temporal's database queries are timing out. This is typically caused by: 1. Database connectivity issues - Network latency or connectivity problems between Temporal and the database 2. Database performance problems - The database is overloaded or under-resourced 3. Network latency - High latency between Temporal and the database instance ## Solution According to the [GitHub issue #59730](https://github.com/airbytehq/airbyte/issues/59730), a user encountered very similar "context deadline exceeded" errors and found that: > "After reviewing the
airbyte-temporal
logs and checking their repository, I discovered that the PostgreSQL Go client was unable to communicate properly with my database instance. This was strange because it could run migrations and insert rows without issues." The solution that worked was: > "After recreating everything from scratch (again) but using an RDS instance in the same region as my EKS cluster, everything started working properly. The Temporal pod stopped logging context deadline exceeded, and the check pod was created and responded as expected." The user concluded: > "It seems that the Temporal pod is highly sensitive to delays and timeouts when interacting with the database." ## Recommended Actions 1. Check database location and latency - Ensure your database instance is in the same region/availability zone as your Temporal pods to minimize network latency 2. Verify database connectivity - Test the connection between Temporal and your database: - Check if there are any network policies or security groups blocking traffic - Verify DNS resolution is working correctly - Test database connectivity from within the Temporal pod 3. Monitor database performance - Check if your database has sufficient resources: - CPU utilization - Memory usage - Disk I/O - Connection pool exhaustion 4. Review database configuration - Ensure your database is properly configured for Temporal's requirements 5. Consider database proximity - If your database is in a different region or has high latency, consider moving it closer to your EKS cluster or using a database instance in the same region The knowledge sources indicate that Temporal is particularly sensitive to database latency and timeout issues, and resolving the underlying connectivity or performance problem with the database is key to fixing these errors.
A message from kapa.ai
Based on the logs you've provided, the warnings and info messages you're seeing are actually normal Temporal operations and don't indicate any errors or problems. Let me break down what's happening: ## Search Attribute Warnings The warnings about search attributes already existing:
Copy code
{"level":"warn","ts":"2025-11-03T11:42:39.065Z","msg":"Search attribute CustomStringField already exists."...}
These are harmless warnings that occur during Temporal's initialization when it tries to add custom search attributes that have already been registered. The message "Search attributes have been added" confirms that the process completed successfully. These warnings can be safely ignored. ## Task Queue Manager Lifecycle Messages The info-level messages about
physicalTaskQueueManager
being "Started" and "Stopped" are normal operational logs:
Copy code
{"level":"info","ts":"2025-11-03T11:47:33.166Z","msg":"Stopped physicalTaskQueueManager"...,"cause":"Idle"...} {"level":"info","ts":"2025-11-03T11:49:32.176Z","msg":"Started physicalTaskQueueManager"...,"cause":"Poll"...}
These messages indicate that: - Task queue managers are being stopped when they're idle (no work to process) - Task queue managers are being started when workers poll for tasks - This is normal behavior for various task queues like
GET_SPEC
,
CHECK_CONNECTION
,
DISCOVER_SCHEMA
, etc. ## What This Means The logs you're showing indicate that Temporal is now operating normally. The previous "context deadline exceeded" errors are gone, which suggests that the database connectivity issue has been resolved. If you're still experiencing issues with Airbyte functionality, the problem is likely not with Temporal itself. To help diagnose further, you would need to: 1. Check the worker logs for any errors 2. Check the server logs for any errors beyond the entitlement warnings we discussed earlier 3. Verify that connections and syncs are actually failing (and not just appearing to have issues) The Temporal logs you've shared show a healthy, functioning Temporal instance with no errors.
s
@kapa.ai thanks, but temporal still has readiness issue:
Copy code
Readiness probe failed:
k
A message from kapa.ai
I can see that your Temporal pod is failing its readiness probe, but the knowledge sources provided don't contain specific information about Temporal readiness probe failures or how to diagnose and fix them in the context of Airbyte deployments. However, based on the conversation history and the knowledge sources, here are some general troubleshooting steps you can take: 1. Check the readiness probe configuration - Verify what endpoint the readiness probe is checking and what the timeout/threshold settings are in your Helm values 2. Examine detailed Temporal pod logs - Look for any errors that might explain why the readiness check is failing:
Copy code
bash    kubectl logs <temporal-pod-name> -n <namespace>    kubectl describe pod <temporal-pod-name> -n <namespace>
3. Verify database connectivity - Since we previously resolved "context deadline exceeded" errors related to database connectivity, ensure that the database connection is still stable and performing well 4. Check resource constraints - Verify that the Temporal pod has sufficient CPU and memory resources allocated 5. Review the readiness probe endpoint - The readiness probe typically checks a health endpoint. You can manually test this endpoint from within the pod or from another pod in the cluster The knowledge sources don't provide specific guidance on Temporal readiness probe failures, so I recommend checking the Temporal pod's detailed logs and events to understand what specific check is failing. If you can share those logs, I may be able to provide more specific guidance based on the error messages.
s
@kapa.ai ok, I've checked readiness probe for temporal and it's code is this:
Copy code
readinessProbe:
          exec:
            command:
            - /bin/sh
            - -ec
            - 'test $(ps -ef | grep -v grep | grep temporal-server | wc -l) -eq 1'
I ran it is pod shell, but it gives no output:
Copy code
airbyte-temporal-6f8fb99898-6vz6t:/etc/temporal$ test $(ps -ef | grep -v grep | grep temporal-server | wc -l) -eq 1
airbyte-temporal-6f8fb99898-6vz6t:/etc/temporal$
k
A message from kapa.ai
The behavior you're seeing is actually correct for a successful readiness probe. Let me explain: ## Understanding the Readiness Probe The readiness probe command:
Copy code
bash test $(ps -ef | grep -v grep | grep temporal-server | wc -l) -eq 1
This command: 1. Counts the number of
temporal-server
processes running 2. Tests if exactly 1 process is running 3. Returns exit code 0 (success) if true, or exit code 1 (failure) if false ## Why There's No Output The
test
command in shell scripts doesn't produce any output when it succeeds. It only sets an exit code: - Exit code 0 = success (condition is true) - Exit code 1 = failure (condition is false) When you run the command and see no output, that's actually a good sign - it means the test passed. ## Verifying the Probe is Working To verify the readiness probe is actually working correctly, you can: 1. Check the exit code of the command:
Copy code
bash    test $(ps -ef | grep -v grep | grep temporal-server | wc -l) -eq 1    echo $?
If it prints
0
, the probe is passing. If it prints
1
, the probe is failing. 2. Check how many temporal-server processes are running:
Copy code
bash    ps -ef | grep -v grep | grep temporal-server | wc -l
This should output
1
if Temporal is running correctly. 3. Verify the process is actually running:
Copy code
bash    ps -ef | grep temporal-server
## If the Readiness Probe is Still Failing If Kubernetes is still reporting readiness probe failures despite the command appearing to work when you run it manually, check: 1. The probe's timing configuration - The probe might be timing out before the command completes 2. Pod events - Run
kubectl describe pod <temporal-pod-name>
to see the specific readiness probe failure messages 3. Whether the shell is available - The probe uses
/bin/sh
, ensure it's available in the container The knowledge sources don't provide specific troubleshooting steps for Temporal readiness probe failures, but the command you've shown appears to be functioning correctly based on the lack of output (which indicates success).
s
@kapa.ai ok then, looks like Airbyte is working fine, but connector operations are still failing with error 504 and this message, eg. GitHub:
Copy code
Failed to save GitHub due to the following error: errors.http.default
k
A message from kapa.ai
Based on the knowledge sources, the 504 Gateway Timeout error you're experiencing with connector operations is a known issue related to timeout configurations in Airbyte deployments. ## Solution According to the [Airbyte forum discussion](https://discuss.airbyte.io/t/3305), you should try editing the
BASIC_AUTH_PROXY_TIMEOUT
environment variable:
Copy code
BASIC_AUTH_PROXY_TIMEOUT=600
This environment variable controls the nginx proxy timeout for Airbyte operations. The default timeout may be too short for connector operations like saving configurations or discovering schemas. ## Additional Considerations The [Enterprise Setup Implementation Guide](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-ingress) also notes: > Set appropriate backend timeout values for the Airbyte server ingress. Timeout values that are too short can lead to 504 errors in the UI when creating new sources or destinations. If you're using Kubernetes with an ingress controller, you may also need to configure timeout values at the ingress level. For example, in the [GitHub issue #55690](https://github.com/airbytehq/airbyte/issues/55690), a user had to configure multiple timeout settings including: - Ingress annotations for nginx timeout settings - Load balancer timeout configurations - Server-level timeout configurations ## How to Apply the Fix For a Docker deployment, you would add or modify the
BASIC_AUTH_PROXY_TIMEOUT
variable in your
.env
file. For a Helm deployment, you may need to configure timeout values through your
values.yaml
file, though the specific configuration path isn't detailed in the knowledge sources for this particular environment variable. The 504 errors you're seeing when trying to save connectors like GitHub are likely due to these timeout constraints, and increasing the timeout values should resolve the issue.
s
@kapa.ai what is the default timeout value? Also, I'm, getting these messages in cron logs:
Copy code
2025-11-03 12:25:37,340 [scheduled-executor-thread-2]	INFO	i.a.c.j.WorkloadMonitor(cancelNotStartedWorkloads):66 - Checking for not started workloads.
2025-11-03 12:25:37,342 [scheduled-executor-thread-1]	INFO	i.a.c.j.WorkloadMonitor(cancelNotClaimedWorkloads):93 - Checking for not claimed workloads.
2025-11-03 12:25:37,348 [scheduled-executor-thread-2]	INFO	i.a.c.j.WorkloadMonitor(cancelNotHeartbeatingWorkloads):120 - Checking for non heartbeating workloads.
2025-11-03 12:25:37,351 [scheduled-executor-thread-1]	INFO	i.a.c.j.WorkloadMonitor(cancelRunningForTooLongNonSyncWorkloads):148 - Checking for workloads running for too long with timeout value PT4H
2025-11-03 12:25:37,353 [scheduled-executor-thread-2]	INFO	i.a.c.j.WorkloadMonitor(cancelRunningForTooLongSyncWorkloads):169 - Checking for sync workloads running for too long with timeout value PT720H
k
A message from kapa.ai
Based on the knowledge sources, I can answer both of your questions: ## Default Timeout Value for BASIC_AUTH_PROXY_TIMEOUT The knowledge sources don't explicitly state the default value for
BASIC_AUTH_PROXY_TIMEOUT
. The [forum discussion](https://discuss.airbyte.io/t/3305) only shows that a user was advised to set it to
600
seconds to resolve 504 timeout errors, but the default value is not mentioned. ## Cron Log Messages - Workload Timeout Values The messages you're seeing in the cron logs are normal operational logs showing that Airbyte's workload monitoring system is functioning correctly. These logs indicate the system is checking for various workload issues: According to the logs and the knowledge sources: 1. Non-sync workloads timeout:
PT4H
(4 hours) - This applies to operations like CHECK_CONNECTION, GET_SPEC, and DISCOVER_SCHEMA 2. Sync workloads timeout:
PT720H
(720 hours = 30 days) - This applies to actual data synchronization jobs These timeout values are visible in the [GitHub issue #59730](https://github.com/airbytehq/airbyte/issues/59730) and [GitHub issue #55812](https://github.com/airbytehq/airbyte/issues/55812) logs, which show the same monitoring messages:
Copy code
INFO i.a.c.j.WorkloadMonitor(cancelRunningForTooLongNonSyncWorkloads):137 - Checking for workloads running for too long with timeout value PT4H INFO i.a.c.j.WorkloadMonitor(cancelRunningForTooLongSyncWorkloads):157 - Checking for sync workloads running for too long with timeout value PT720H
These are informational messages showing that the cron job is actively monitoring workloads and will cancel them if they exceed these timeout thresholds. This is expected behavior and not an error.
s
@kapa.ai this env is correlated to authorization, but I'm not using any.
k
A message from kapa.ai
You're correct that
BASIC_AUTH_PROXY_TIMEOUT
is related to the basic authentication proxy component. However, based on the knowledge sources, this environment variable controls the timeout for the airbyte-proxy service, which is part of Airbyte's architecture regardless of whether you're using basic authentication or not. Looking at the [Docker Compose configuration](https://discuss.airbyte.io/t/3748) from the knowledge sources, the
airbyte-proxy
service is defined as:
Copy code
yaml airbyte-proxy:   image: airbyte/proxy:${VERSION}   container_name: airbyte-proxy   restart: unless-stopped   environment:     - BASIC_AUTH_USERNAME=${BASIC_AUTH_USERNAME}     - BASIC_AUTH_PASSWORD=${BASIC_AUTH_PASSWORD}     - BASIC_AUTH_PROXY_TIMEOUT=${BASIC_AUTH_PROXY_TIMEOUT}   networks:     - backend     - airbyte_public   depends_on:     - webapp     - server
The proxy service acts as a reverse proxy/gateway for Airbyte's web application and API, even when basic authentication is disabled. The
BASIC_AUTH_PROXY_TIMEOUT
variable controls the timeout for requests passing through this proxy, not just authenticated requests. According to the [GitHub issue #33845](https://github.com/airbytehq/airbyte/issues/33845), when
BASIC_AUTH_PROXY_TIMEOUT
is not set, it defaults to a blank string, which means the proxy uses its default nginx timeout configuration. So even though you're not using basic authentication (you can leave
BASIC_AUTH_USERNAME
and
BASIC_AUTH_PASSWORD
empty), the
BASIC_AUTH_PROXY_TIMEOUT
setting still affects all requests going through the proxy, including your connector operations. Setting it to a higher value like
600
should help resolve your 504 timeout errors.
s
@kapa.ai I'm not using airbyte-proxy either. There is no such thing in Airbyte's helm chart v2
k
A message from kapa.ai
You're absolutely correct, and I apologize for the confusion. Looking at the knowledge sources more carefully, I can see that the ingress/proxy architecture differs between deployment methods and versions. Based on the knowledge sources, when deploying Airbyte with Helm, the timeout configuration needs to be set at different levels: ## For Helm Deployments According to the [Schema Discovery Timeouts documentation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts), for Helm chart V2, you should configure timeouts in your `values.yaml`:
Copy code
yaml server:   httpIdleTimeout: 20m   extraEnv:     - name: READ_TIMEOUT       value: 30m
## Ingress-Level Timeouts Additionally, the [Ingress documentation](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress) and [Implementation Guide](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-ingress) emphasize: > Set appropriate backend timeout values for the Airbyte server ingress. Timeout values that are too short can lead to 504 errors in the UI when creating new sources or destinations. If you're using NGINX ingress, you would need to configure timeout annotations in your ingress resource. From [GitHub issue #55690](https://github.com/airbytehq/airbyte/issues/55690), a user configured:
Copy code
yaml annotations:   nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"   nginx.ingress.kubernetes.io/proxy-send-timeout: "600"   nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
The 504 errors you're experiencing are likely due to timeout configurations at either the server level or the ingress level, not the
BASIC_AUTH_PROXY_TIMEOUT
which is indeed specific to Docker deployments with the proxy component.
s
@kapa.ai I'm using HAProxy ingress controller. How can I update timeout?
k
A message from kapa.ai
Based on the knowledge sources provided, I don't have specific information about configuring timeout values for HAProxy ingress controller with Airbyte. The knowledge sources only contain examples for NGINX Ingress Controller and AWS Application Load Balancer (ALB), but not for HAProxy. However, the general principle mentioned in the [Ingress documentation](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress) applies: > Set appropriate backend timeout values for the Airbyte server ingress. Timeout values that are too short can lead to 504 errors in the UI when creating new sources or destinations. For HAProxy specifically, you would need to configure timeout annotations in your Kubernetes Ingress resource, similar to how it's done with NGINX, but using HAProxy-specific annotations. The knowledge sources don't provide the exact annotation names for HAProxy. You may want to: 1. Refer to the [HAProxy Ingress Controller documentation](https://haproxy-ingress.github.io/) for the specific timeout annotations 2. Look for annotations like
haproxy.org/timeout-client
,
haproxy.org/timeout-server
, or similar (though I cannot confirm these exact names from the knowledge sources) 3. Apply these to your Airbyte ingress resource Additionally, you should still configure the server-level timeouts in your Helm
values.yaml
as mentioned in the [Schema Discovery Timeouts documentation](https://docs.airbyte.com/platform/enterprise-setup/scaling-airbyte#schema-discovery-timeouts):
Copy code
yaml server:   httpIdleTimeout: 20m   extraEnv:     - name: READ_TIMEOUT       value: 30m
I'm sorry, but the knowledge sources don't contain specific HAProxy ingress controller timeout configuration examples for Airbyte.