infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
17.97k stars 1.82k forks source link

[Bug]: container ragflow-mysql is unhealthy #1995

Open cyx951211 opened 1 month ago

cyx951211 commented 1 month ago

Is there an existing issue for the same bug?

Branch name

container ragflow-mysql is unhealthy

Commit ID

329

Other environment information

WARN[0000] The "ELASTIC_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] /mnt/e/gpt/ragflow/docker/docker-compose-base.yml: version is obsolete
WARN[0000] /mnt/e/gpt/ragflow/docker/docker-compose.yml: version is obsolete
[+] Running 4/4
✘ Container ragflow-es-01 Error 0.0s
✔ Container ragflow-kibana Running 0.0s
✔ Container ragflow-minio Running 0.0s
✘ Container ragflow-mysql Error 0.0s
dependency failed to start: container ragflow-mysql is unhealthy

Actual behavior

WARN[0000] The "ELASTIC_PASSWORD" variable is not set. Defaulting to a blank string. WARN[0000] /mnt/e/gpt/ragflow/docker/docker-compose-base.yml: version is obsolete WARN[0000] /mnt/e/gpt/ragflow/docker/docker-compose.yml: version is obsolete [+] Running 4/4 ✘ Container ragflow-es-01 Error 0.0s ✔ Container ragflow-kibana Running 0.0s ✔ Container ragflow-minio Running 0.0s ✘ Container ragflow-mysql Error 0.0s dependency failed to start: container ragflow-mysql is unhealthy

Expected behavior

No response

Steps to reproduce

WARN[0000] The "ELASTIC_PASSWORD" variable is not set. Defaulting to a blank string.
WARN[0000] /mnt/e/gpt/ragflow/docker/docker-compose-base.yml: version is obsolete
WARN[0000] /mnt/e/gpt/ragflow/docker/docker-compose.yml: version is obsolete
[+] Running 4/4
✘ Container ragflow-es-01 Error 0.0s
✔ Container ragflow-kibana Running 0.0s
✔ Container ragflow-minio Running 0.0s
✘ Container ragflow-mysql Error 0.0s
dependency failed to start: container ragflow-mysql is unhealthy

Additional information

No response

KevinHuSh commented 1 month ago

docker compose down -v (remove all the local data) docker compose up

lvxiaodong6688 commented 1 month ago

docker compose down -v (remove all the local data) docker compose up

it works !thanks

Encounter005 commented 1 month ago

it doesn't work for me image image

JeremyBickel commented 1 week ago

error_log.txt

Here's a trace. I installed it fresh and ran into this error. Then I applied the fix from @KevinHuSh to remove all the local data. When I ran it again, the output was different than the first run, but it ended with this same error.

THEN: After waiting several minutes and trying 'docker compose up' again, it worked. Here's the output from that in case it's useful:

ragflow/docker$ docker compose up WARN[0000] The "MACOS" variable is not set. Defaulting to a blank string. [+] Running 5/0 ✔ Container ragflow-minio Running 0.0s ✔ Container ragflow-mysql Running 0.0s ✔ Container ragflow-es-01 Running 0.0s ✔ Container ragflow-redis Running 0.0s ✔ Container ragflow-server Created 0.0s Attaching to ragflow-es-01, ragflow-minio, ragflow-mysql, ragflow-redis, ragflow-server ragflow-server | [WARNING] [2024-09-16 19:33:21,518] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. ragflow-server | [WARNING] [2024-09-16 19:33:21,520] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. ragflow-server | [WARNING] [2024-09-16 19:33:21,526] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. ragflow-server | [WARNING] [2024-09-16 19:33:21,528] [synonym.init] [line:40]: Realtime synonym is disabled, since no redis connection. ragflow-server | [WARNING] Load term.freq FAIL! ragflow-server | [WARNING] Load term.freq FAIL! ragflow-server | ragflow-server | __
ragflow-server | /
\ ____ / // /_ _ ragflow-server | / // // // __// /_ / // | | /| / / ragflow-server | / , // // // // // / / // // /| |/ |/ / ragflow-server | // || _,/ _, /// // __/ |/|/
ragflow-server | /__
/
ragflow-server | ragflow-server |
ragflow-server | [INFO] [2024-09-16 19:33:32,846] [_internal._log] [line:96]: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. ragflow-server | Running on all addresses (0.0.0.0) ragflow-server | Running on http://127.0.0.1:9380 ragflow-server | * Running on http://172.19.0.6:9380 ragflow-server | [INFO] [2024-09-16 19:33:32,888] [_internal._log] [line:96]: Press CTRL+C to quit

Linnnkkk commented 1 week ago

docker compose down -v (remove all the local data) docker compose up

it works,thx