Januka Peiris
07/07/2025, 12:03 PMkapa.ai
07/07/2025, 12:03 PMyaml livenessProbe: enabled: true initialDelaySeconds: 30 periodSeconds: 10 timeoutSeconds: 1 failureThreshold: 3 successThreshold: 1 readinessProbe: enabled: true initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 1 failureThreshold: 3 successThreshold: 1 If your health endpoint is not /healthz but something else (like /health or /api/v1/health), make sure your probe is targeting the correct path. Also, if the timeout is too short and your service takes longer to respond, Kubernetes may mark the pod as unhealthy and restart it. Increasing timeoutSeconds or failureThreshold can help if your service is slow to respond at times. There is no single "recommended" value, but the above settings are commonly used in Airbyte deployments. You may need to adjust them based on your application's startup and response characteristics. If you continue to see resets, try increasing timeoutSeconds and/or failureThreshold incrementally. For more details and examples, see the Airbyte Helm chart configuration references: - [Example probe settings in Airbyte Helm chart](https://github.com/airbytehq/airbyte/issues/49843) - [Another example with readiness/liveness probe settings](https://github.com/airbytehq/airbyte/issues/49843) If you need to change the probe path, ensure it matches your application's health endpoint. If the problem persists after tuning these values, further investigation into your application's health endpoint performance may be needed.Januka Peiris
07/07/2025, 1:05 PMJanuka Peiris
07/07/2025, 1:07 PMkapa.ai
07/07/2025, 1:07 PMkapa.ai
07/07/2025, 1:08 PMAIRBYTE_ENTRYPOINT environment variable to be set in your Docker image. This is a requirement for custom connectors in Airbyte. Your current Dockerfile sets the entrypoint using the ENTRYPOINT instruction, but it does not set the AIRBYTE_ENTRYPOINT environment variable. You need to add the following line to your Dockerfile: dockerfile ENV AIRBYTE_ENTRYPOINT "python main.py" So, your Dockerfile should look like this: dockerfile FROM python:3.9-slim # Install dependencies COPY setup.py setup.py COPY MANIFEST.in MANIFEST.in COPY source_opentable/ source_opentable/ COPY main.py main.py RUN pip install . # Set the Airbyte entrypoint environment variable ENV AIRBYTE_ENTRYPOINT "python main.py" # Set the entrypoint ENTRYPOINT ["python", "main.py"] This will resolve the error, as Airbyte requires the AIRBYTE_ENTRYPOINT environment variable to be set in the container, even if you also use the ENTRYPOINT instruction in Docker. This is confirmed in the Airbyte documentation for custom connector Dockerfiles, which explicitly sets this environment variable in their examples [Setting up standard acceptance tests for your connector](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector). If you continue to have issues, ensure your Docker image is rebuilt and that you are using the updated image in Airbyte.Januka Peiris
07/07/2025, 1:19 PMkapa.ai
07/07/2025, 1:19 PMkapa.ai
07/07/2025, 1:19 PMpython: can't open file '/config/airbyte-ivy-opentable1/main.py': [Errno 2] No such file or directory indicates that Airbyte is trying to execute your connector's entrypoint from the /config/airbyte-ivy-opentable1/main.py path, but the file does not exist at that location inside the container. Key points from the Airbyte documentation: - Airbyte mounts configuration files (like config.json, catalog.json) into the /airbyte or /config directory inside the container, but your connector code (like main.py) should be present in the working directory of your Docker image, not in /config [Airbyte Protocol Docker Interface](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol-docker). - The AIRBYTE_ENTRYPOINT should point to the correct path of your main script as it exists inside the container. If your Dockerfile copies main.py to the root or a subdirectory, the entrypoint should match that path. Why this happens on AKS: This is not specific to AKS; it is about how Airbyte runs connector containers. Airbyte expects to find your connector code at the path specified by AIRBYTE_ENTRYPOINT inside the container. If the path is incorrect, you will get a "file not found" error. How to fix: 1. Check your Dockerfile: Make sure you are copying main.py to the correct location. For example, if you copy it to /airbyte/integration_code/main.py, your entrypoint should be: dockerfile ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] 2. Do not reference /config in your entrypoint: The /config directory is for Airbyte's config files, not your code. 3. Rebuild and push your Docker image after making changes. Summary: The error is due to a mismatch between the path in your AIRBYTE_ENTRYPOINT and where your code actually exists in the container. Adjust your Dockerfile and entrypoint to match the actual location of your main.py file inside the image. This is a common requirement for all Airbyte deployments, including on AKS [Airbyte Protocol Docker Interface](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol-docker). If you need more details on the required Docker image structure, see the [Airbyte Protocol Docker Interface documentation](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol-docker).