# Query call with protocol GRPC search failed with message sendmsg: Socket operation on non-socket (88)

**URL:** <https://forum.weaviate.io/t/query-call-with-protocol-grpc-search-failed-with-message-sendmsg-socket-operation-on-non-socket-88/3414>\
**Category:** Support\
**Tags:** python\
**Created:** [August 21, 2024, 10:35am UTC](https://forum.weaviate.io/t/query-call-with-protocol-grpc-search-failed-with-message-sendmsg-socket-operation-on-non-socket-88/3414 "2024-08-21T10:35:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swetag](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@swetag](https://forum.weaviate.io/u/swetag)\
**Post date:** [August 21, 2024, 10:35am UTC](https://forum.weaviate.io/t/query-call-with-protocol-grpc-search-failed-with-message-sendmsg-socket-operation-on-non-socket-88/3414/1 "2024-08-21T10:35:46Z")

</div>

### Description

Hi,  
When the weaviate sever is deployed, in the first 15 minutes if we perform a hybrid search, we are getting this error from weaviate:

Traceback (most recent call last): File "/app/venv/lib/python3.10/site-packages/weaviate/collections/grpc/query.py", line 649, in \_\_call res, \_ = self.\_connection.grpc\_stub.Search.with\_call( File "/app/venv/lib/python3.10/site-packages/grpc/\_channel.py", line 1198, in with\_call return \_end\_unary\_response\_blocking(state, call, True, None) File "/app/venv/lib/python3.10/site-packages/grpc/\_channel.py", line 1006, in \_end\_unary\_response\_blocking raise \_InactiveRpcError(state) # pytype: disable=not-instantiable grpc.\_channel.\_InactiveRpcError: \<\_InactiveRpcError of RPC that terminated with: \tstatus = StatusCode.UNAVAILABLE \tdetails = "sendmsg: Socket operation on non-socket (88)" \tdebug\_error\_string = "UNKNOWN:  
Error  
received from peer {created\_time:"2024-08-21T10:04:43.533570886+00:00", grpc\_status:14, grpc\_message:"sendmsg: Socket operation on non-socket (88)"}" \>  
File "/app/venv/lib/python3.10/site-packages/weaviate/collections/queries/hybrid/query.py", line 105, in hybrid res = self.\_query.hybrid( File "/app/venv/lib/python3.10/site-packages/weaviate/collections/grpc/query.py", line 246, in hybrid return self.\_\_call(request) File "/app/venv/lib/python3.10/site-packages/weaviate/collections/grpc/query.py", line 658, in \_\_call raise WeaviateQueryError(e.details(), "GRPC search") # pyright: ignore weaviate. **exceptions**.WeaviateQueryError: Query call with protocol GRPC search failed with message sendmsg: Socket operation on non-socket (88).

This is getting resolved in next 15-20 minutes on its own but what is the reason for this error and how to resolve this?

I am getting error at this line :  
collection.query.hybrid(\*\*hybrid\_params).objects

This is how the client is created:  
weaviate\_connection\_config = AdditionalConfig(  
connection=ConnectionConfig(  
session\_pool\_connections=20,  
session\_pool\_maxsize=20,  
),  
timeout=(  
60,180),  
)  
client = weaviate.connect\_to\_custom(  
http\_host=url,  
http\_port=8080,  
http\_secure=False,  
grpc\_host=url,  
grpc\_port=50051,  
grpc\_secure=False,  
additional\_config=weaviate\_connection\_config,  
)

### Server Setup Information

- Weaviate Server Version: 1.23.7
- Deployment Method: docker
- Multi Node? Number of Running Nodes: 1
- Client Language and Version:4.6.5

TIA.

---

<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:** [August 21, 2024, 12:06pm UTC](https://forum.weaviate.io/t/query-call-with-protocol-grpc-search-failed-with-message-sendmsg-socket-operation-on-non-socket-88/3414/2 "2024-08-21T12:06:38Z")

</div>

hi @swetag !!

Do you see any logs in the server side?

Also, do you have any readings on resource and have you tweaked any of the parameters as stated in [Resource Planning](https://weaviate.io/developers/weaviate/concepts/resources)?

1.23.7 is fairly “old”. 😬

Is it possible to test this on latest version?

---

<div class="post-metadata">

**Author:** ![swetag](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@swetag](https://forum.weaviate.io/u/swetag)\
**Post date:** [August 22, 2024, 5:50am UTC](https://forum.weaviate.io/t/query-call-with-protocol-grpc-search-failed-with-message-sendmsg-socket-operation-on-non-socket-88/3414/3 "2024-08-22T05:50:44Z")

</div>

Hi @DudaNogueira,

1. No logs on the server side.
2. These are the resource related env variables for weaviate.  
LIMIT\_RESOURCES: true  
GOMEMLIMIT: 7680MiB  
QUERY\_MAXIMUM\_RESULTS: 1000000  
DISK\_USE\_READONLY\_PERCENTAGE: 95
3. I had to use this version because most of the 1.24.x, 1.25.x, 1.26.0 (all of which I tried) are leading me to [this](https://forum.weaviate.io/t/weaviate-not-backing-up-for-a-long-time/3116) issue, but 1.23.7 is not.  
Additionally, I was also getting the same behavior with 1.25.6

---

<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:** [August 22, 2024, 6:09pm UTC](https://forum.weaviate.io/t/query-call-with-protocol-grpc-search-failed-with-message-sendmsg-socket-operation-on-non-socket-88/3414/4 "2024-08-22T18:09:09Z")

</div>

Do you still have this kind of issue even when allocating more memory from the host?

Is this cluster exposed somehow, for example, using a load balancer, or is the client connecting directly to the server within the same docker network?
