<@U04S8PLJWMT> {"status":500,"type":"https:\/\/ref...
# ask-ai
s
@kapa.ai {"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"}} {"exception":"[object] (Exception(code: 0): Failed to create connection {\"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\"}}
k
The error message you are seeing:
Copy code
{
  "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.
s
@kapa.ai why getting this error when setting up source ?
k
A message from kapa.ai
The error you are seeing:
Copy code
{
  "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.
s
@kapa.ai here are the logs 2025-08-15 033743 INFO 2025-08-15 033743 info 2025-08-15 033743 INFO 2025-08-15 033743 info Connector exited, processing output 2025-08-15 033743 INFO 2025-08-15 033743 info ----- START CHECK ----- 2025-08-15 033743 INFO 2025-08-15 033743 info 2025-08-15 033743 INFO 2025-08-15 033743 info Output file jobOutput.json found 2025-08-15 033744 INFO 2025-08-15 033744 info Connector exited with exit code 2 2025-08-15 033744 INFO 2025-08-15 033744 info Reading messages from protocol version 0.2.0 2025-08-15 033744 INFO 2025-08-15 033744 info Checking for optional control message... 2025-08-15 033744 INFO 2025-08-15 033744 info Writing output of 886bdbfe-7935-4d96-b097-e3c1db73b951_d06e0e40-599f-4531-966f-3c10634bbfcf_0_check to the doc store 2025-08-15 033744 INFO 2025-08-15 033744 info Marking workload 886bdbfe-7935-4d96-b097-e3c1db73b951_d06e0e40-599f-4531-966f-3c10634bbfcf_0_check as successful 2025-08-15 033744 INFO 2025-08-15 033744 info 2025-08-15 033744 INFO 2025-08-15 033744 info Deliberately exiting process with code 0. 2025-08-15 033744 INFO 2025-08-15 033744 info ----- END CHECK ----- 2025-08-15 033744 INFO 2025-08-15 033744 info
k
A message from kapa.ai
Based on the logs you provided, the key line is:
Copy code
2025-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.
s
@kapa.ai But the connector works as custom connector but not working as marketplace why is that happening
k
A message from kapa.ai
When a connector works as a custom connector but fails as a Marketplace connector, it is often due to differences in how Airbyte handles these two types of connectors: 1. Configuration and Environment Differences: Custom connectors are fully controlled by you, including the image, configuration, and environment. Marketplace connectors, on the other hand, are maintained by the community and may have different requirements, dependencies, or expectations for configuration. If your custom connector works but the Marketplace version fails, it could be due to a mismatch in configuration, missing environment variables, or differences in how the connector is packaged or executed. 2. Support and Maintenance: Marketplace connectors are not maintained by Airbyte and do not have support SLAs. They may not be as stable or production-ready as Airbyte-maintained connectors or your own custom connector. Breaking changes or incomplete features are more common in Marketplace connectors, and they may not be updated as frequently or tested as thoroughly<sup>[Connector support levels](https://docs.airbyte.com/integrations/connector-support-levels)</sup>. 3. Version and Compatibility Issues: The version of the connector available in the Marketplace may differ from the one you use as a custom connector. There could be bugs or incompatibilities in the Marketplace version that are not present in your custom build, or vice versa. Sometimes, the way the connector is built or tagged (e.g., Docker image tags) can affect whether Airbyte accepts and runs it properly<sup>[Unable to add connector to UI: Get Spec Job Failed](https://github.com/airbytehq/airbyte/issues/12030)</sup>. 4. Connector Definition and Metadata: Marketplace connectors rely on metadata and mappings maintained by Airbyte. If there is a missing or incorrect mapping (such as a missing
definitionId
), 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.
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain specific information about the Outlook source connector or troubleshooting steps for issues unique to it. Therefore, I cannot give a detailed answer about why your Outlook connector works as a custom connector but not as a Marketplace connector. However, based on general patterns from the knowledge sources, common reasons for this type of issue include configuration mismatches, version differences, or missing metadata/mappings in the Marketplace connector. If you need further help, please provide more detailed logs or configuration details, or consider opening a GitHub issue for the Airbyte team to investigate. If you have questions about building or configuring custom connectors in general, or about Airbyte's connector development process, I can help with that using the available documentation.
s
@kapa.ai can you tell me what is jobId in connector defination ?
k
A message from kapa.ai
In Airbyte, the term jobId does not refer to anything specific within a connector definition itself. Instead, jobId is a unique identifier assigned to each job that Airbyte runs—such as sync, check, discover, or spec jobs. This ID is used to track and reference the execution of these jobs within the Airbyte platform and API. For example, when you trigger a sync or other operation, Airbyte creates a job and assigns it a jobId. This jobId is then used to monitor the job's status, retrieve logs, and get details about the job's execution. The connector definition (which describes the connector's image, configuration, and resource requirements) does not contain or define a **jobId**—it is purely an operational/runtime identifier generated by Airbyte for each job instance<sup>[Airbyte Public API - Jobs](https://raw.githubusercontent.com/airbytehq/airbyte-platform/f284238f0099c4c0a3542d4c42a88773c45c363d/airbyte-api/src/main/openapi/api.yaml)</sup>. If you are looking at a connector definition and see a reference to jobId, it is likely in the context of job execution logs or job tracking, not as a property of the connector definition itself.
s
@kapa.ai
Copy code
"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 defination
k
A message from kapa.ai
In the context of your example:
Copy code
json "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.
s
@kapa.ai how can i debug the issue where my source gets failed ?
k
A message from kapa.ai
To debug an issue where your source fails in Airbyte, follow these steps based on the knowledge sources: 1. Check the Logs: The most important step is to review the detailed logs for the failed job. You can access these logs from the Airbyte UI or by downloading them from the server or Docker container. The logs often contain error messages or stack traces that point to the root cause of the failure. For example, missing required fields, misconfiguration, or connector-specific errors will usually be logged here<sup>[Uncaught exception when configuring custom source connector](https://discuss.airbyte.io/t/1230)</sup>. 2. Review Error Messages in the UI: Airbyte surfaces error messages in the UI when a sync or connection fails. These messages can help you quickly identify configuration errors, rate limits, or system errors. For configuration errors, Airbyte recommends navigating to the related source or destination to re-test and save before attempting another sync<sup>[Review connection statuses](https://docs.airbyte.com/platform/cloud/managing-airbyte-cloud/review-connection-status#connection-troubleshooting)</sup>. 3. Test Configuration: Double-check your source configuration (credentials, host, port, etc.). Even small mistakes can cause failures. If the error is a configuration error, fix the configuration and re-test the connection. 4. Connector Version: Sometimes, issues are specific to certain connector versions. If you suspect a bug, try downgrading or upgrading the connector to see if the issue persists<sup>[source-mongodb] Discovering schema failed when creating new connection</sup>. 5. Resource and Environment Issues: Ensure your Airbyte deployment has enough resources (CPU, memory) and network access to the source. Resource constraints or network issues can cause jobs to fail or hang<sup>[Airbyte worker fails to spin up sync pods for source connectors](https://github.com/airbytehq/airbyte/issues/30727)</sup>. 6. Compare with Working Setups: If you have a custom connector that works, compare its configuration and environment with the failing Marketplace connector. Differences here can reveal the cause. 7. Community and GitHub Issues: If you cannot resolve the issue, search the [Airbyte GitHub issues](https://github.com/airbytehq/airbyte/issues) or [community forums](https://discuss.airbyte.io/) for similar problems. You can also open a new issue and include your logs and configuration for help. Tip: For custom connectors, make sure the stream names in your discover method match what Airbyte expects, as mismatches can cause failures<sup>[How to debug connections](https://discuss.airbyte.io/t/863)</sup>. If you provide specific error messages or logs, I can help you interpret them further.