crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

PermissionError when running crawl4ai in Docker: [Errno 13] Permission denied: '/nonexistent'

Open QuangTQV opened this issue 1 year ago • 1 comments

Description of the Issue: I'm encountering the error PermissionError: [Errno 13] Permission denied: '/nonexistent' when trying to use crawl4ai as a component in my Docker-based project. When starting the Docker container, the application throws an error indicating that it cannot create the directory /nonexistent.

Error Details: chatbot-api-1 | File "/usr/local/lib/python3.10/site-packages/crawl4ai/async_database.py", line 8, in chatbot-api-1 | os.makedirs(DB_PATH, exist_ok=True) chatbot-api-1 | PermissionError: [Errno 13] Permission denied: '/nonexistent'

What is the best way to configure crawl4AI in a docker environment?

QuangTQV avatar Nov 01 '24 04:11 QuangTQV

@QuangTQV Hi, thank you for using our library. I'm trying to create the Docker image by this week. You'll then be able to use our Docker image definition and mix it with your own. Hopefully, it will work. I'll be able to give you a better answer soon, so just stay tuned for a few more days while I work on the Docker image.

unclecode avatar Nov 02 '24 10:11 unclecode

@QuangTQV Closing this issue due to inactivity. Here's the docs for docker setup https://crawl4ai.com/mkdocs/core/docker-deploymeny/

Please open this as a new issue if the problem still exists.

aravindkarnam avatar Jan 21 '25 09:01 aravindkarnam