-
I am having two different issues using the gpu docker compose file. I moved the correct .env file into place and even though I am running everything locally, I added redis, ollama and web to the /etc/hosts files in my ubuntu. I then ran the following command: The build is nearly complete when I get an error that says that the celery app cannot connect to redis, although redis is running and using nc to connect and test the port, a ping returns pong. INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) I like the sound of this application, but cannot see where the issue is. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hello :) Not foundnot found is default response for / page , try http://localhost:8000/docs#/ -> RedisI don't see information about redis in your log. ReadmePlease read README.md you'll se some endpoints and examples of usage like
|
Beta Was this translation helpful? Give feedback.
-
Redis, please provide:
If you set up /etc/hosts on your host machine, it doesn't matter from Docker's point of view. |
Beta Was this translation helpful? Give feedback.
-
You are testing the connection to redis on port 6379 from the container, and it works. However, your logs and configuration show connections to localhost on port 6379. This means you have misconfigurd host. Your application is trying to connect to localhost, not redis. You need to adjust your config to match what your application is using. Change the host in your configuration from You are not using local environment. You are using docker environment. |
Beta Was this translation helpful? Give feedback.
-
@ngpollock the reason for the "not found" errors is that you're trying to access localhost:8000/, but currently, there's nothing running on that endpoint (/. You should use the endpoints provided in the documentation, like /ocr/request https://github.com/CatchTheTornado/text-extract-api @pkarw this leads me to consider that it might be worth route / to docs page, or if its not easy in FastAPI then do redirect from / to docs ;) |
Beta Was this translation helpful? Give feedback.
@ngpollock the reason for the "not found" errors is that you're trying to access localhost:8000/, but currently, there's nothing running on that endpoint (/.
You should use the endpoints provided in the documentation, like /ocr/request
https://github.com/CatchTheTornado/text-extract-api
@pkarw this leads me to consider that it might be worth route / to docs page, or if its not easy in FastAPI then do redirect from / to docs ;)