selenoid icon indicating copy to clipboard operation
selenoid copied to clipboard

[SERVICE_STARTUP_FAILED] [no bindings available for 4444/tcp]

Open Tarasovych opened this issue 1 year ago • 5 comments

Hi!

I'm trying to launch selenoid with selenoid-ui on arm arch (AWS).

I built selenoid and selenoid-ui binaries manually, also selenoid Docker image.

Selenoid was build with command

CGO_ENABLED=0 go build

Selenoid Dockerfile

FROM alpine:3

RUN apk add -U ca-certificates tzdata mailcap bash && rm -Rf /var/cache/apk/*

COPY selenoid /usr/bin/selenoid

EXPOSE 4444
ENTRYPOINT ["/usr/bin/selenoid", "-listen", ":4444", "-conf", "/etc/selenoid/browsers.json", "-video-output-dir", "/opt/selenoid/video/"]

was build using

docker build .

I used docker-compose from selenoid-ui: https://github.com/aerokube/selenoid-ui/blob/master/docker-compose.yml

docker-compose logs:

selenoid-ui-selenoid-1     | 2023/08/31 07:05:47 [-] [INIT] [Loading configuration files...]
selenoid-ui-selenoid-ui-1  | 2023/08/31 07:05:47 [INIT] [Listening on :8080]
selenoid-ui-selenoid-ui-1  | 2023/08/31 07:05:51 Client added. 1 registered clients
selenoid-ui-selenoid-1     | 2023/08/31 07:05:47 [-] [INIT] [Loaded configuration from /etc/selenoid/browsers.json]
selenoid-ui-selenoid-1     | 2023/08/31 07:05:47 [-] [INIT] [Video Dir: /opt/selenoid/video]
selenoid-ui-selenoid-1     | 2023/08/31 07:05:47 [-] [INIT] [Your Docker API version is 1.43]
selenoid-ui-selenoid-1     | 2023/08/31 07:05:47 [-] [INIT] [Timezone: UTC]
selenoid-ui-selenoid-1     | 2023/08/31 07:05:47 [-] [INIT] [Listening on :4444]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:00 [-] [NEW_REQUEST] [unknown] [10.1.2.152]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:00 [-] [NEW_REQUEST_ACCEPTED] [unknown] [10.1.2.152]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:00 [2] [LOCATING_SERVICE] [android] [10.0]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:00 [2] [USING_DOCKER] [android] [10.0]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:00 [2] [CREATING_CONTAINER] [myregistry/android:10.0-arm]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:00 [2] [STARTING_CONTAINER] [myregistry/android:10.0-arm] [1563641ee1fdb824f3b2da4cbe1fd8dccb83604d007a8cb24404db9d6738c22a]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:01 [2] [CONTAINER_STARTED] [myregistry/android:10.0-arm] [1563641ee1fdb824f3b2da4cbe1fd8dccb83604d007a8cb24404db9d6738c22a] [0.20s]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:01 [2] [REMOVING_CONTAINER] [1563641ee1fdb824f3b2da4cbe1fd8dccb83604d007a8cb24404db9d6738c22a]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:01 [2] [FAILED_TO_REMOVE_CONTAINER] [1563641ee1fdb824f3b2da4cbe1fd8dccb83604d007a8cb24404db9d6738c22a] [Error response from daemon: removal of container 1563641ee1fdb824f3b2da4cbe1fd8dccb83604d007a8cb24404db9d6738c22a is already in progress]
selenoid-ui-selenoid-1     | 2023/08/31 07:06:01 [2] [SERVICE_STARTUP_FAILED] [no bindings available for 4444/tcp]

browsers.json

          {
            "android": {
              "default": "10.0",
              "versions": {
                "10.0": {
                  "image": "myregistry/android:10.0-arm",
                  "port": "4444",
                  "path": "/wd/hub"
                }
              }
            }
          }

Any suggestions where should I take a look for debug? Thanks!

Tarasovych avatar Aug 31 '23 07:08 Tarasovych

hi @Tarasovych .. were you ever able to resolve this?

dempc6469 avatar Dec 13 '23 00:12 dempc6469

Hello, this way is wrong, your will never can build any soft for mac os in docker containers even running on arm64 architecture... because it is linux and not mac os... the only one possibility is to run virtual machine on docker with installed mac os, but this is breaks Apple license agreement...

ср, 13 дек. 2023 г., 03:21 dempc6469 @.***>:

hi @Tarasovych https://github.com/Tarasovych .. were you ever able to resolve this?

— Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/1370#issuecomment-1853069293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23JWTADKSYVST4APP2DYJDYJHAVCNFSM6AAAAAA4FUUXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTGA3DSMRZGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

aandryashin avatar Dec 13 '23 00:12 aandryashin

I was actually trying to run on a pi ... not a mac.

dempc6469 avatar Dec 13 '23 01:12 dempc6469

Ok, not all packages are available for raspberry pi, chromium, firefox and not google-chrome, please check it.

ср, 13 дек. 2023 г., 04:36 dempc6469 @.***>:

I was actually trying to run on a pi ... not a mac.

— Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/1370#issuecomment-1853127450, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23MUPTTIVFRJPD53C3LYJEBA7AVCNFSM6AAAAAA4FUUXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTGEZDONBVGA . You are receiving this because you commented.Message ID: @.***>

aandryashin avatar Dec 13 '23 01:12 aandryashin

Right. Understood and thank you for the quick reply!

On Tue, Dec 12, 2023 at 7:44 PM Alexander Andryashin < @.***> wrote:

Ok, not all packages are available for raspberry pi, chromium, firefox and not google-chrome, please check it.

ср, 13 дек. 2023 г., 04:36 dempc6469 @.***>:

I was actually trying to run on a pi ... not a mac.

— Reply to this email directly, view it on GitHub < https://github.com/aerokube/selenoid/issues/1370#issuecomment-1853127450>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AAKY23MUPTTIVFRJPD53C3LYJEBA7AVCNFSM6AAAAAA4FUUXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTGEZDONBVGA>

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/aerokube/selenoid/issues/1370#issuecomment-1853135782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAE7SQWHL2NHLESI6R5QYLYJEB6FAVCNFSM6AAAAAA4FUUXUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJTGEZTKNZYGI . You are receiving this because you commented.Message ID: @.***>

dempc6469 avatar Dec 13 '23 03:12 dempc6469

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[bot] avatar Mar 02 '24 01:03 github-actions[bot]