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

[Can't get status: Get "http://selenoid:4444/status": context deadline exceeded] #1135

Closed
VinothMessi opened this issue Aug 21, 2021 · 30 comments
Labels

Comments

@VinothMessi
Copy link

image

It was working perfectly few days back, suddenly started receiving the above error

@VinothMessi
Copy link
Author

My docker-compose:
image

browsers.json:
image

@vania-pooh
Copy link
Member

@VinothMessi your container name is not selenoid, so --selenoid-uri should use correct value.

@VinothMessi
Copy link
Author

Just took it from Selenoid official website:

image

@VinothMessi
Copy link
Author

Its shows like this in the UI:

image

@vania-pooh
Copy link
Member

@VinothMessi your container name is different than selenoid. Sometimes just restarting Docker helps.

@VinothMessi
Copy link
Author

I even matched the container name, restarted docker... everything i have tried. Just last week it was working perfectly

image

@vania-pooh
Copy link
Member

@VinothMessi please don't use aerokube/selenoid-ui:latest image. Replace with aerokube/selenoid-ui:1.10.3 or aerokube/selenoid-ui:latest-release (latest release).

@VinothMessi
Copy link
Author

I tried it all, the issue remains the same. Am following whatever is given in Selenoid website, but its not working

But am sure it happening only recently, everything was working just days before

@vania-pooh
Copy link
Member

@VinothMessi could be also caused by Docker update. We previously seen such issues in some Docker releases.

@VinothMessi
Copy link
Author

AH... just updated my docker recently, so how to overcome it?

@vania-pooh
Copy link
Member

@VinothMessi either downgrade or wait for the new release. Probably switching to edge Docker version could help.

@VinothMessi
Copy link
Author

I updated to the new docker release and the same issue is persisting :(

Any way to over come it? tried everything that was mentioned :(

@VinothMessi
Copy link
Author

Docker-compose file to start the selenoid service:
image

Then run the selenoid-ui container from terminal:
docker run -d --name selenoid-ui --link selenoid -p 8090:8080 aerokube/selenoid-ui:latest-release --selenoid-uri=http://selenoid:4444

Then it works perfectly fine

only when i put together inside compose file issue comes up

Tried everything, so only when trying from compose this issue is there

@aandryashin
Copy link
Member

aandryashin commented Sep 2, 2021 via email

@VinothMessi
Copy link
Author

Tried that also, created a network named Selenoid and linked both the Selenoid containers to it

image

image

Still no use

@kim-andrew-v
Copy link

I had different issue with connection between selenoid and selenoid-ui

I found that in my docker desktop settings
checkbox "Use Docker Compose V2 release candidate" was enabled

IMAGE 2021-09-03 10:12:55

When i disabled it everything went smooth as before. I hope it'll help.

@VinothMessi
Copy link
Author

Its already disabled for me :(

Which version of docker you using? am using the latest one : Docker version 20.10.8, build 3967b7d (updated it yesterday)

@kim-andrew-v
Copy link

➜ ~ docker --version
Docker version 20.10.8, build 3967b7d
➜ ~ docker-compose --version
docker-compose version 1.29.2, build 5becea4c

@VinothMessi
Copy link
Author

Can you share me your compose file?

this is what am using:
image

@kim-andrew-v
Copy link

Sure thing
Screenshot 2021-09-03 at 11 31 14

@VinothMessi
Copy link
Author

Found what was causing the issue, in the command i had "-video-recorder-image", "selenoid/video-recorder:7.1"
once i removed it is working file

Sorry, just a question in you compose you have a

volumes:
allure-results:
local: driver

you never used it : may i know the purpose? ad how to map the absolute path?

@jimbalatero
Copy link

jimbalatero commented Sep 19, 2021

I had different issue with connection between selenoid and selenoid-ui

I found that in my docker desktop settings
checkbox "Use Docker Compose V2 release candidate" was enabled

IMAGE 2021-09-03 10:12:55

When i disabled it everything went smooth as before. I hope it'll help.

This worked for me as well. Thanks

@Amraneze
Copy link

I have the same issue. Here is my docker compose file

version: "3"
services:
  selenoid:
    image: "aerokube/selenoid:latest-release"
    container_name: selenoid
    ports:
      - "4444:4444"
    network_mode: bridge
    volumes:
      - "./selenoid:/etc/selenoid"
      - "./selenoid-outputs/output/:/output"
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "./selenoid-outputs/video:/opt/selenoid/video"
      - "./selenoid-outputs/logs:/opt/selenoid/logs"
    environment:
      - "OVERRIDE_VIDEO_OUTPUT_DIR=$PWD/selenoid-outputs/video"
    command: [
        "-conf",
        "/etc/selenoid/browsers.json",
        "-video-output-dir",
        "/opt/selenoid/video",
        "-log-output-dir",
        "/opt/selenoid/logs",
        "-limit",
        "5",
        "-save-all-logs",
        "-enable-file-upload",
      ]

  selenoid-video-recorder:
    image: selenoid/video-recorder:latest-release

  selenoid-ui:
    image: "aerokube/selenoid-ui:latest-release"
    container_name: selenoid-ui
    links:
      - selenoid
    ports:
      - "8080:8080"
    network_mode: bridge
    command: ["--selenoid-uri", "http://selenoid:4444"]

When I ran the command docker compose up I get this error [Can't get status: Get "http://selenoid:4444/status"]

Here are docker & docker compose versions:

image
image

When I run docker compose with a new network it works but chrome can't access to my angular project. I'm getting

image

@vania-pooh
Copy link
Member

@Amraneze you can use aliases like docker.for.win.localhost or docker.for.mac.localhost to access host machine services.

@Amraneze
Copy link

@Amraneze you can use aliases like docker.for.win.localhost or docker.for.mac.localhost to access host machine services.

It didn't help. I got cannot resolve host

@vania-pooh
Copy link
Member

vania-pooh commented Nov 24, 2021

@Amraneze one more candidate is host.docker.internal.

@tnypxl
Copy link

tnypxl commented Nov 29, 2021

I am having this same issue and none of the above steps help.

@lorsatti
Copy link

lorsatti commented Jul 26, 2022

I had the same issue today, using a newly reimaged VM. Only thing that helped for me was moving from docker-compose v2 to the latest docker-compose v1. After that I noticed that the starting order is different in v2, so probably it could be a bug.

UPDATE: After that, I saw this fix. So it would probably work again with v2.6.1. I didn't try it, though.

@Oleborn
Copy link

Oleborn commented Dec 20, 2023

Была такая ошибка - selenoid Can't get status: context deadline exceeded
помогло добавление в selenoid-ui
links:
- selenoid

Copy link

github-actions bot commented Mar 2, 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.

@github-actions github-actions bot added the stale label Mar 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants