healenium / healenium-example-python

Apache License 2.0
8 stars 7 forks source link

[BUG]: Port is already allocated #14

Open lucielavickova-tesena opened 1 year ago

lucielavickova-tesena commented 1 year ago

Describe the bug

When trying to run healenium with selenoid (following the instructions in readme of this project), I am getting error "Bind for 0.0.0.0:4444 failed: port is already allocated"

How to reproduce the issue

following the instructions in readme of this project:
Run healenium with Selenoid:
docker-compose -f docker-compose-selenoid.yaml up -d)

Logs appeared during using Healenium

docker-compose -f docker-compose-selenoid.yaml up -d
WARNING: Found orphan containers (node-chrome, node-edge, selenium-hub, node-firefox) for this project. If you removed or renamed this service in your compose file, you can run this comma
nd with the --remove-orphans flag to clean it up.
Pulling selenoid (aerokube/selenoid:latest-release)...
latest-release: Pulling from aerokube/selenoid
31e352740f53: Already exists
4d9654089ec8: Pull complete
d60fe17e67be: Pull complete
Digest: sha256:2f62d39768cb0e5f97eb136e96cd383ffd9e4b609bef7660fc1b9ae07b015f2d
Status: Downloaded newer image for aerokube/selenoid:latest-release
Pulling selenoid-ui (aerokube/selenoid-ui:latest-release)...
latest-release: Pulling from aerokube/selenoid-ui
74bfd01d31d7: Pull complete
8542b775495f: Pull complete
622c7898b7a7: Pull complete
Digest: sha256:15d6460288d58930e05bfe3b12add41bf51053bd2c366ad2af94861eea04bc25
Status: Downloaded newer image for aerokube/selenoid-ui:latest-release
Recreating hlm-proxy ... 
selector-imitator is up-to-date
postgres-db is up-to-date
healenium is up-to-date
Creating healenium_selenoid-ui_1 ... 
Creating healenium_selenoid_1    ...
Creating healenium_selenoid_1    ... error
Recreating hlm-proxy             ... done
Creating healenium_selenoid-ui_1 ... done
5c00baffc95f9f917423ab3): Bind for 0.0.0.0:4444 failed: port is already allocated

ERROR: for selenoid  Cannot start service selenoid: driver failed programming external connectivity on endpoint healenium_selenoid_1 (9a8ca0530bbb938b00fe4448f21546e3d86ed6bdc5c00baffc95f
9f917423ab3): Bind for 0.0.0.0:4444 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

Expected behavior

tests starting

Actual behavior

error "Bind for 0.0.0.0:4444 failed: port is already allocated"

Healenium Proxy version

1.3.5

Healenium Backend version

3.4.0

Selenium version

No response

Additional context

No response

Alex-Reif commented 10 months ago

Hi @lucielavickova-tesena , It means you have other open process on the port 4444. Kindly kill the process and start docker compose again

lucielavickova-tesena commented 5 months ago

it helped, thank you