Skip to content

The selenium hub it doesn't start #128

@alinpa

Description

@alinpa

Steps to reproduce:

  • I updated the plugin from 3.9 to the latest version 3.12.0.

  • Restart your jenkins

  • Check the selenium plugin console log:
    ** Starting Selenium Grid
    [jenkins_home] $ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -cp /var/jenkins_home/war/WEB-INF/lib/remoting-3.17.jar hudson.remoting.Launcher -cp /var/jenkins_home/plugins/selenium/WEB-INF/lib/selenium-server-standalone-3.12.0.jar:/var/jenkins_home/plugins/selenium/WEB-INF/lib/selenium-server-standalone-3.12.0.jar -connectTo localhost:41409
    Starting Selenium Grid
    channel started
    Jun 07, 2018 3:49:21 PM hudson.plugins.selenium.HubLauncher call
    OFF: Grid hub starting with log level ALL
    Jun 07, 2018 3:49:21 PM hudson.plugins.selenium.HubLauncher call
    OFF: Grid Hub preparing to start on port 4444
    2018-06-07 15:49:22.528:INFO::pool-1-thread-1 for channel id=49: Logging initialized @2529ms to org.seleniumhq.jetty9.util.log.StdErrLog
    2018-06-07 15:49:22.622:INFO:osjs.Server:pool-1-thread-1 for channel id=49: jetty-9.4.7.v20170914, build timestamp: 2017-11-21T21:27:37Z, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
    2018-06-07 15:49:22.657:INFO:osjs.session:pool-1-thread-1 for channel id=49: DefaultSessionIdManager workerName=node0
    2018-06-07 15:49:22.657:INFO:osjs.session:pool-1-thread-1 for channel id=49: No SessionScavenger set, using defaults
    2018-06-07 15:49:22.659:INFO:osjs.session:pool-1-thread-1 for channel id=49: Scavenging every 660000ms
    2018-06-07 15:49:22.668:INFO:osjsh.ContextHandler:pool-1-thread-1 for channel id=49: Started o.s.j.s.ServletContextHandler@3b6e23d0{/,null,AVAILABLE}
    Jun 07, 2018 3:49:22 PM org.openqa.grid.internal.DefaultGridRegistry assignRequestToProxy
    INFO: Shutting down registry.
    2018-06-07 15:49:22.677:INFO:osjs.AbstractConnector:pool-1-thread-1 for channel id=49: Stopped ServerConnector@551461d7{HTTP/1.1,[http/1.1]}{xxx.xxx.xxx.xxx:4444}
    2018-06-07 15:49:22.678:INFO:osjs.session:pool-1-thread-1 for channel id=49: Stopped scavenging
    2018-06-07 15:49:22.680:INFO:osjsh.ContextHandler:pool-1-thread-1 for channel id=49: Stopped o.s.j.s.ServletContextHandler@3b6e23d0{/,null,UNAVAILABLE}
    Jun 07, 2018 3:49:22 PM org.openqa.grid.web.Hub start
    SEVERE: Port 4444 is busy, please choose a free port for the hub and specify it using -port option
    Jun 07, 2018 3:49:22 PM hudson.plugins.selenium.HubLauncher call
    OFF: Grid Hub started on port 4444 with args: -maxSession 5 -timeout 30 -browserTimeout 0 -host xxx.xxx.xxx.xxx
    channel stopped**

  • If I execute the following command "ps -aux | grep -ie "selenium" " on the jenkins machine the output is:

root 130 0.6 0.5 6780788 87364 ? Sl 15:32 0:13 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -cp /var/jenkins_home/war/WEB-INF/lib/remoting-3.17.jar hudson.remoting.Launcher -cp /var/jenkins_home/selenium-server-standalone-3.12.0.jar:/var/jenkins_home/selenium-server-standalone-3.12.0.jar -connectTo localhost:40799

root 228 1.3 0.9 7457004 154404 ? Sl 15:49 0:11 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -cp /var/jenkins_home/war/WEB-INF/lib/remoting-3.17.jar hudson.remoting.Launcher -cp /var/jenkins_home/plugins/selenium/WEB-INF/lib/selenium-server-standalone-3.12.0.jar:/var/jenkins_home/plugins/selenium/WEB-INF/lib/selenium-server-standalone-3.12.0.jar -connectTo localhost:41409
**Why I have these two processes? Should be only one?

  • on the node I can see the following error message:
    [SelfRegisteringRemote$1.run] - Couldn't register this node: The hub is down or not responding: Failed to connect to /xxx.xxx.xxx.xxx

**- I have checked if the port is already in use, but is not.

Any idea why is happening this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions