<@U04S8PLJWMT> temporal's healthcheck are failing....
# ask-ai
y
@kapa.ai temporal's healthcheck are failing. Any idea why? Error: unable to health check "temporal.api.workflowservice.v1.WorkflowService" service: context deadline exceeded ('export TEMPORAL_CLI_SHOW_STACKS=1' to see stack traces) Waiting for Temporal server to start...
k
The error message “unable to health check 'temporal.api.workflowservice.v1.WorkflowService' service: context deadline exceeded” typically indicates that the Airbyte Temporal service is not responding to health check requests within the expected time frame. This can be caused by several issues, as seen in the knowledge sources: 1. Temporal Server Not Ready or Not Listening: The Temporal service may not have started yet, or it may not be listening on the expected port. For example, the logs show “Waiting for Temporal server to start...” and “connection error: desc = 'transport: Error while dialing: dial tcp ...: connect: connection refused'” which suggests the service is not up or not reachable at the specified address and port. This can happen if the Temporal pod is still initializing or has crashed and is restarting. Check the pod status and logs for more details on readiness and errors during startup [abctl Failing to install Helm chart](https://github.com/airbytehq/airbyte/issues/44928). 2. Network or Connectivity Issues: If Temporal is running in a distributed environment (e.g., Kubernetes/EKS), network policies, firewalls, or misconfigured service endpoints can prevent the health check from reaching the Temporal service. Ensure that the service is exposed correctly and that there are no network restrictions between the components. 3. Resource Constraints or Database Latency: Temporal is sensitive to delays, especially in its connection to the backing database (often PostgreSQL). If the database is slow to respond (for example, due to being in a different region or under heavy load), Temporal may fail health checks with context deadline exceeded errors. One user resolved persistent deadline exceeded errors by moving their database to the same region as the Temporal server, reducing latency [Airbyte Temporal context deadline exceeded on eks](https://github.com/airbytehq/airbyte/issues/59730). 4. Temporal Initialization Issues: Sometimes, Temporal may be waiting for its namespace to be initialized, as seen in logs: “Waiting for namespace default to be initialized in temporal...”. If initialization is slow or fails, health checks will not pass until this completes [Airbyte-Server connection with Airbyte-Temporal seems to fail with Docker-Compose Up (Centos 7)](https://discuss.airbyte.io/t/3467). What to check: - Ensure the Temporal pod/container is running and healthy. - Check Temporal logs for errors or repeated restarts. - Verify network connectivity between Airbyte components and Temporal. - Ensure the backing database is healthy, low-latency, and accessible. - Confirm that Temporal is fully initialized and not stuck waiting for namespace or schema setup. If the above checks do not resolve the issue, review the full logs for any additional error messages that might indicate the root cause. If using an external database, try to minimize latency between Temporal and the database server. If you need more specific troubleshooting steps, please provide the relevant pod/container logs around the time of the health check failure.