aerokube / ggr-ui

The missing /status API for Ggr
https://aerokube.com/ggr-ui/latest/
Apache License 2.0
39 stars 15 forks source link

Unable to connect to selenoid-ui , although test runs fine #32

Closed rohitpatwari84 closed 6 years ago

rohitpatwari84 commented 6 years ago

I am sure I am missing something , but dont know what . I am able to run my tests fine but cant see status on selenoid ui ..Seems ggr ui is unable to connect to selenoid.

This is my quota file -

<qa:browsers xmlns:qa="urn:config.gridrouter.qatools.ru">
<browser name="firefox" defaultVersion="45.0">
    <version number="58.0">
        <region name="1">
            <host name="localhost" port="4445" count="1"/>
        </region>
    </version>
</browser>
</qa:browsers>

My docker-compose looks like this-- version: '3' services: selenoid: network_mode: bridge image: aerokube/selenoid:latest-release volumes:

aandryashin commented 6 years ago

Is your quota file empty?

сб, 8 сент. 2018 г., 14:33 rohitpatwari84 notifications@github.com:

I am sure I am missing something , but dont know what . I am able to run my tests fine but cant see status on selenoid ui ..Seems ggr ui is unable to connect to selenoid.

This is my quota file -

My docker-compose looks like this-- version: '3' services: selenoid: network_mode: bridge image: aerokube/selenoid:latest-release volumes: - "/etc/selenoid:/etc/selenoid" - "/var/run/docker.sock:/var/run/docker.sock" - "/opt/selenoid/video:/opt/selenoid/video" - "./logs:/opt/selenoid/logs" environment: - OVERRIDE_VIDEO_OUTPUT_DIR=$PWD # - HTTP_PROXY="http://11.165.4.21:8080" # - HTTPS_PROXY="http://11.165.4.21:8080" #"-video-output-dir", "/opt/selenoid/video", command: ["-conf", "/etc/selenoid/browsers.json","-video-output-dir", "/opt/selenoid/video","-log-output-dir","/opt/selenoid/logs","-timeout","3m","sessionTimeout","2m"] ports: - "4445:4444" ggr-ui: image: "aerokube/ggr-ui:latest-release" network_mode: bridge ports: - "8888:8888" volumes: - "/etc/grid-router/quota:/etc/grid-router/quota:ro" selenoid-ui: image: "aerokube/selenoid-ui" network_mode: bridge links: - ggr-ui ports: - "9090:8080" environment: - DBUS_SESSION_BUS_ADDRESS=/dev/null #- HTTP_PROXY="http://11.165.4.21:8080" #- HTTPS_PROXY="http://11.165.4.21:8080" command: ["--selenoid-uri", "http://ggr-ui:8888"] — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .
rohitpatwari84 commented 6 years ago

No I have pasted the contents ..Here its is --

<qa:browsers xmlns:qa="urn:config.gridrouter.qatools.ru">
<browser name="firefox" defaultVersion="45.0">
    <version number="58.0">
        <region name="1">
            <host name="localhost" port="4445" count="1"/>
        </region>
    </version>
</browser>
</qa:browsers>

My selenoid is running on port 4445 .

aandryashin commented 6 years ago

localhost means containers localhost, you have to use host ip, host name, or use network mode host...

сб, 8 сент. 2018 г., 14:53 rohitpatwari84 notifications@github.com:

No I have pasted the contents ..Here its is --

— You are receiving this because you commented. Reply to this email directly, view it on GitHub , or mute the thread .
rohitpatwari84 commented 6 years ago

ahh..I tried that earlier..but I was appending http:// . So after removing http , it worked . Thanks @aandryashin (Alex) !!!