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

Docker deployed in Render: PermissionError: [Errno 13] Permission denied: '/.wdm' #682

Open
gryAI opened this issue Sep 19, 2024 · 1 comment

Comments

@gryAI
Copy link

gryAI commented Sep 19, 2024

I'm having this error when I'm running my code in a docker container deployed in Render
webdriver-manager==4.0.2

@gryAI gryAI changed the title PermissionError: [Errno 13] Permission denied: '/.wdm' Docker deployed in Render: PermissionError: [Errno 13] Permission denied: '/.wdm' Sep 19, 2024
@gryAI
Copy link
Author

gryAI commented Sep 19, 2024

Here is the entire error:

driver = initialize_web_driver(driver_path)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/project/src/utils/msc_utils.py", line 14, in initialize_web_driver
service = Service(ChromeDriverManager().install())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/webdriver_manager/chrome.py", line 40, in install
driver_path = self._get_driver_binary_path(self.driver)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/webdriver_manager/core/manager.py", line 41, in _get_driver_binary_path
binary_path = self._cache_manager.save_file_to_cache(driver, file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/webdriver_manager/core/driver_cache.py", line 53, in save_file_to_cache
archive = self.save_archive_file(file, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/webdriver_manager/core/driver_cache.py", line 46, in save_archive_file
return self._file_manager.save_archive_file(file, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/webdriver_manager/core/file_manager.py", line 45, in save_archive_file
os.makedirs(directory, exist_ok=True)
File "", line 215, in makedirs
File "", line 215, in makedirs
File "", line 215, in makedirs
[Previous line repeated 1 more time]
File "", line 225, in makedirs
PermissionError: [Errno 13] Permission denied: '/.wdm'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant