Skip to content

[🐛 Bug]: WebDriverError: session not created: probably user data directory is already in use #14168

@Badisi

Description

@Badisi

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9.8.0

Node.js Version

22

Mode

WDIO Testrunner

Which capabilities are you using?

{
  browserName: 'chrome',
  browserVersion: 'stable',
  maxInstances: 5,
  acceptInsecureCerts: true,
  'goog:chromeOptions': ['--headless', '--disable-gpu', '--disable-dev-shm-usage']
}

What happened?

Recently updated my wdio dependencies to v9.8.0 and started seeing issues on linux.

Error is from webdriver itself but I don't know if it relates to webdriverio somehow.
@christian-bromann, does it ring a bell to you ?

[0-0] 2025-02-07T12:51:28.018Z DEBUG webdriver: request failed due to response error: session not created
[0-0] 2025-02-07T12:51:28.018Z WARN webdriver: WebDriverError: session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir when running "http://localhost:38449/session" with method "POST" and args "{"capabilities":{"alwaysMatch":{"browserName":"chrome","browserVersion":"stable","acceptInsecureCerts":true,"goog:chromeOptions":{"binary":"/tmp/chrome/linux-133.0.6943.53/chrome-linux64/chrome","args":["--headless","--disable-gpu","--disable-dev-shm-usage"]},"webSocketUrl":true,"unhandledPromptBehavior":"ignore"},"firstMatch":[{}]}}"

Working fine on macOS and windows.

Relevant log output

See full log here : https://github.com/Badisi/wdio-harness/actions/runs/13200174541/job/36850156663

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

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