Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

[🐛 Bug]: Session unable to start for Selenium 4.11.0 due to permission error #46

Closed
@jamesmortensen

Description

@jamesmortensen

What happened?

In the logs, we can see tests failing when attempting to test Seleniarm images using Selenium 4.11.0. The full logs can be found here:

https://app.circleci.com/pipelines/github/seleniumhq-community/docker-seleniarm/368/workflows/bcace299-db41-4695-8f7c-cfc374605b2a/jobs/1398

The part that sticks out to me is the complaints about permission issues and unexpected word:

selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. Could not start a new session. Unable to obtain: Capabilities {browserName: chrome, browserVersion: 116.0, goog:chromeOptions: {args: [], extensions: []}, pageLoadStrategy: normal, se:noVncPort: 7900, se:vncEnabled: true}, error Command failed with code: 2, executed: [/tmp/selenium-manager67305284127211587224812580076201/selenium-manager, --browser, chrome, --output, json, --browser-version, 116.0]
/tmp/selenium-manager67305284127211587224812580076201/selenium-manager: 1: cannot create ����@8jL@8: Permission denied
/tmp/selenium-manager67305284127211587224812580076201/selenium-manager: 2: Syntax error: word unexpected (expecting ")")

Command used to start Selenium Grid with Docker

# This is taken from the circleci workflow config file:
USE_RANDOM_USER_ID=false NAMESPACE=seleniarm VERSION=4.11.0 BUILD_DATE=now SKIP_BUILD=true make test_multi_arch

Relevant log output

======================================================================
ERROR: test_title (SeleniumTests.ChromeTests.test_title)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/circleci/project/tests/SeleniumTests/__init__.py", line 71, in setUp
    self.driver = webdriver.Remote(
                  ^^^^^^^^^^^^^^^^^
  File "/opt/circleci/.pyenv/versions/3.11.4/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "/opt/circleci/.pyenv/versions/3.11.4/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 378, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/circleci/.pyenv/versions/3.11.4/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
    self.error_handler.check_response(response)
  File "/opt/circleci/.pyenv/versions/3.11.4/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. Could not start a new session. Unable to obtain: Capabilities {browserName: chrome, browserVersion: 116.0, goog:chromeOptions: {args: [], extensions: []}, pageLoadStrategy: normal, se:noVncPort: 7900, se:vncEnabled: true}, error Command failed with code: 2, executed: [/tmp/selenium-manager67305284127211587224812580076201/selenium-manager, --browser, chrome, --output, json, --browser-version, 116.0]
/tmp/selenium-manager67305284127211587224812580076201/selenium-manager: 1: cannot create ����@8jL@8: Permission denied
/tmp/selenium-manager67305284127211587224812580076201/selenium-manager: 2: Syntax error: word unexpected (expecting ")")
 
Host info: host: '93c3760a8c5e', ip: '172.18.0.3'
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '5.15.0-1039-aws', java.version: '11.0.20'
Driver info: driver.version: unknown
Build info: version: '4.11.0', revision: '040bc5406b'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '5.15.0-1039-aws', java.version: '11.0.20'
Driver info: driver.version: unknown
Stacktrace:
    at org.openqa.selenium.grid.node.remote.RemoteNode.newSession (RemoteNode.java:151)
    at org.openqa.selenium.grid.distributor.local.LocalDistributor.startSession (LocalDistributor.java:648)
    at org.openqa.selenium.grid.distributor.local.LocalDistributor.newSession (LocalDistributor.java:565)
    at org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.handleNewSessionRequest (LocalDistributor.java:829)
    at org.openqa.selenium.grid.distributor.local.LocalDistributor$NewSessionRunnable.lambda$run$1 (LocalDistributor.java:785)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
    at java.lang.Thread.run (Thread.java:829)

Operating System

Ubuntu 20.04

Docker Selenium version (tag)

unreleased in CI only

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions