org.openqa.selenium.NoSuchSessionException: no such session

2,087 views
Skip to first unread message

Bitao Xu

unread,
Nov 24, 2016, 3:04:00 AM11/24/16
to getgauge
Gauge can run well in my local machine ,but When I run it in one agent of the Go CD,the error console is:

Failed Step: Load welcome page
        Specification: specs/welcome.spec:4
        Error Message: org.openqa.selenium.NoSuchSessionException: no such session
          (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 2.6.32-642.11.1.el6.x86_64 x86_64) (WARNING: The server did not provide any stacktrace information)
        Command duration or timeout: 64 milliseconds
        Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
        System info: host: 'S323029.domain', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-642.11.1.el6.x86_64', java.version: '1.8.0_111'
        Driver info: org.openqa.selenium.chrome.ChromeDriver
        Capabilities [{message=unknown error: Chrome failed to start: crashed
          (Driver info: chromedriver=2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e),platform=Linux 2.6.32-642.11.1.el6.x86_64 x86_64), platform=ANY}]
        Session ID: 7a44e3810f4df978dd2e14a02cb1f084
        Stacktrace:
        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
        org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
        org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:635)
        org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:322)
        org.thiki.kanban.web.test.welcome.WelcomeSpec.loadWelcomePage(WelcomeSpec.java:22)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        java.lang.reflect.Method.invoke(Method.java:498)
        com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:32)
        com.thoughtworks.gauge.execution.StepExecutionStage.executeStepMethod(StepExecutionStage.java:114)
        com.thoughtworks.gauge.execution.StepExecutionStage.executeStep(StepExecutionStage.java:81)
        com.thoughtworks.gauge.execution.StepExecutionStage.execute(StepExecutionStage.java:62)
        com.thoughtworks.gauge.execution.AbstractExecutionStage.executeNext(AbstractExecutionStage.java:24)
        com.thoughtworks.gauge.execution.HookExecutionStage.execute(HookExecutionStage.java:42)
        com.thoughtworks.gauge.execution.ExecutionPipeline.start(ExecutionPipeline.java:31)
        com.thoughtworks.gauge.processor.ExecuteStepProcessor.process(ExecuteStepProcessor.java:34)
        com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:72)
        com.thoughtworks.gauge.GaugeRuntime.main(GaugeRuntime.java:37)

Srikanth V

unread,
Nov 24, 2016, 3:15:58 AM11/24/16
to getgauge
Hi,

This line from your stacktrace seems to suggest that there is an issue starting Chrome:

> Chrome failed to start: crashed

I guess you might have to look at the agent's logs to figure out the root cause. Also, you could verify that chrome is installed on the agent and is available for the gocd user.

regards
Srikanth

Bitao Xu

unread,
Nov 24, 2016, 3:29:05 AM11/24/16
to getg...@googlegroups.com
Thanks for you reply.I installed ChromeDriver on the agent, need I install the whole Chrome or just ChromeDriver is ok? 

The ChromeDriver start console is :

:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:gauge
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
Starting ChromeDriver 2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e) on port 18313
Only local connections are allowed.
Nov 24, 2016 3:40:08 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
Nov 24, 2016 3:41:09 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS

--
You received this message because you are subscribed to a topic in the Google Groups "getgauge" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/getgauge/UGhvCcjMqYE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to getgauge+unsubscribe@googlegroups.com.
To post to this group, send email to getg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/getgauge/4bcc630d-b0c2-4fe4-976f-7dbfef6dddb6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Best Regards.
-------------------
Bitao Xu
Dev Shanghai Office
Emailbt...@thoughtworks.com
Telephone+86 15852902785
ThoughtWorks

Mahendra Kariya

unread,
Nov 24, 2016, 3:36:45 AM11/24/16
to getgauge
Hey,

You will have to install Chrome as well. ChromeDriver just gives you hooks to interact with Chrome.

--
You received this message because you are subscribed to the Google Groups "getgauge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to getgauge+unsubscribe@googlegroups.com.

To post to this group, send email to getg...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages