Open mwalaszkowski opened 11 months ago
the user associated with the container needs write and execute access in order to download and save the chrome driver. if name = '/.wdm' then it needs to be able to write to the root. Fastest way to confirm this is the issue is run the service with the user as root
...
# Add a User
user: root
...
Issue is still visible when I add USER ROOT inside Dockerfile and run container in privilege mode
@mwalaszkowski I needed to use USER root
or I got errors.
@david-engelmann i am having this issue also when running this from uwsgi process (via a selenium project), is there a way to force the driver installer to put the driver somewhere else where we can have permissions ? (i can't see it in the docs) /root works when running a standalone python script. But i can't run uwsgi as root since that is a total risk.
@moda20
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install(path="path_to_save_to")))
I try initialize chrome web driver. To do this i using below method:
When i executing this inside docker container I've got this error message:
In some older version of selenium and webdriver manager this code works fine. Can someone help me with this issue?
OS: linux webdriver-manager==4.0.1 selenium==4.14.0 python 3.9