deepwiki-open
deepwiki-open copied to clipboard
500 server error when trying to generate docs
On a manual setup (docker compose is broken), when i run the backend and frontend and attempt to generate docs for a repo i get the following error from the backend:
2025-05-01 12:35:30,007 - api.api - ERROR - Error preparing retriever: [Errno 13] Cache directory "/home/hridesh/.adalflow/cache_GoogleGenAIClient_gemini-2_5-flash-preview-04-17.db" does not exist and could not be created
INFO: 127.0.0.1:44744 - "POST /chat/completions/stream HTTP/1.1" 500 Internal Server Error
Nevermind, just turns out to be a permission error. No idea why it occurs though, here's the fix:
sudo chown -R <username>:<username> /home/<username>/.adalflow
sudo chmod 755 /home/<username>/.adalflow
interesting, good to know.