Open sanemat opened 3 years ago
m1 macbookair
$ docker-compose version
Docker Compose version v2.0.0-rc.3
$ uname -a
Darwin mf-0173-mm03 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64
$ docker-compose up
[+] Running 3/0
⠿ Container selenium-hub Created 0.0s
⠿ Container tmp-selenium4_chrome_1 Created 0.0s
⠿ Container tmp-selenium4_app_1 Created 0.0s
Attaching to selenium-hub, app_1, chrome_1
selenium-hub | 2021-09-29 10:05:28,562 INFO Included extra file "/etc/supervisor/conf.d/selenium-grid-hub.conf" during parsing
selenium-hub | 2021-09-29 10:05:28,577 INFO supervisord started with pid 13
chrome_1 | 2021-09-29 10:05:29,246 INFO Included extra file "/etc/supervisor/conf.d/selenium.conf" during parsing
chrome_1 | 2021-09-29 10:05:29,252 INFO supervisord started with pid 12
app_1 | wait-for-it: waiting 15 seconds for selenium-hub:4444
selenium-hub | 2021-09-29 10:05:29,599 INFO spawned: 'selenium-grid-hub' with pid 19
chrome_1 | 2021-09-29 10:05:30,260 INFO spawned: 'xvfb' with pid 18
chrome_1 | 2021-09-29 10:05:30,264 INFO spawned: 'vnc' with pid 20
chrome_1 | 2021-09-29 10:05:30,266 INFO spawned: 'novnc' with pid 21
chrome_1 | 2021-09-29 10:05:30,269 INFO spawned: 'selenium-node' with pid 23
chrome_1 | 2021-09-29 10:05:30,569 INFO success: xvfb entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
chrome_1 | 2021-09-29 10:05:30,569 INFO success: vnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
chrome_1 | 2021-09-29 10:05:30,570 INFO success: novnc entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
chrome_1 | 2021-09-29 10:05:30,570 INFO success: selenium-node entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
selenium-hub | 2021-09-29 10:05:30,607 INFO success: selenium-grid-hub entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
chrome_1 | Configuring server...
chrome_1 | Setting up SE_NODE_HOST...
chrome_1 | Setting up SE_NODE_PORT...
chrome_1 | Selenium Grid Node configuration:
chrome_1 | [events]
chrome_1 | publish = "tcp://selenium-hub:4442"
chrome_1 | subscribe = "tcp://selenium-hub:4443"
chrome_1 |
chrome_1 | [node]
chrome_1 | grid-url = "http://localhost:4444"
chrome_1 | session-timeout = "300"
chrome_1 | override-max-sessions = false
chrome_1 | detect-drivers = false
chrome_1 | max-sessions = 1
chrome_1 |
chrome_1 | [[node.driver-configuration]]
chrome_1 | display-name = "chrome"
chrome_1 | stereotype = '{"browserName": "chrome", "browserVersion": "94.0", "platformName": "Linux"}'
chrome_1 | max-sessions = 1
chrome_1 |
chrome_1 | Starting Selenium Grid Node...
selenium-hub | 10:05:32.343 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
selenium-hub | 10:05:32.395 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
selenium-hub | 10:05:32.829 INFO [BoundZmqEventBus.<init>] - XPUB binding to [binding to tcp://*:4442, advertising as tcp://172.24.0.2:4442], XSUB binding to [binding to tcp://*:4443, advertising as tcp://172.24.0.2:4443]
selenium-hub | 10:05:33.278 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://172.24.0.2:4442 and tcp://172.24.0.2:4443
selenium-hub | 10:05:33.388 INFO [UnboundZmqEventBus.<init>] - Sockets created
chrome_1 | 10:05:34.187 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding
chrome_1 | 10:05:34.214 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing
selenium-hub | 10:05:34.409 INFO [UnboundZmqEventBus.<init>] - Event bus ready
chrome_1 | 10:05:34.742 INFO [UnboundZmqEventBus.<init>] - Connecting to tcp://selenium-hub:4442 and tcp://selenium-hub:4443
chrome_1 | 10:05:35.032 INFO [UnboundZmqEventBus.<init>] - Sockets created
selenium-hub | 10:05:35.225 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 9284cfb4504b
selenium-hub | 10:05:35.457 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 9284cfb4504b
chrome_1 | 10:05:36.042 INFO [UnboundZmqEventBus.<init>] - Event bus ready
chrome_1 | 10:05:36.971 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 5191920902f4
chrome_1 | 10:05:36.990 INFO [NodeServer.createHandlers] - Reporting self as: http://5191920902f4:5555
chrome_1 | 10:05:37.021 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 5191920902f4
chrome_1 | 10:05:37.118 INFO [NodeOptions.getSessionFactories] - Detected 4 available processors
chrome_1 | 10:05:37.342 INFO [NodeOptions.report] - Adding chrome for {"browserVersion": "94.0","browserName": "chrome","platformName": "Linux","se:vncEnabled": true} 1 times
chrome_1 | 10:05:37.382 INFO [Node.<init>] - Binding additional locator mechanisms: name, id
selenium-hub | 10:05:37.563 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 9284cfb4504b
selenium-hub | 10:05:37.697 WARN [MacAddressUtil.defaultMachineId] - Failed to find a usable hardware address from the network interfaces; using random bytes: 18:05:90:78:24:df:ac:c2
chrome_1 | 10:05:38.039 INFO [BaseServerOptions.lambda$getExternalUri$0] - No network connection, guessing name: 5191920902f4
selenium-hub | 10:05:38.036 INFO [Hub.execute] - Started Selenium Hub 4.0.0-rc-2 (revision ca58c3b83f): http://9284cfb4504b:4444
selenium-hub | 10:05:38.052 INFO [Node.<init>] - Binding additional locator mechanisms: id, name
chrome_1 | 10:05:38.141 WARN [MacAddressUtil.defaultMachineId] - Failed to find a usable hardware address from the network interfaces; using random bytes: 13:31:77:8b:5e:de:1e:eb
chrome_1 | 10:05:38.348 INFO [NodeServer$1.start] - Starting registration process for node id 6d0b93b1-0303-45ef-a1af-c8fc106c07ab
chrome_1 | 10:05:38.360 INFO [NodeServer.execute] - Started Selenium node 4.0.0-rc-2 (revision ca58c3b83f): http://5191920902f4:5555
chrome_1 | 10:05:38.379 INFO [NodeServer$1.lambda$start$1] - Sending registration event...
selenium-hub | 10:05:40.540 INFO [LocalDistributor.add] - Added node 6d0b93b1-0303-45ef-a1af-c8fc106c07ab at http://5191920902f4:5555. Health check every 120s
selenium-hub | 10:05:40.589 INFO [GridModel.setAvailability] - Switching node 6d0b93b1-0303-45ef-a1af-c8fc106c07ab (uri: http://5191920902f4:5555) from DOWN to UP
chrome_1 | 10:05:40.591 INFO [NodeServer.lambda$createHandlers$2] - Node has been added
app_1 | wait-for-it: selenium-hub:4444 is available after 14 seconds
selenium-hub | 10:05:45.482 INFO [LocalDistributor.newSession] - Session request received by the distributor:
selenium-hub | [Capabilities {browserName: chrome, goog:chromeOptions: {args: [--no-sandbox]}}]
chrome_1 | Starting ChromeDriver 94.0.4606.41 (333e85df3c9b656b518b5f1add5ff246365b6c24-refs/branch-heads/4606@{#845}) on port 21457
chrome_1 | All remote connections are allowed. Use an allowlist instead!
chrome_1 | Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
chrome_1 | ChromeDriver was started successfully.
chrome_1 | 10:05:52.631 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "c44e7c55fa50b17356eb43b9323a6048","eventTime": 1632909952543107586,"eventName": "exception","attributes": {"driver.url": "http:\u002f\u002flocalhost:21457","exception.message": "Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.\n (chrome not reachable)\n (The process started from chrome location \u002fusr\u002fbin\u002fgoogle-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown","exception.stacktrace": "org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.\n (chrome not reachable)\n (The process started from chrome location \u002fusr\u002fbin\u002fgoogle-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84)\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)\n\tat org.openqa.selenium.grid.node.config.DriverServiceSessionFactory.apply(DriverServiceSessionFactory.java:131)\n\tat org.openqa.selenium.grid.node.config.DriverServiceSessionFactory.apply(DriverServiceSessionFactory.java:65)\n\tat org.openqa.selenium.grid.node.local.SessionSlot.apply(SessionSlot.java:143)\n\tat org.openqa.selenium.grid.node.local.LocalNode.newSession(LocalNode.java:315)\n\tat org.openqa.selenium.grid.node.NewNodeSession.execute(NewNodeSession.java:52)\n\tat org.openqa.selenium.remote.http.Route$TemplatizedRoute.handle(Route.java:192)\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:68)\n\tat org.openqa.selenium.grid.security.RequiresSecretFilter.lambda$apply$0(RequiresSecretFilter.java:64)\n\tat org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler.execute(SpanWrappedHttpHandler.java:86)\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:68)\n\tat org.openqa.selenium.grid.node.Node.execute(Node.java:240)\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:68)\n\tat org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35)\n\tat org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)\n\tat org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)\n\tat org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44)\n\tat java.base\u002fjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat java.base\u002fjava.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base\u002fjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base\u002fjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base\u002fjava.lang.Thread.run(Thread.java:829)\n","exception.type": "org.openqa.selenium.SessionNotCreatedException","logger": "org.openqa.selenium.grid.node.config.DriverServiceSessionFactory","session.capabilities": "{\"goog:chromeOptions\": {\"args\": [ \"--no-sandbox\" ] }, \"browserName\": \"chrome\", \"se:vncEnabled\": true }\n"}}
chrome_1 |
selenium-hub | 10:05:52.711 WARN [GridModel.setSession] - Grid model and reality have diverged. Slot is not reserved. SlotId{nodeId=6d0b93b1-0303-45ef-a1af-c8fc106c07ab, id=f44a7037-dbfa-410c-914e-691c68f95fc0}
selenium-hub | 10:05:52.792 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "c44e7c55fa50b17356eb43b9323a6048","eventTime": 1632909952788900837,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "selenium-hub:4444","http.method": "POST","http.request_content_length": "198","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "selenium\u002f4.0.0-rc-1 (js linux)"}}
selenium-hub |
app_1 | /app/node_modules/selenium-webdriver/lib/error.js:526
app_1 | throw new WebDriverError('Unknown error: ' + JSON.stringify(data))
app_1 | ^
app_1 |
app_1 | WebDriverError: Unknown error: {"additionalInformation":"Driver info: driver.version: unknown","localizedMessage":"Could not start a new session. Could not start a new session. Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.\n (chrome not reachable)\n (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '9284cfb4504b', ip: '172.24.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown","systemInformation":"System info: host: '9284cfb4504b', ip: '172.24.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'","supportUrl":null,"cause":null,"suppressed":[],"stackTrace":[{"fileName":"RemoteNode.java","moduleVersion":null,"moduleName":null,"nativeMethod":false,"methodName":"newSession","className":"org.openqa.selenium.grid.node.remote.RemoteNode","lineNumber":149,"classLoaderName":"app"},{"fileName":"LocalDistributor.java","moduleVersion":null,"moduleName":null,"nativeMethod":false,"methodName":"startSession","className":"org.openqa.selenium.grid.distributor.local.LocalDistributor","lineNumber":513,"classLoaderName":"app"},{"fileName":"LocalDistributor.java","moduleVersion":null,"moduleName":null,"nativeMethod":false,"methodName":"newSession","className":"org.openqa.selenium.grid.distributor.local.LocalDistributor","lineNumber":440,"classLoaderName":"app"},{"fileName":"LocalDistributor.java","moduleVersion":null,"moduleName":null,"nativeMethod":false,"methodName":"handleNewSessionRequest","className":"org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable","lineNumber":648,"classLoaderName":"app"},{"fileName":"LocalDistributor.java","moduleVersion":null,"moduleName":null,"nativeMethod":false,"methodName":"lambda$run$1","className":"org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable","lineNumber":612,"classLoaderName":"app"},{"fileName":"ThreadPoolExecutor.java","moduleVersion":"11.0.11","moduleName":"java.base","nativeMethod":false,"methodName":"runWorker","className":"java.util.concurrent.ThreadPoolExecutor","lineNumber":1128,"classLoaderName":null},{"fileName":"ThreadPoolExecutor.java","moduleVersion":"11.0.11","moduleName":"java.base","nativeMethod":false,"methodName":"run","className":"java.util.concurrent.ThreadPoolExecutor$Worker","lineNumber":628,"classLoaderName":null},{"fileName":"Thread.java","moduleVersion":"11.0.11","moduleName":"java.base","nativeMethod":false,"methodName":"run","className":"java.lang.Thread","lineNumber":829,"classLoaderName":null}],"message":"Could not start a new session. Could not start a new session. Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.\n (chrome not reachable)\n (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '9284cfb4504b', ip: '172.24.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown","rawMessage":"Could not start a new session. Could not start a new session. Error while creating session with the driver service. Stopping driver service: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.\n (chrome not reachable)\n (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown\nBuild info: version: '4.0.0-rc-2', revision: 'ca58c3b83f'\nSystem info: host: '5191920902f4', ip: '172.24.0.3', os.name: 'Linux', os.arch: 'amd64', os.version: '5.10.47-linuxkit', java.version: '11.0.11'\nDriver info: driver.version: unknown","buildInformation":{"buildRevision":"ca58c3b83f","releaseLabel":"4.0.0-rc-2"}}
app_1 | at Object.throwDecodedError (/app/node_modules/selenium-webdriver/lib/error.js:526:9)
app_1 | at parseHttpResponse (/app/node_modules/selenium-webdriver/lib/http.js:643:13)
app_1 | at Executor.execute (/app/node_modules/selenium-webdriver/lib/http.js:569:28)
app_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5) {
app_1 | remoteStacktrace: ''
app_1 | }
app_1 exited with code 1
linux