Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
216 views
in Technique[技术] by (71.8m points)

how debuge the error issue at docker swarm selenium grid 3

The issue is that :

Error: the object {
"capabilities": {
"acceptInsecureCerts": false
"browserName": "chrome"
"browserVersion": "87.0.4280.88"
"chrome": {
"chromedriverVersion": "87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761})"
"userDataDir": "/tmp/.com.google.Chrome.Pov0gB"
}
"goog:chromeOptions": {
"debuggerAddress": "localhost:32848"
}
"networkConnectionEnabled": false
"pageLoadStrategy": "normal"
"platformName": "linux"
"proxy": {}
"setWindowRect": true
"strictFileInteractability": false
"timeouts": {
"implicit": 0
"pageLoad": 300000
"script": 30000
}
"unhandledPromptBehavior": "dismiss and notify"
"webauthn:virtualAuthenticators": true
"webdriver.remote.sessionid": "95a4d11d37d336a8d1607cd75d97b221"
}
"sessionId": "95a4d11d37d336a8d1607cd75d97b221"
} was thrown, throw an Error :)
at <anonymous>

docker swarm service :

docker service ls |grep grid
ksdolt1drq69 grid_chrome replicated 2/2 selenium/node-chrome:latest
6ju0pp1zsvv0 grid_hub replicated 1/1 selenium/hub:latest *:4444->4444/tcp

docker logs :

grid_hub :

grid_hub.1.xatjhwywvho4@node03 | 15:51:58.689 INFO [RequestHandler.process] - Got a request to create a new session: Capabilities {browserName: chrome, chromeOptions: {w3c: false}, ie.ensureCleanSession: true}
grid_hub.1.xatjhwywvho4@node03 | 15:51:58.690 INFO [TestSlot.getNewSession] - Trying to create a new session on test slot {server:CONFIG_UUID=fd78b149-90f7-4ee2-856a-da70bc78bfc1, seleniumProtocol=WebDriver, browserName=chrome, maxInstances=10, platformName=LINUX, version=87.0.4280.88, applicationName=, platform=LINUX}
grid_hub.1.xatjhwywvho4@node03 | 15:54:02.722 WARN [SessionCleanup.null] - session ext. key 95a4d11d37d336a8d1607cd75d97b221 has TIMED OUT due to client inactivity and will be released.

drid_hub:

grid_chrome.2.s1zfjf0m562w@node05 | 15:51:58.709 INFO [ActiveSessionFactory.lambda$apply$11] - Matched factory org.openqa.selenium.grid.session.remote.ServicedSession$Factory (provider: org.openqa.selenium.chrome.ChromeDriverService)
grid_chrome.2.s1zfjf0m562w@node05 | Starting ChromeDriver 87.0.4280.88 (89e2380a3e36c3464b5dd1302349b1382549290d-refs/branch-heads/4280@{#1761}) on port 8067
grid_chrome.2.s1zfjf0m562w@node05 | All remote connections are allowed. Use an allowlist instead!
grid_chrome.2.s1zfjf0m562w@node05 | Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
grid_chrome.2.s1zfjf0m562w@node05 | ChromeDriver was started successfully.
grid_chrome.2.s1zfjf0m562w@node05 | 15:51:59.139 INFO [ProtocolHandshake.createSession] - Detected dialect: W3C
grid_chrome.2.s1zfjf0m562w@node05 | 15:51:59.140 INFO [RemoteSession$Factory.lambda$performHandshake$0] - Started new session 95a4d11d37d336a8d1607cd75d97b221 (org.openqa.selenium.chrome.ChromeDriverService)
grid_chrome.2.s1zfjf0m562w@node05 | 15:54:02.784 INFO [ActiveSessions$1.onStop] - Removing session 95a4d11d37d336a8d1607cd75d97b221 (org.openqa.selenium.chrome.ChromeDriverService)

[root@reliable ~]# docker node ls

ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION 0mwor68ycki2tgyxabqqusaqp node01 Ready Active 20.10.1 pw9sal6i6wwdbxsx1qjyzmmqd node02 Ready Active 20.10.2 nihobwi3u75m35rbblyxrnh47 node03 Ready Active 20.10.1 cz5xut2ybmng4erkk2g4vuagn node04 Ready Active 20.10.2 sqwmztzvwaeyjuuav44d150jo node05 Ready Active 20.10.2 yv42f3vbimqdflb9wopqdy4ll * reliable Ready Active Leader 20.10.1

question from:https://stackoverflow.com/questions/65933288/how-debuge-the-error-issue-at-docker-swarm-selenium-grid-3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...