Skip to content

[🐛 Bug]: Poetry installs are failing due to /opt/venv directory existing. #2768

Closed
@b4handjr

Description

@b4handjr

What happened?

Using the 4.31.0 image, I noticed that our integration tests on CircleCI were reporting an error about permissions.

Upon further infestation it seems that the /opt/venv directory is already created and is owned by the root user. Rolling back to image 4.30.0 seems to fix the issue as the /opt/venv directory doesn't exist.

Command used to start Selenium Grid with Docker (or Kubernetes)

firefox:
    image: selenium/standalone-firefox
    env_file: .env
    platform: linux/amd64
    environment:
      - MOZ_HEADLESS
      - FIREFOX_CHANNEL
      - PYTEST_ARGS
      - INTEGRATION_TEST_KINTO_URL
      - INTEGRATION_TEST_NGINX_URL
    volumes:
      - .:/code
      - /code/experimenter/tests/integration/.tox
    depends_on:
      - nginx
      - kinto
      - ping-server
      - demo-app-frontend
    expose:
      - "4444"
    ports:
      - "5900:5900"
      - "7902:7900"
    shm_size: 2g
    working_dir: /code

Relevant log output

Installing dependencies from lock file
The lock file might not be compatible with the current version of Poetry.
Upgrade Poetry to ensure the lock file is read properly or, alternatively, regenerate the lock file with the `poetry lock` command.

Package operations: 66 installs, 4 updates, 0 removals

  - Installing attrs (23.2.0): Failed

  PermissionError

  [Errno 13] Permission denied: '/opt/venv/lib/python3.12/site-packages/attr'

  at /usr/lib/python3.12/pathlib.py:1313 in mkdir
      1309│         """
      1310│         Create a new directory at this given path.
      1311│         """
      1312│         try:
    → 1313│             os.mkdir(self, mode)
      1314│         except FileNotFoundError:
      1315│             if not parents or self.parent == self:
      1316│                 raise
      1317│             self.parent.mkdir(parents=True, exist_ok=True)

Cannot install attrs.

Operating System

Ubuntu

Docker Selenium version (image tag)

4.31.0-20250404

Selenium Grid chart version (chart version)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions