"tcp4 0.0.0.0:2379: bind: address already in use" #35476
Replies: 5 comments 5 replies
-
Then I changed 2379 to 2381 in these two files:
And 2381 from the file standalone_embed.sh as below:
But it reports the same error, still 2379 in use. |
Beta Was this translation helpful? Give feedback.
-
try sudo netstat -tuln | grep :2379 to see which process used 2379 port. |
Beta Was this translation helpful? Give feedback.
-
@xiaofan-luan I can start the container correctly by using 'docker compose -f milvus-standalone-docker-compose.yml up -d'. That's the same thing as 'bash standalone_embed.sh start'. Is that right? If that's the case, my problem is solved. |
Beta Was this translation helpful? Give feedback.
-
@lingvisa Line 22 in 35cc7dd By default, milvus will try to connect etcd with port 2379:
The user.yaml allow you to change this value in milvus.yaml. Open the file standalone_embed.sh, we can see the first time it runs into the
If there is already a milvus-standalone container, this function will not be hit. So, we delete the milvus-standalone container firstly by this command: Then start a new container: Now we export the log of the new container: We will see this line in the log that means the port of the Etcd has been changed successfully: |
Beta Was this translation helpful? Give feedback.
-
@lingvisa Because you have installed milvus by DEB/RPM before, there is a milvus service running in the background. If you use a command So, if you want to install a new milvus by docker-compose, you need to stop the background milvus service. |
Beta Was this translation helpful? Give feedback.
-
I am using MacPro. I am following the instruction here to install Milvus:
https://milvus.io/docs/install_standalone-docker.md
But got this error message:
Then execute "sudo lsof -i :2379", but it returns nothing. Then I removed the 'milvus-standalone' from my Docker desktop, and then execute the command again, but received the same message. I then restarted my computer and deleted it again in my Docker containers but the issue remains.
I am attaching a screenshot for the container.
Beta Was this translation helpful? Give feedback.
All reactions