Saif Qureshi
08/14/2025, 10:34 PMkapa.ai
08/14/2025, 10:35 PM{
"status": 500,
"type": "https://reference.airbyte.com/reference/errors",
"title": "unexpected-problem",
"detail": "An unexpected problem has occurred. If this is an error that needs to be addressed, please submit a pull request or github issue.",
"documentationUrl": null,
"data": {
"message": "Something went wrong in the connector. logs:The main container of the DISCOVER operation returned an exit code 2"
}
} indicates that the Airbyte connector failed during the schema discovery phase. Specifically, the main container running the DISCOVER operation exited with code 2, which is a generic error code indicating a failure in the connector process. This type of error is commonly reported when: - There is a misconfiguration in the connector settings (such as incorrect credentials, network issues, or unsupported options). - The connector itself has a bug or incompatibility with the source/destination version. - There are resource constraints or environmental issues (e.g., insufficient memory, network access problems). For example, similar issues have been reported with the MongoDB and DynamoDB source connectors, where the DISCOVER operation failed due to connector instability or configuration problems. In those cases, reviewing the connector version, logs, and configuration helped identify the root cause. Sometimes, reverting to a previous connector version resolved the issue, as newer versions introduced breaking changes or bugs. For instance, users reported that MongoDB source connector versions 1.0.0 and 1.0.1 failed during discovery, but version 0.2.5 worked as expected. Reviewing the logs from the failed attempt can provide more specific details about what went wrong during the DISCOVER operation<sup>[source-mongodb] Discovering schema failed when creating new connection</sup>. Recommended steps: 1. Check the connector logs for more detailed error messages during the DISCOVER phase. 2. Verify your connector configuration (credentials, network access, etc.). 3. Try using a different version of the connector if possible. 4. Ensure your Airbyte deployment has sufficient resources and network access to the source/destination. 5. If the problem persists, consider opening a GitHub issue with detailed logs and configuration for further assistance. If you provide the specific connector and version you are using, I may be able to give more targeted advice based on the knowledge sources.Saif Qureshi
08/14/2025, 10:35 PMkapa.ai
08/14/2025, 10:36 PMkapa.ai
08/14/2025, 10:36 PM{
"status": 500,
"type": "https://reference.airbyte.com/reference/errors",
"title": "unexpected-problem",
"detail": "An unexpected problem has occurred. If this is an error that needs to be addressed, please submit a pull request or github issue.",
"documentationUrl": null,
"data": {
"message": "Something went wrong in the connector. logs:The main container of the DISCOVER operation returned an exit code 2"
}
} typically occurs when the Airbyte connector fails during the schema discovery step while setting up a source. According to the knowledge sources, this kind of error can be caused by several factors: 1. Connector Misconfiguration: Incorrect or incomplete configuration (such as wrong credentials, missing required fields, or invalid parameters) can cause the connector to fail during discovery. For example, missing required fields in the configuration or using an unsupported format can trigger such errors. 2. Connector Bugs or Incompatibility: Sometimes, specific versions of connectors have bugs or incompatibilities that cause them to fail during the DISCOVER operation. There are reports where reverting to an earlier connector version resolved the issue, as newer versions introduced breaking changes or bugs<sup>[source-mongodb] Discovering schema failed when creating new connection</sup>. 3. Resource or Environment Issues: If the Airbyte deployment does not have enough resources (CPU, memory) or if there are network access issues, the connector may fail to start or complete the discovery process. This is especially relevant in Kubernetes deployments, where resource limits may need to be explicitly set for each job type<sup>[Cannot use Airbyte on Kubernetes due to OOM when setting up connector](https://github.com/airbytehq/airbyte/issues/48816)</sup>. 4. Internal Connector Errors: Sometimes, the connector itself encounters an unexpected error, which results in a non-zero exit code (like exit code 2). The logs from the connector container usually provide more details about the root cause. What you should do: - Review the connector logs for more detailed error messages. - Double-check your source configuration for missing or incorrect fields. - Try using a different version of the connector if possible. - Ensure your Airbyte deployment has sufficient resources and network access. - If the issue persists, consider opening a GitHub issue with detailed logs and configuration. If you provide the specific connector type and version, I can help you look for more targeted troubleshooting steps based on the knowledge sources.Saif Qureshi
08/14/2025, 10:38 PMkapa.ai
08/14/2025, 10:38 PMkapa.ai
08/14/2025, 10:39 PM2025-08-15 03:37:44 INFO 2025-08-15 03:37:44 info Connector exited with exit code 2 This indicates that the connector process failed during the CHECK operation and exited with code 2. In Airbyte, an exit code of 2 is a generic error indicating that something went wrong in the connector, but the logs do not provide a specific reason for the failure. From the knowledge sources, this type of error can be caused by: - Misconfiguration in the connector settings (such as missing or incorrect credentials, or required fields not being set). - Bugs or incompatibilities in the connector version being used. - Environmental issues, such as insufficient resources or network problems. Unfortunately, the logs you posted do not include a detailed error message or stack trace that would pinpoint the exact cause. The knowledge sources recommend checking the connector logs for more detailed error output, as the root cause is often logged there but may not be surfaced in the summary output you posted. If you have access to more detailed logs (especially stderr or error logs from the connector), reviewing those would be the next step. If the problem persists and you cannot find more detailed error information, you may need to: - Double-check your connector configuration. - Try a different version of the connector. - Ensure your Airbyte deployment has sufficient resources and network access. - If needed, open a GitHub issue and include the full logs and configuration for further help. I'm sorry, but the knowledge sources do not provide enough information to determine the exact cause of the exit code 2 in your case without more detailed logs or error messages.Saif Qureshi
08/14/2025, 10:55 PMkapa.ai
08/14/2025, 10:55 PMkapa.ai
08/14/2025, 10:56 PMdefinitionId), the connector may not be recognized or may fail to initialize properly. This has been seen in issues where Marketplace connectors failed due to missing name mappings, which were later fixed in Airbyte releases<sup>[Google Drive OAuth Override - Bad Request](https://github.com/airbytehq/airbyte/issues/41660)</sup>. Summary: The most common reasons for this behavior are configuration mismatches, version differences, or missing metadata/mappings in the Marketplace connector. Double-check your configuration, ensure you are using compatible versions, and review any connector-specific documentation or known issues for the Marketplace version you are using. If you continue to experience issues, reviewing the detailed logs and comparing the custom and Marketplace connector configurations can help identify the root cause. If you suspect a bug or missing mapping, consider opening a GitHub issue with detailed information for further assistance.Saif Qureshi
08/14/2025, 10:57 PMkapa.ai
08/14/2025, 10:57 PMkapa.ai
08/14/2025, 10:57 PMSaif Qureshi
08/14/2025, 11:00 PMkapa.ai
08/14/2025, 11:00 PMkapa.ai
08/14/2025, 11:00 PMSaif Qureshi
08/14/2025, 11:01 PM"jobInfo": {
"id": "b1025f3d-5e67-4a2c-824c-3c60fc6e6ae8",
"configType": "get_spec",
"configId": "Optional.empty",
"createdAt": 1755208236297,
"endedAt": 1755208236297,
"succeeded": true,
"connectorConfigurationUpdated": false,
"logType": "formatted",
"logs": {
"events": [],
"logLines": []
}
}
i am talking piece in source definationkapa.ai
08/14/2025, 11:01 PMkapa.ai
08/14/2025, 11:01 PMjson "jobInfo": { "id": "b1025f3d-5e67-4a2c-824c-3c60fc6e6ae8", "configType": "get_spec", "configId": "Optional.empty", ... } the "id" field under "jobInfo" represents the jobId. This is a unique identifier assigned by Airbyte to each job that is executed, such as get_spec, check_connection_source, discover_schema, or sync. The jobId is used internally by Airbyte to track, monitor, and reference the execution of that specific job. This jobId is not part of the source connector definition itself, but rather is generated at runtime whenever a job is triggered (for example, when you run a "Get Spec" operation to fetch the connector's specification). The connector definition describes the connector's configuration, but the jobId is only relevant to the execution and tracking of jobs within the Airbyte platform<sup>[Airbyte Public API - Jobs](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)</sup>. If you are seeing jobInfo in a response or log, it is providing metadata about a specific job execution, not about the connector definition itself.Saif Qureshi
08/14/2025, 11:03 PMkapa.ai
08/14/2025, 11:03 PMkapa.ai
08/14/2025, 11:03 PM