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

dependency failed to start: container genai-stack-api-1 is unhealthy #142

Open
hsiehgeoVA opened this issue Mar 13, 2024 · 4 comments
Open

Comments

@hsiehgeoVA
Copy link

First ran into /data problem. Followed the thread #134 and implemented three changes: (a) chown /home/casev/../genai-stack/data directory to casev for userID and groupID. (2) added to /home/casev/.profile two statements: export USER_ID=$(id -u) and export GROUP_ID=$(id -g). (3) modified docker-compose.yml to set database: user: ${USER_ID}:${GROUP_ID}.
Next, run docker compose --profile linux up again. This time, the /data file error did not appear, and installation went further.
However, it still stopped with an error message: dependency failed to start: container genai-stack-api-1 is unhealthy.
Even after shutdown and restart, docker compose seemed to be stuck for hours displaying with different port numbers:
INFO: 127.0.0.1:xxxxxx - "GET / HTTP/1.1" 200 OK with different port numbers.

@hsiehgeoVA
Copy link
Author

Tried again and again. Finally the installation seemed to be OK even with the INFO messages which would stop after perhaps 30+.
Now I use nohup docker compose ... & to run it. Can get most of the demo apps working, except the support agent bot: able to get the web page. However, it only showed the section for Select RAG mode. Do not see a textbox for entering a prompt.

@HakunanMatatat
Copy link

HakunanMatatat commented Apr 16, 2024

I have installed genai stack many times but it has failed.

The error situation is as follows:

dependency failed to start: container genai-stack-database-1 exited (1)

dependency failed to start: container genai-stack-api-1 is unhealthy

api-1 | requests.exceptions.ConnectionError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/all-MiniLM-L6-v2 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ab84cd55f90>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"), '(Request ID: a385a3c1-472c-4be7-991c-f1d9f11e2d95)') dependency failed to start: container genai-stack-api-1 exited (1)

api-1 | File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 218, in newconn api-1 | raise NewConnectionError( api-1 | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7ab84cd55f90>: Failed to establish a new connection: [Errno 101] Network is unreachable

How should we solve it?

@HakunanMatatat
Copy link

I am using a personal desktop computer and Clash, 127.0.0.1:7890
The attachment is my. env and yml configuration files
1)
Docker run it rm gpus all ubuntu nvidia smi
Display successful installation.
2)
Git clone https://github.com/docker/genai-stack
CD genai stack
3)
Docker compose -- profile linux-gpu up
env.txt
docker-compose.yml.txt

@HakunanMatatat
Copy link

HakunanMatatat commented Apr 16, 2024

image
There are some error messages above.

This is opening http://localhost:8501/
Screenshot 2024-04-16 191225

The display shows that Python 3.11 was not found locally (only Python 3.10 was found locally),
and it was not found in the Docker also.

I don't know where all the Python packages installed in the requirements.

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

2 participants