Selenium and Linux: Chrome failed to start: exited normally.

381 views
Skip to first unread message

Stefano Vercesi

unread,
Feb 21, 2024, 8:13:22 AM2/21/24
to Selenium Users
Hello everyone, I have a selenium script on a Linux (Debian 12) server.

The script works fine locally, but has some problem when trying to execute it on the server...this is the error message:

```
/home/scraper/node_modules/selenium-webdriver/lib/error.js:521
    let err = new ctor(data.message)
              ^

SessionNotCreatedError: session not created: Chrome failed to start: exited normally.
  (session not created: DevToolsActivePort file doesn't exist)
```

This is how the scraper lunch chrome:

```
const { Builder, By } = require("selenium-webdriver");

  const driver = new Builder().forBrowser("chrome").build();
  const url = ""
  await driver.get(url)
```

What am I missing? I have installed google-chrome-stable on the server as well..!

Avinash Ravte

unread,
Feb 22, 2024, 2:32:04 AM2/22/24
to seleniu...@googlegroups.com
Hii Stefano,
Usually this error occurs when driver and chrome version are different.
It is advised to update browser version


Thanks and regards,
Avinash D. Ravte


--
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 view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c76fc65d-dc31-4472-9a9d-2b59b1f5a2b0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages