T
T
twopizza2016-06-29 13:28:50
linux
twopizza, 2016-06-29 13:28:50

How to run Selenium on VPS?

Trying to run selenium on 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

or
java -jar selenium-server-standalone-2.53.0.jar
get:
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
[[email protected] ~]# 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
[[email protected] ~]# 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

And the hub is not created, what could be the problem?
There is a question How to properly run Selenium on a VPS? , there is another problem.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
T
twopizza, 2016-06-29
@twopizza

Found the answer.
Need to add key -Djava.security.egd=file:///dev/urandom switch
http://stackoverflow.com/questions/32707201/seleni...
Epic

S
Slava Kryvel, 2016-06-29
@kryvel

uh .. I can of course be wrong, but the first thing that comes to mind is Chrome installed on you?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question