Closed corderop closed 1 year ago
Hi @corderop can you please provide a small sample test and the command to execute it, which replicates the issue? Thank you!
I have been debugging this a little bit more, and the problem appears when the USER
is changed in the Dockerfile
FROM seleniarm/standalone-chromium:{version}
USER root
RUN groupadd -r second_user \
&& useradd -r -g second_user second_user
USER second_user
selenium:
build:
context: .
dockerfile: ./Dockerfile
ports:
- '4444:4444'
- '7900:7900'
from selenium import webdriver
options = webdriver.ChromeOptions()
options.headless = False
driver = webdriver.Remote("http://localhost:4444/wd/hub", desired_capabilities=options.to_capabilities())
driver.get("https://www.google.com")
driver.quit()
The issue appears if the version specified in the Dockerfile
is higher than 110. Everything worked fine for 109.0.
In my case, I managed to solve the problem by removing the use of the second_user
because it was an old code no longer needed in my case, but I report it here in case this needs to be fixed.
Thanks for the info @corderop I don't know if there is a valid use case for changing the user. All of the permissions are set to the seluser (user 1200) with the expectation that this user would be the one to launch all of the resources. Moreover, since you're not relying on using an additional user, I think we can go ahead and close this issue as resolved.
Thanks again for circling back around!
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.
What happened?
I have been facing problems when trying to use non-headless mode with the newest versions of the containers. The headless mode was working fine, but the non-headless generated the error specified bellow.
I started to try with different versions of the container and noticed that this is happening from version
110.0
onwards (109.0
is working fine for me)Command used to start Selenium Grid with Docker
Relevant log output
Operating System
macOS Ventura 13.4 (M1)
Docker Selenium version (tag)
110.0