Hello, guys. Currently I'm facing an issue while t...
# replication-troubleshooting
r
Hello, guys. Currently I'm facing an issue while trying to build the connection shown in this tutorial, where I get a Broken Pipe with not many further details during the replication phase. Also, is there a way to find Pinecone's environment value as of today? The interface for their indexes' information changed and no longer includes such a field, which is required on Airbyte's destination, although the initial test to check if Pinecone is working seems to be successful. I don't know exactly what the source of this issue I'm facing, but since I get some logs with a generic Destination Writer error, the mismatch on this env value could be the culprit. The error logs start like this: replication-orchestrator INFO Stream status TRACE received of status: STARTED for stream issues replication-orchestrator INFO Sending update for issues - null -> RUNNING replication-orchestrator INFO Stream Status Update Received: issues - RUNNING replication-orchestrator INFO Creating status: issues - RUNNING replication-orchestrator INFO Stream status TRACE received of status: RUNNING for stream issues replication-orchestrator INFO Workload successfully transitioned to running state destination INFO Writing complete. replication-orchestrator ERROR DestinationWriter error: replication-orchestrator ERROR DestinationWriter error: replication-orchestrator INFO DestinationReader finished. replication-orchestrator WARN Attempted to close a destination which is already closed. replication-orchestrator INFO DestinationWriter finished. replication-orchestrator INFO MessageProcessor finished. replication-orchestrator ERROR SourceReader error: replication-orchestrator INFO SourceReader finished. replication-orchestrator ERROR runJobs failed; recording failure but continuing to finish. replication-orchestrator INFO Closing StateCheckSumCountEventHandler
k
Based on your description and the provided logs, the "Broken pipe" and generic "DestinationWriter error" during the replication phase are common symptoms in Airbyte when the destination connector process terminates unexpectedly or when there is a misconfiguration, especially with vector database destinations like Pinecone. ### Pinecone Environment Value Regarding the Pinecone environment value: Recent changes in the Pinecone UI have made it harder to find the environment string, but Airbyte's Pinecone destination still requires it. The documentation and tutorials reference the need for this value (e.g.,
us-west1-gcp
), which used to be visible in the Pinecone dashboard under API Keys or index details. If the UI no longer displays this, you may need to refer to Pinecone's [official documentation](https://docs.pinecone.io/reference/architecture/serverless-architecture) or contact Pinecone support for the current method to retrieve the environment value. This is a known pain point, as highlighted in [this issue](https://github.com/airbytehq/airbyte/issues/36817), where users reported the environment field missing after Pinecone's move to serverless architecture. If you use the wrong or a blank environment value, the Airbyte destination may pass the initial connection test but fail during actual data replication, which matches your experience. ### Broken Pipe / DestinationWriter Error The "Broken pipe" error is a generic I/O error that can occur for several reasons, but in the context of Airbyte and Pinecone, it is often related to: - Misconfiguration of required fields (such as the environment value) - The destination process exiting due to an unhandled error (e.g., API authentication failure, index not found, or schema mismatch) - The Python destination not fully supporting the latest Airbyte protocol features, which can cause the orchestrator to report errors even if some data is written (see [this discussion](https://github.com/airbytehq/airbyte/issues/55697)) ### What You Can Do 1. Double-check the Pinecone environment value. If you cannot find it in the UI, try using the region string you used when creating the index (e.g.,
us-west1-gcp
for classic deployments). For serverless, the value may differ or not be required, but Airbyte currently expects it. If you are stuck, reach out to Pinecone support or check their latest documentation. 2. Ensure all other configuration values are correct: - Pinecone API Key - Pinecone Index Name - Embedding service API Key (OpenAI or Cohere) - Index dimensionality (should be 1536 for OpenAI embeddings) 3. Check for connector updates: The Pinecone destination has had several updates to support new Pinecone features and fix bugs. Make sure you are using the latest version, as recent releases have improved compatibility and error handling [Pinecone Changelog](https://docs.airbyte.com/integrations/destinations/pinecone#changelog). 4. Review Airbyte logs for more details: Sometimes, the root cause is logged just before the "Broken pipe" error. Look for authentication errors, 404s, or schema mismatches. 5. Known limitations: - Deleting records via CDC is not supported. - Some features may not work with Python-based destinations until protocol updates are fully adopted [Python CDK issue](https://github.com/airbytehq/airbyte/issues/55697). ### Summary Your suspicion about the environment value is valid—misconfiguration here is a likely culprit. If you cannot retrieve the environment value from Pinecone's UI, this is a known issue and may require a workaround or support from Pinecone. The "Broken pipe" error is a downstream effect of the destination process failing, often due to such misconfigurations. If you need further help, please provide the exact Pinecone deployment type (classic or serverless) and any additional error logs you see before the "Broken pipe" message. References: - [Airbyte Pinecone Destination Docs](https://docs.airbyte.com/integrations/destinations/pinecone) - [Airbyte Pinecone Tutorial](https://airbyte.com/tutorials/chat-with-your-data-using-openai-pinecone-airbyte-and-langchain) - [Pinecone Serverless Issue](https://github.com/airbytehq/airbyte/issues/36817) - [Python CDK Destination Issues](https://github.com/airbytehq/airbyte/issues/55697)