By this way, it works ok:
java -jar selenium-server-standalone-3.141.59.jar
But selenium run with hub + node, in a same docker container, diff directory:
java -jar selenium-server-standalone-3.141.59.jar -role hub -port 5555 -timeout 30 -browserTimeout 60
java -jar selenium-server-standalone-3.141.59.jar -role node -hub http://127.0.0.1:5555/grid/register -maxSession 15 -browser browserName=chrome,version=70.0,maxInstances=10,platform=LINUX
code:
chromeOptions.addArguments("--no-sandbox","--disable-dev-shm-usage","--headless","--disable-gpu","--disable-extensions");
Question:
why still get error:
org.openqa.selenium.WebDriverException:
unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 3.10.0-514.el7.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 178 milliseconds