# Trouble Batch Inserting Records Using Langchain w/ Weaviate

**URL:** <https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124>\
**Category:** Support\
**Created:** [July 22, 2024, 10:01pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124 "2024-07-22T22:01:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhanshew72](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dhanshew72/32/1809_2.png) [@dhanshew72](https://forum.weaviate.io/u/dhanshew72)\
**Post date:** [July 22, 2024, 10:01pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124/1 "2024-07-22T22:01:13Z")

</div>

### Description

I get the following error message running a batch job to load records into my Weaviate nodes.

```auto
Reason: local index "<INDEX_NAME>" not found: deadline exceeded for waiting for update: version got=0 want=64

```

After doing some digging I found this on my node:

```auto
{"got":0,"level":"debug","msg":"wait for update version","time":"2024-07-22T21:49:57Z","want":64}

```

Any ideas what could be causing this?

### Server Setup Information

- Weaviate Server Version: 1.25.8
- Deployment Method: Docker on AWS ECS using Fargate
- Multi Node? Number of Running Nodes: 2
- Client Language and Version: Python 4.6.5
- Multitenancy?: Yes

---

<div class="post-metadata">

**Author:** ![dhanshew72](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dhanshew72/32/1809_2.png) [@dhanshew72](https://forum.weaviate.io/u/dhanshew72)\
**Post date:** [July 22, 2024, 10:22pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124/2 "2024-07-22T22:22:14Z")

</div>

Oh, had to increase my timeout time for this. Here’s the config I ended up using:

```auto
weaviate.config.AdditionalConfig(
            timeout=weaviate.config.Timeout(init=30, query=60, insert=120)
        )

```

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [July 24, 2024, 2:07pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124/3 "2024-07-24T14:07:14Z")

</div>

Hi!

Can you share the docker compose you have used?

Also, for multi node, it is best to have at least 3 nodes. 🤔

---

<div class="post-metadata">

**Author:** ![dhanshew72](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dhanshew72/32/1809_2.png) [@dhanshew72](https://forum.weaviate.io/u/dhanshew72)\
**Post date:** [July 24, 2024, 4:17pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124/4 "2024-07-24T16:17:19Z")

</div>

I’m using Services and Task Definitions on AWS ECS so it’s a bit tricky to mimic a Docker compose. I’ll increase the nodes to 3 based on recommendation, but what is the benefit of doing that?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [July 24, 2024, 9:14pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124/5 "2024-07-24T21:14:00Z")

</div>

Hi!

It should show on logs, but if not properly configured, it may have a hard time defining the leader in the cluster:

> **[Cluster Architecture | Weaviate - Vector Database](https://weaviate.io/developers/weaviate/concepts/replication-architecture/cluster-architecture)**
>
> This page describes how the nodes or clusters in Weaviate's replication design behave.

However, not sure it would produce the symptoms you had, but wouldn’t work at all.

---

<div class="post-metadata">

**Author:** ![dhanshew72](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dhanshew72/32/1809_2.png) [@dhanshew72](https://forum.weaviate.io/u/dhanshew72)\
**Post date:** [July 24, 2024, 9:31pm UTC](https://forum.weaviate.io/t/trouble-batch-inserting-records-using-langchain-w-weaviate/3124/6 "2024-07-24T21:31:16Z")

</div>

Perfect, I’ll dig in and read.
