Selenium standalone server not starting on VPS

452 views
Skip to first unread message

André Roggeri Campos

unread,
Sep 21, 2015, 10:32:52 PM9/21/15
to Selenium Users

I'm running into trouble while starting selenium standalone server on my VPS


root@PIV:/usr/share/nginx/pivdev/tests# java -jar selenium-server.jar 

Output:

21:53:08.857 INFO - Launching a standalone Selenium Server
21:53:08.911 INFO - Java: Oracle Corporation 24.79-b02
21:53:08.914 INFO - OS: Linux 3.13.0-52-generic amd64
21:53:08.945 INFO - v2.47.1, with Core v2.47.1. Built from revision 411b314
21:53:09.070 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] does not match the current platform LINUX
21:53:09.071 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{platform=WINDOWS, browserName=MicrosoftEdge, version=}] does not match the current platform LINUX
21:53:09.071 INFO - Driver class not found: com.opera.core.systems.OperaDriver
21:53:09.071 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered


No more output after that. Locally the same command works like like a charm. Any hint how to fix this issue ?


Java

root@PIV:/usr/share/nginx/pivdev/tests# java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

Krishnan Mahadevan

unread,
Sep 21, 2015, 11:02:33 PM9/21/15
to Selenium Users
Andre,
Does the server respond to any of the automation tests run against it ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fabee155-27a6-4d31-b58e-b0b5c5e7a4d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

André Roggeri Campos

unread,
Sep 22, 2015, 8:53:36 AM9/22/15
to Selenium Users
No, it fails saying that it can't connect (I'm using codeception )

[Codeception\Exception\ConnectionException]                                                                
  Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome"}}  
  Failed to connect to 127.0.0.1 port 4444: Connection refused                                               
                                                                                                             
  Please make sure that Selenium Server or PhantomJS is running.       

I've also checked the netstat to check if the server is running, and the port 4444 isn't open

root@PIV:~# netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      898/sshd        
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1247/sendmail: MTA:
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      974/mysqld      
tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      1247/sendmail: MTA:
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1005/nginx      
tcp        0      0 0.0.0.0:81              0.0.0.0:*               LISTEN      1005/nginx      
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      496/vsftpd      
tcp6       0      0 :::22                   :::*                    LISTEN      898/sshd        
tcp6       0      0 :::35484                :::*                    LISTEN      2036/java       
tcp6       0      0 :::50920                :::*                    LISTEN      2036/java       
tcp6       0      0 :::8080                 :::*                    LISTEN      2036/java 

Krishnan Mahadevan

unread,
Sep 22, 2015, 10:06:50 PM9/22/15
to Selenium Users
Andre,

This seems to be something that is unique to your environment, so I am fast running out of debugging options here :)

Btw, can you please check if port 4444 is blocked or something.
You could alternatively try having the selenium server listen on port 8080 which is normally open and see if that helps!

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply all
Reply to author
Forward
0 new messages