The error message "Error: write EPIPE" when calling the Airbyte API endpoint /api/v1/health typically indicates a broken pipe, meaning the connection between your client and the Airbyte server was unexpectedly closed while data was being written. This is a low-level network error and can be caused by several factors: 1.
Airbyte Server Not Ready or Not Running: If the Airbyte server is not fully started or is not listening on the expected port, any request to /api/v1/health will fail with connection errors. This is commonly seen right after a system or container startup, before Airbyte is fully initialized. Restarting the Airbyte containers often resolves this issue once the services are up and running properly. This behavior has been reported by users, especially when using reverse proxies like Nginx, and is resolved after restarting the containers or waiting for Airbyte to finish starting up [Nginx reverse proxy tells 502 until containers restarted](
https://discuss.airbyte.io/t/3239). 2.
Reverse Proxy or Load Balancer Issues: If you are using a reverse proxy (like Nginx) or a load balancer in front of Airbyte, misconfiguration or timing issues (such as the backend not being ready) can cause connection refused or broken pipe errors. For example, if the proxy tries to forward requests before Airbyte is ready, you may see EPIPE or 502 errors. Adjusting the proxy or load balancer timeout settings and ensuring Airbyte is fully started before sending requests can help [Failed to fetch schema for Salesforce on GCP](
https://discuss.airbyte.io/t/3519). 3.
Network or Firewall Issues: Network interruptions or firewall rules blocking the connection can also result in EPIPE errors.
What you can do: - Ensure the Airbyte server is fully started and healthy before making API requests. You can check the logs of your Airbyte containers for readiness. - If using a reverse proxy, verify that it is correctly configured and that the backend service (Airbyte) is available before forwarding requests. - Try restarting the Airbyte containers if you encounter this error after a system reboot or deployment. If the problem persists after these checks, please provide more details about your deployment setup (e.g., Docker, Kubernetes, use of proxies) for more targeted troubleshooting. Let me know if you need help interpreting specific log messages or further troubleshooting steps!