Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: running selenium/standalone-chrome as user 1000 #2142

Closed
rob-bankers opened this issue Feb 21, 2024 · 4 comments
Closed

[🐛 Bug]: running selenium/standalone-chrome as user 1000 #2142

rob-bankers opened this issue Feb 21, 2024 · 4 comments

Comments

@rob-bankers
Copy link

What happened?

Hi,

The selenium/standalone-chrome, which used to run with user 1000 and group 1000, is no longer functional in release 1.20.0. It now requires initiation with user 1200 and group 1201. Is this intentional?

This is still working:

docker run --user 1200:1201 \ selenium/standalone-chrome:120.0

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

docker run --user 1000:1000 \
           selenium/standalone-chrome:121.0

Relevant log output

Traceback (most recent call last):
  File "/usr/bin/supervisord", line 33, in <module>
    sys.exit(load_entry_point('supervisor==4.2.1', 'console_scripts', 'supervisord')())
  File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 361, in main
    go(options)
  File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 371, in go
    d.main()
  File "/usr/lib/python3/dist-packages/supervisor/supervisord.py", line 72, in main
    self.options.make_logger()
  File "/usr/lib/python3/dist-packages/supervisor/options.py", line 1470, in make_logger
    loggers.handle_file(
  File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 417, in handle_file
    handler = RotatingFileHandler(filename, 'a', maxbytes, backups)
  File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 213, in __init__
    FileHandler.__init__(self, filename, mode)
  File "/usr/lib/python3/dist-packages/supervisor/loggers.py", line 160, in __init__
    self.stream = open(filename, mode)
PermissionError: [Errno 13] Permission denied: '/var/log/supervisor/supervisord.log'
Error: exit status 1

Operating System

MacOS Rancher Desktop

Docker Selenium version (image tag)

selenium/standalone-chrome:121.0

Selenium Grid chart version (chart version)

No response

Copy link

@rob-bankers, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@VietND96
Copy link
Member

docker run --user 1000 selenium/standalone-chrome:121.0 with different users only, it would work.
In case both UID and GID are different, it won't work probably, since permissions scope 777 before was updated to 775 in some directories.
There was a hack to overcome mentioned in #2056 (comment). Can you take a look?

@rob-bankers
Copy link
Author

Issue solved by using 1200:1201 user and group.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants