Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: illegal connection params or server unavailable #36663

Open
1 task done
magallardo opened this issue Oct 7, 2024 · 4 comments
Open
1 task done

[Bug]: illegal connection params or server unavailable #36663

magallardo opened this issue Oct 7, 2024 · 4 comments
Assignees
Labels
kind/bug Issues or changes related a bug stale indicates no udpates for 30 days triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@magallardo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: 2.4.x
- Deployment mode(standalone or cluster): Docker
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): langchain-milvus 0.1.5
- OS(Ubuntu or CentOS): Docker
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

When I try to connect, I get the following error

2024-10-07 12:06:00 vectorDB = Milvus(
2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 326, in init
2024-10-07 12:06:00 self.alias = self._create_connection_alias(connection_args)
2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 410, in _create_connection_alias
2024-10-07 12:06:00 raise e
2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/langchain_milvus/vectorstores/milvus.py", line 405, in _create_connection_alias
2024-10-07 12:06:00 connections.connect(alias=alias, **connection_args)
2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/pymilvus/orm/connections.py", line 449, in connect
2024-10-07 12:06:00 connect_milvus(**kwargs, user=user, password=password, token=token, db_name=db_name)
2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/pymilvus/orm/connections.py", line 400, in connect_milvus
2024-10-07 12:06:00 gh._wait_for_channel_ready(timeout=timeout)
2024-10-07 12:06:00 File "/usr/local/lib/python3.10/site-packages/pymilvus/client/grpc_handler.py", line 150, in _wait_for_channel_ready
2024-10-07 12:06:00 raise MilvusException(
2024-10-07 12:06:00 pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on 76.208.102.187:19530, illegal connection params or server unavailable)>

Expected Behavior

Successful connection

Steps To Reproduce

vector_store_loaded = Milvus(
    embeddings,
    connection_args={"uri": URI},
    collection_name="langchain_example",
)

Milvus Log

milvus.log

Anything else?

No response

@magallardo magallardo added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 7, 2024
@yanliang567
Copy link
Contributor

did not find any unexpected info in the logs. @congqixia could you please help to double check it?

/assign @congqixia
/unassign

@sre-ci-robot sre-ci-robot assigned congqixia and unassigned yanliang567 Oct 8, 2024
@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Oct 8, 2024
@congqixia
Copy link
Contributor

From the information provided, are you trying to connect milvus with langchain-milvus? Did you try using vanilla milvus pymilvus sdk?

@zc277584121
Copy link

hi, @magallardo Is your pymilvus version == v2.0.0rc2 ? maybe it is a little bit old for langchain_milvus. and after you upgrade your pymilvus version, can you try this code snippet

from pymilvus import MilvusClient
URI = "http://76.208.102.187:19530" # your uri
milvus_client = MilvusClient(uri=URI)

then try your langchain milvus code

vector_store_loaded = Milvus(
    embeddings,
    connection_args={"uri": URI},
    collection_name="langchain_example",
)

Copy link

stale bot commented Nov 10, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

@stale stale bot added the stale indicates no udpates for 30 days label Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug stale indicates no udpates for 30 days triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants