deepwiki-open icon indicating copy to clipboard operation
deepwiki-open copied to clipboard

500 server error when trying to generate docs

Open hrideshmg opened this issue 1 year ago • 2 comments

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

hrideshmg avatar May 01 '25 07:05 hrideshmg

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

hrideshmg avatar May 01 '25 07:05 hrideshmg

interesting, good to know.

sng-asyncfunc avatar May 01 '25 13:05 sng-asyncfunc