@twopizza

Как запустить Selenium на VPS?

Пытаюсь запустить selenium на vps
DISPLAY=:99 xvfb-run -a -n 1 -l -s "-screen 0, 1024x768x8" java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar selenium-server-standalone-2.53.0.jar

или
java -jar selenium-server-standalone-2.53.0.jar

получаю:

13:15:30.076 INFO - Launching a standalone Selenium Server
13:15:30.148 INFO - Java: Oracle Corporation 25.60-b23
13:15:30.148 INFO - OS: Linux 3.17.0 amd64
13:15:30.171 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
13:15:30.264 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
13:15:30.265 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
13:15:30.266 INFO - Driver class not found: com.opera.core.systems.OperaDriver
13:15:30.266 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
13:15:30.269 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
13:15:30.270 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
13:15:30.270 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
^[[A^[[A^Z
[1]+  Stopped                 DISPLAY=:99 xvfb-run -a -n 1 -l -s "-screen 0, 1024x768x8" java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar selenium-server-standalone-2.53.0.jar
[root@server ~]# sudo DISPLAY=:99 xvfb-run -a -n 1 -l -s "-screen 0, 1024x768x8" java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar selenium-server-standalone-2.53.0.jar
13:16:18.659 INFO - Launching a standalone Selenium Server
13:16:18.691 INFO - Java: Oracle Corporation 25.60-b23
13:16:18.691 INFO - OS: Linux 3.17.0 amd64
13:16:18.704 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
13:16:18.769 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
13:16:18.769 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
13:16:18.769 INFO - Driver class not found: com.opera.core.systems.OperaDriver
13:16:18.769 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
13:16:18.770 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
13:16:18.771 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
13:16:18.771 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
^[[A^[[A^X^Z
[2]+  Stopped                 sudo DISPLAY=:99 xvfb-run -a -n 1 -l -s "-screen 0, 1024x768x8" java -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -jar selenium-server-standalone-2.53.0.jar
[root@server ~]# java -jar selenium-server-standalone-2.53.0.jar                13:16:46.443 INFO - Launching a standalone Selenium Server
13:16:46.473 INFO - Java: Oracle Corporation 25.60-b23
13:16:46.473 INFO - OS: Linux 3.17.0 amd64
13:16:46.485 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
13:16:46.542 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
13:16:46.543 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
13:16:46.543 INFO - Driver class not found: com.opera.core.systems.OperaDriver
13:16:46.543 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
13:16:46.544 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
13:16:46.544 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
13:16:46.544 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered


И хаб не создается, в чем может быть проблема?
Тут есть вопрос Как правильно запустить Selenium на VPS?, там проблема в другом.
  • Вопрос задан
  • 856 просмотров
Решения вопроса 1
@twopizza Автор вопроса
Нашел ответ.
Нужно добавлять ключ -Djava.security.egd=file:///dev/urandom switch
http://stackoverflow.com/questions/32707201/seleni...
Эпично
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@kryvel
Системный администратор
эм.. могу конечно ошибаться, но первое, что приходит в голову, а Chrome у Вас установлен?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы