Tauffer-Consulting / domino

User friendly and open source platform for workflow creation and monitoring
https://domino-workflows.io/
Apache License 2.0
151 stars 14 forks source link

Bind for 0.0.0.0:2376 failed: port is already allocated #308

Open loretoparisi opened 2 weeks ago

loretoparisi commented 2 weeks ago

Version

domino, version 0.9.4

Platform

x86_64 #1 SMP Tue Jun 18 14:00:06 UTC 2024 x86_64 GNU/Linux

Docker version

Docker version 20.10.9, build c2ea9bc

Kubernetes version

Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.16"

Describe the bug.

docker compose up fails due to port binding 0.0.0.0:2376 error of domino proxy. Using netstat -lnp I do not see that binding for 0.0.0.0:2376 was up before

What steps will reproduce the bug?

No response

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

WARN[0000] The "DOMINO_COMPOSE_DEV" variable is not set. Defaulting to a blank string. 
WARN[0000] The "AIRFLOW_UID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "AIRFLOW_UID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DOMINO_DEFAULT_PIECES_REPOSITORY_TOKEN" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DOMINO_CREATE_DEFAULT_USER" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DOMINO_COMPOSE_DEV" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DOMINO_COMPOSE_DEV" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DOMINO_COMPOSE_DEV" variable is not set. Defaulting to a blank string. 
[+] Running 12/13
 ⠿ Network domino_domino-postgres-network  Created                                                                                                               0.0s
 ⠿ Network domino_default                  Created                                                                                                               0.0s
 ⠿ Container domino-postgres               Started                                                                                                               1.0s
 ⠿ Container airflow-redis                 Started                                                                                                               0.7s
 ⠿ Container domino-docker-proxy           Starting                                                                                                             30.4s
 ⠿ Container airflow-postgres              Started                                                                                                               2.0s
 ⠿ Container domino-rest                   Started                                                                                                              11.8s
 ⠿ Container airflow-init                  Started                                                                                                              13.2s
 ⠿ Container airflow-domino-worker         Started                                                                                                              30.3s
 ⠿ Container airflow-domino-scheduler      Started                                                                                                              28.3s
 ⠿ Container airflow-triggerer             Started                                                                                                              28.1s
 ⠿ Container airflow-webserver             Started                                                                                                              29.3s
 ⠿ Container domino-frontend               Started                                                                                                              13.0s
Error response from daemon: driver failed programming external connectivity on endpoint domino-docker-proxy: Bind for 0.0.0.0:2376 failed: port is already allocated

Additional information

No response

vinicvaz commented 1 day ago

@loretoparisi really sorry for the late response. Can you share your docker ps command and also check what process are running in the port :2376 ? You can check it running this: sudo lsof -i :2376 This error indicates a port binding conflict in the docker-proxy, which is trying to use your host port of number 2376. I don't think we have a way to change what port to use when running with the Domino CLI. But if you need to change this port you can run Domino using the dev compose. To change the host port you just need to edit this line https://github.com/Tauffer-Consulting/domino/blob/0b00c406425ab7274453dae12fa0495bc28882fd/docker-compose-dev.yaml#L377 To something like:

- "YOUR HOST PORT:2375"

Thanks