Online Training: Web test automation with CodeceptJS. Sign up now!

Codecept webdriver chrome error

Hi there, am running codeceptjs with webdriverio and running on aws linux via jenkins pipeline. things works locally and when i run the pipeline i see thet below error,

› [Session] Starting singleton browser session
2019-12-11T16:41:44.245Z INFO webdriverio: Initiate new session using the webdriver protocol
[1] Error | Error: Can’t connect to WebDriver.
unknown error: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.4.0-1099-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 224 milliseconds
Build info: version: ‘3.141.5’, revision: ‘d54ebd709a’, time: ‘2018-11-06T11:58:47’
System info: host: ‘ip-100-105-80-188.use1.sqa.aws.asurion.net’, ip: ‘100.105.80.188’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.4.0-1099-aws’, java.version: ‘1.8.0_222’
Driver info: driver.version: unknownPlease make sure Selenium Server (ChromeDriver or PhantomJS) is running and accessible
unknown error: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.4.0-1099-aws x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 224 milliseconds
Build info: version: ‘3.141.5’, revision: ‘d54ebd709a’, time: ‘2018-11-06T11:58:47’
System info: host: ‘ip-100-105-80-188.use1.sqa.aws.asurion.net’, ip: ‘100.105.80.188’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.4.0-1099-aws’, java.version: ‘1.8.0_222’
Driver info: driver.version: unknown
at getErrorFromResponseBody (node_modules/webdriver/build/utils.js:175:10)
at Request._callback (node_modules/webdriver/build/request.js:110:64)
at Request.self.callback (node_modules/request/request.js:185:22)
at Request.EventEmitter.emit (domain.js:475:20)
at Request. (node_modules/request/request.js:1161:10)
at Request.EventEmitter.emit (domain.js:475:20)
at IncomingMessage. (node_modules/request/request.js:1083:12)

WebDriver:{
url: “myurl”,
browser: ‘chrome’,
smartWait: 3000,
path:
host: ‘127.0.0.1’,
port: 4444,
restart: false,
windowSize: ‘1200x900’,
desiredCapabilities: {
chromeOptions: {
args: [ “–headless”,"–disable-gpu", “–window-size=1200,1000”, “–no-sandbox” , “–chrome.chromedriverVersion” , “”]
}
}
},

Can someone please help to understand the issue?

Why is there back slash before some args?

oh sorry thats a comment but when i posted it reformatted it seems. let me fix the typo in above details. but its not an issue for causing the above failure though.

Do you have ChromeDriver compatible with Chrome? The log shows that ChromeDriver 2.43 is used and it is compatible with Chrome 69-71 only.