docker / genai-stack

Langchain + Docker + Neo4j + Ollama
Creative Commons Zero v1.0 Universal
4.06k stars 880 forks source link

dependency failed to start: container genai-stack-database-1 is unhealthy #63

Closed svanschalkwyk closed 1 year ago

svanschalkwyk commented 1 year ago

"genai-stack-pull-model-1 exited with code 0 dependency failed to start: container genai-stack-database-1 is unhealthy"

docker ps: ...:::7687->7687/tcp genai-stack-database-1 --- so this is started 11434/tcp genai-stack-llm-1 Browser on port 7474: "ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason is not available." Seems that the neo4j password is not set from the .env file . Default password also not working.

svanschalkwyk commented 1 year ago

Further with lllama2: " File "/usr/local/lib/python3.11/site-packages/langchain/graphs/neo4j_graph.py", line 70, in init genai-stack-api-1 | raise ValueError( genai-stack-api-1 | ValueError: Could not connect to Neo4j database. Please ensure that the username and password are correct"

svanschalkwyk commented 1 year ago

Follow up: Can start now. Tried llama2 and password was set. Still looking into it.

jexp commented 1 year ago

Ok. Please share the config and how it’s going

oskarhane commented 1 year ago

Try docker compose down and then docker compose up to remove the containers and get a fresh start.

svanschalkwyk commented 1 year ago

Re-run docker compose --profile linux up It will eventually start. Not sure if there might be a database check that needs to be extended. Will check later.

jbonfardeci commented 1 year ago

I was also getting the following error:

Error response from daemon: network a995f85857d5719540f06b7ca6dc7829ceabb5fad1e2069ea484bf80d2d73cdd not found

I was able to get it to work by running, sudo docker compose down Then add the following argument --force-recreate: docker compose --profile linux up --force-recreate