Skip to content

[Bug fixed]: mysql startup error in macos #5893

Open
@liefdiy

Description

@liefdiy

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

v0.16.0

RAGFlow image version

0.16.0

Other environment information

Actual behavior

I followed these steps to try to startup in my Macbook Pro M3

git clone https://github.com/infiniflow/ragflow.git
pip install huggingface_hub nltk

docker build --build-arg ARCH=arm64 -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build --build-arg ARCH=arm64 -f Dockerfile -t infiniflow/ragflow:nightly .

docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly .

docker compose -f docker/docker-compose-macos.yml up -d

Everything was going smoothly until the final step. There's always a MySQL startup error that shows up, stating something like 'can't downgrade MySQL 90200 to 80039'. But I only pulled the MySQL 8.0.39 image. How did this happen?

After so many attempts, e.g issue4124, it doesn't work.

Finnally, I found that the issue was here: there was no mysql_data directory on my local machine. Therefore, I made the following modifications and finally succeeded in running the container. There is the way:

Image

Expected behavior

No response

Steps to reproduce

Build on Mac M3, and docker compose -f docker/docker-compose-macos.yml up -d

Additional information

I hope this is useful for you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions