Mintplex-Labs/anything-llm · error · Error

Pinecone::Index not ready.

Error message

Pinecone::Index not ready.

What it means

Readiness guard in PineconeDB.connect: describeIndex reported status.ready as false, so the configured Pinecone index exists but is still initializing or in an error state and cannot accept vector operations yet.

Source

Thrown at server/utils/vectorDbProviders/pinecone/index.js:30

    super();
  }

  get name() {
    return "Pinecone";
  }

  async connect() {
    if (process.env.VECTOR_DB !== "pinecone")
      throw new Error("Pinecone::Invalid ENV settings");

    const client = new Pinecone({
      apiKey: process.env.PINECONE_API_KEY,
    });

    const pineconeIndex = client.Index(process.env.PINECONE_INDEX);
    const { status } = await client.describeIndex(process.env.PINECONE_INDEX);

    if (!status.ready) throw new Error("Pinecone::Index not ready.");
    return { client, pineconeIndex, indexName: process.env.PINECONE_INDEX };
  }

  async totalVectors() {
    const { pineconeIndex } = await this.connect();
    const { namespaces } = await pineconeIndex.describeIndexStats();

    return Object.values(namespaces).reduce(
      (a, b) => a + (b?.recordCount || 0),
      0
    );
  }

  async namespaceCount(_namespace = null) {
    const { pineconeIndex } = await this.connect();
    const namespace = await this.namespace(pineconeIndex, _namespace);
    return namespace?.recordCount || 0;
  }

View on GitHub (pinned to 3aec848f28)

Solutions

  1. Wait for the Pinecone index to finish provisioning and retry.
  2. Check the index status in the Pinecone console.
Defensive patterns

Strategy: retry

When it happens

Trigger: The Pinecone index is not in a ready state.

Common situations: This error is raised at runtime in server/utils/vectorDbProviders/pinecone/index.js. It occurs when the required configuration for this provider is missing or invalid (unset environment variables, empty API key or base path), when the external service is unreachable or returns an unexpected response, or when invalid input reaches the call site. To prevent it, validate the relevant provider settings and environment variables at startup and confirm the service is reachable before this code path executes.


AI-assisted analysis of Mintplex-Labs/anything-llm@3aec848f28 (2026-08-18). Data as JSON: /api/errors/d84b6d873335e7e5. Report an issue: GitHub.