Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Bug: Selenoid/chrome 119.0/120.0 failing on init a new session #660

Closed
jesinnott opened this issue Jan 8, 2024 · 2 comments
Closed

Bug: Selenoid/chrome 119.0/120.0 failing on init a new session #660

jesinnott opened this issue Jan 8, 2024 · 2 comments

Comments

@jesinnott
Copy link

jesinnott commented Jan 8, 2024

Hello Team,

I'm encountering an issue with the latest Chrome images (119.0 and 120.0). The tests fail both locally and in a CI environment. Below, you'll find information about the error and logs:

Setup

  • Local setup: MacOS (Intel)
  • Selenoid version: aerokube/selenoid:1.11.1
  • Selenoid UI version: aerokube/selenoid:1.11.1
  • Launch parameters: cm selenoid start --force --browsers 'chrome' --last-versions 4 (using 'force' since an older version was downloaded)
  • Failing on: selenoid/chrome:119.0 AND selenoid/chrome:120.0
  • Working on selenoid/chrome:118.0 AND older versions. Also working fine with selenoid/firefox even on latest versions

Steps to reproduce

  • I am using wdio v7 but I also tested it using a manual session with Selenoid UI
  • Curl request (browserVersion could be either 119.0 or 120.0):
curl -H'Content-Type: application/json' http://localhost:4444/wd/hub/session -d'{
    "capabilities": {
        "alwaysMatch": {
            "browserName": "chrome",
            "browserVersion": "120.0",
            "selenoid:options": {
                "name": "Session started using curl command...",
                "sessionTimeout": "1m"
            }
        }
    }
}'

Request Payload
{"desiredCapabilities":{"browserName":"chrome","version":"120.0","enableVNC":true,"labels":{"manual":"true"},"sessionTimeout":"60m","name":"Manual session"},"capabilities":{"alwaysMatch":{"browserName":"chrome","browserVersion":"120.0","selenoid:options":{"enableVNC":true,"sessionTimeout":"60m","labels":{"manual":"true"}}},"firstMatch":[{}]}}

Status Code: 500 Internal Server Error

Response

{
    "value": {
        "error": "disconnected",
        "message": "disconnected: Unable to receive message from renderer\n  (failed to check if window was closed: disconnected: not connected to DevTools)\n  (Session info: chrome=120.0.6099.129)",
        "stacktrace": "#0 0x564253d43f83 \u003cunknown\u003e\n#1 0x5642539fccf7 \u003cunknown\u003e\n#2 0x5642539e27a1 \u003cunknown\u003e\n#3 0x5642539e07e1 \u003cunknown\u003e\n#4 0x5642539e118a \u003cunknown\u003e\n#5 0x5642539fda25 \u003cunknown\u003e\n#6 0x5642539cfc7a \u003cunknown\u003e\n#7 0x5642539cf5f8 \u003cunknown\u003e\n#8 0x564253a81a4a \u003cunknown\u003e\n#9 0x564253a75e53 \u003cunknown\u003e\n#10 0x564253a3ddd4 \u003cunknown\u003e\n#11 0x564253a3f1de \u003cunknown\u003e\n#12 0x564253d08531 \u003cunknown\u003e\n#13 0x564253d0c455 \u003cunknown\u003e\n#14 0x564253cf4f55 \u003cunknown\u003e\n#15 0x564253d0d0ef \u003cunknown\u003e\n#16 0x564253cd899f \u003cunknown\u003e\n#17 0x564253d31008 \u003cunknown\u003e\n#18 0x564253d311d7 \u003cunknown\u003e\n#19 0x564253d43124 \u003cunknown\u003e\n#20 0x7f776345aac3 \u003cunknown\u003e\n"
    }
}

Container Logs

2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Loading configuration files...]
2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Loaded configuration from /etc/selenoid/browsers.json]
2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Video Dir: /opt/selenoid/video]
2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Logs Dir: /opt/selenoid/logs]
2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Using Docker API version: 1.43]
2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Timezone: UTC]
2024-01-07 20:57:41 2024/01/07 23:57:41 [-] [INIT] [Listening on :4444]
2024-01-07 20:58:11 2024/01/07 23:58:11 [-] [NEW_REQUEST] [unknown] [192.168.65.1]
2024-01-07 20:58:11 2024/01/07 23:58:11 [-] [NEW_REQUEST_ACCEPTED] [unknown] [192.168.65.1]
2024-01-07 20:58:11 2024/01/07 23:58:11 [4] [LOCATING_SERVICE] [chrome] [120.0]
2024-01-07 20:58:11 2024/01/07 23:58:11 [4] [USING_DOCKER] [chrome] [120.0]
2024-01-07 20:58:11 2024/01/07 23:58:11 [4] [CREATING_CONTAINER] [selenoid/chrome:120.0]
2024-01-07 20:58:11 2024/01/07 23:58:11 [4] [STARTING_CONTAINER] [selenoid/chrome:120.0] [5789712e27bc2e105ede3b4db6f9d545cbf36a753b2fb808adeed556360b930b]
2024-01-07 20:58:11 2024/01/07 23:58:11 [4] [CONTAINER_STARTED] [selenoid/chrome:120.0] [5789712e27bc2e105ede3b4db6f9d545cbf36a753b2fb808adeed556360b930b] [0.35s]
2024-01-07 20:58:12 2024/01/07 23:58:12 [4] [SERVICE_STARTED] [selenoid/chrome:120.0] [5789712e27bc2e105ede3b4db6f9d545cbf36a753b2fb808adeed556360b930b] [0.82s]
2024-01-07 20:58:12 2024/01/07 23:58:12 [4] [PROXY_TO] [5789712e27bc2e105ede3b4db6f9d545cbf36a753b2fb808adeed556360b930b] [http://172.18.0.4:4444/]
2024-01-07 20:58:12 2024/01/07 23:58:12 [4] [SESSION_ATTEMPTED] [http://172.18.0.4:4444/] [1]
2024-01-07 20:58:13 2024/01/07 23:58:13 [4] [SESSION_FAILED] [http://172.18.0.4:4444/] [500 Internal Server Error]
2024-01-07 20:58:13 2024/01/07 23:58:13 [4] [REMOVING_CONTAINER] [5789712e27bc2e105ede3b4db6f9d545cbf36a753b2fb808adeed556360b930b]
2024-01-07 20:58:13 2024/01/07 23:58:13 [4] [CONTAINER_REMOVED] [5789712e27bc2e105ede3b4db6f9d545cbf36a753b2fb808adeed556360b930b]
2024-01-07 20:58:20 2024/01/07 23:58:20 [-] [NEW_REQUEST] [unknown] [192.168.65.1]
2024-01-07 20:58:20 2024/01/07 23:58:20 [-] [NEW_REQUEST_ACCEPTED] [unknown] [192.168.65.1]
2024-01-07 20:58:20 2024/01/07 23:58:20 [7] [LOCATING_SERVICE] [chrome] [119.0]
2024-01-07 20:58:20 2024/01/07 23:58:20 [7] [USING_DOCKER] [chrome] [119.0]
2024-01-07 20:58:20 2024/01/07 23:58:20 [7] [CREATING_CONTAINER] [selenoid/chrome:119.0]
2024-01-07 20:58:20 2024/01/07 23:58:20 [7] [STARTING_CONTAINER] [selenoid/chrome:119.0] [afc53d12164aa5de1c61eecb8f9a9ed1a83e6ef63573d3c26c6fcebccd4b1807]
2024-01-07 20:58:20 2024/01/07 23:58:20 [7] [CONTAINER_STARTED] [selenoid/chrome:119.0] [afc53d12164aa5de1c61eecb8f9a9ed1a83e6ef63573d3c26c6fcebccd4b1807] [0.31s]
2024-01-07 20:58:21 2024/01/07 23:58:21 [7] [SERVICE_STARTED] [selenoid/chrome:119.0] [afc53d12164aa5de1c61eecb8f9a9ed1a83e6ef63573d3c26c6fcebccd4b1807] [0.62s]
2024-01-07 20:58:21 2024/01/07 23:58:21 [7] [PROXY_TO] [afc53d12164aa5de1c61eecb8f9a9ed1a83e6ef63573d3c26c6fcebccd4b1807] [http://172.18.0.4:4444/]
2024-01-07 20:58:21 2024/01/07 23:58:21 [7] [SESSION_ATTEMPTED] [http://172.18.0.4:4444/] [1]
2024-01-07 20:58:22 2024/01/07 23:58:22 [7] [SESSION_FAILED] [http://172.18.0.4:4444/] [500 Internal Server Error]
2024-01-07 20:58:22 2024/01/07 23:58:22 [7] [REMOVING_CONTAINER] [afc53d12164aa5de1c61eecb8f9a9ed1a83e6ef63573d3c26c6fcebccd4b1807]
2024-01-07 20:58:22 2024/01/07 23:58:22 [7] [CONTAINER_REMOVED] [afc53d12164aa5de1c61eecb8f9a9ed1a83e6ef63573d3c26c6fcebccd4b1807]
2024-01-07 20:58:25 2024/01/07 23:58:25 [-] [NEW_REQUEST] [unknown] [192.168.65.1]
2024-01-07 20:58:25 2024/01/07 23:58:25 [-] [NEW_REQUEST_ACCEPTED] [unknown] [192.168.65.1]
2024-01-07 20:58:25 2024/01/07 23:58:25 [9] [LOCATING_SERVICE] [chrome] [118.0]
2024-01-07 20:58:25 2024/01/07 23:58:25 [9] [USING_DOCKER] [chrome] [118.0]
2024-01-07 20:58:25 2024/01/07 23:58:25 [9] [CREATING_CONTAINER] [selenoid/chrome:118.0]
2024-01-07 20:58:25 2024/01/07 23:58:25 [9] [STARTING_CONTAINER] [selenoid/chrome:118.0] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64]
2024-01-07 20:58:25 2024/01/07 23:58:25 [9] [CONTAINER_STARTED] [selenoid/chrome:118.0] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64] [0.28s]
2024-01-07 20:58:26 2024/01/07 23:58:26 [9] [SERVICE_STARTED] [selenoid/chrome:118.0] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64] [0.68s]
2024-01-07 20:58:26 2024/01/07 23:58:26 [9] [PROXY_TO] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64] [http://172.18.0.4:4444/]
2024-01-07 20:58:26 2024/01/07 23:58:26 [9] [SESSION_ATTEMPTED] [http://172.18.0.4:4444/] [1]
2024-01-07 20:58:27 2024/01/07 23:58:27 [9] [SESSION_CREATED] [90f607ef953245c24ded3fd8a8812819] [1] [2.08s]
2024-01-07 20:58:31 2024/01/07 23:58:31 [13] [CONTAINER_LOGS] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64]
2024-01-07 20:58:31 2024/01/07 23:58:31 [14] [VNC_ENABLED] [90f607ef953245c24ded3fd8a8812819]
2024-01-07 21:12:52 2024/01/08 00:12:52 [14] [VNC_CLIENT_DISCONNECTED] [90f607ef953245c24ded3fd8a8812819]
2024-01-07 21:12:52 2024/01/08 00:12:52 [14] [VNC_SESSION_CLOSED] [90f607ef953245c24ded3fd8a8812819]
2024-01-07 21:12:54 2024/01/08 00:12:54 [187] [SESSION_DELETED] [90f607ef953245c24ded3fd8a8812819]
2024-01-07 21:12:54 2024/01/08 00:12:54 [9] [REMOVING_CONTAINER] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64]
2024-01-07 21:12:54 2024/01/08 00:12:54 [13] [CONTAINER_LOGS_DISCONNECTED] [90f607ef953245c24ded3fd8a8812819]
2024-01-07 21:12:54 2024/01/08 00:12:54 [9] [CONTAINER_REMOVED] [259e0de616bb9b6bac170e977c51705a4c4ed0f71674acb379973c6261c2fd64]
2024-01-07 21:14:07 2024/01/08 00:14:07 [-] [NEW_REQUEST] [unknown] [192.168.65.1]
2024-01-07 21:14:07 2024/01/08 00:14:07 [-] [NEW_REQUEST_ACCEPTED] [unknown] [192.168.65.1]
2024-01-07 21:14:07 2024/01/08 00:14:07 [203] [LOCATING_SERVICE] [chrome] [120.0]
2024-01-07 21:14:07 2024/01/08 00:14:07 [203] [USING_DOCKER] [chrome] [120.0]
2024-01-07 21:14:07 2024/01/08 00:14:07 [203] [CREATING_CONTAINER] [selenoid/chrome:120.0]
2024-01-07 21:14:07 2024/01/08 00:14:07 [203] [STARTING_CONTAINER] [selenoid/chrome:120.0] [e0c22ffca7e390dfef6604eaa5dbac660f176e2a34c4e41af29cef25bd0e16dd]
2024-01-07 21:14:07 2024/01/08 00:14:07 [203] [CONTAINER_STARTED] [selenoid/chrome:120.0] [e0c22ffca7e390dfef6604eaa5dbac660f176e2a34c4e41af29cef25bd0e16dd] [0.47s]
2024-01-07 21:14:09 2024/01/08 00:14:09 [203] [SERVICE_STARTED] [selenoid/chrome:120.0] [e0c22ffca7e390dfef6604eaa5dbac660f176e2a34c4e41af29cef25bd0e16dd] [1.44s]
2024-01-07 21:14:09 2024/01/08 00:14:09 [203] [PROXY_TO] [e0c22ffca7e390dfef6604eaa5dbac660f176e2a34c4e41af29cef25bd0e16dd] [http://172.18.0.4:4444/]
2024-01-07 21:14:09 2024/01/08 00:14:09 [203] [SESSION_ATTEMPTED] [http://172.18.0.4:4444/] [1]
2024-01-07 21:14:10 2024/01/08 00:14:10 [203] [SESSION_FAILED] [http://172.18.0.4:4444/] [500 Internal Server Error]
2024-01-07 21:14:10 2024/01/08 00:14:10 [203] [REMOVING_CONTAINER] [e0c22ffca7e390dfef6604eaa5dbac660f176e2a34c4e41af29cef25bd0e16dd]
2024-01-07 21:14:10 2024/01/08 00:14:10 [203] [CONTAINER_REMOVED] [e0c22ffca7e390dfef6604eaa5dbac660f176e2a34c4e41af29cef25bd0e16dd]

Since the latest versions are not working, I have to init Selenoid with --last-versions 4 so that I can pick version 118.0 using the capabilities. This approach is not very convenient as it downloads versions that I am not using. However, it ensures that in case a new image is released in the future, the tests won't fail. I haven't found a better way to instantiate specific browsers with the cm file. Moving forward, I'm considering using the Docker Compose approach creating a browsers.json file might be a better solution. I'm still exploring best practices.

Has anyone else experienced the same issue, or is it just me? I would really appreciate it if someone could take a look.

Thanks in advance!

@vania-pooh
Copy link
Member

@jesinnott could be a bug in Chrome \ Chromedriver. They are happening from time to time. Can't find an issue for the moment.

@jesinnott
Copy link
Author

@vania-pooh yes, it seems like a Chromedriver issue since the only change that I saw in the docker image that you are building is the Chrome/Chromedriver version. Thanks for investigate it and feel free to close it if there is nothing to do on your side

@aandryashin aandryashin closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants