ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: The webpage keeps freezing.

Open nevesaynever1 opened this issue 1 year ago • 5 comments

Describe your problem

When I run the command "docker compose -f docker-compose-CN.yml up -d", the Docker logs will remain in the following state indefinitely. image When I log in to the corresponding website to register an account, it will always get stuck. The corresponding web page is as follows. image What is the cause of this situation?

nevesaynever1 avatar Apr 11 '24 07:04 nevesaynever1

Hey, I'm new - but it'll try to help

Did the docker image ever finish downloading?

dfalt0 avatar Apr 11 '24 07:04 dfalt0

I have downloaded the model into local machine, and executed the command "docker compose -f docker-compose-CN.yml up -d". The exception occurs: image

nevesaynever1 avatar Apr 11 '24 07:04 nevesaynever1

It says it can't connect to your ES cluster, my guess is you might have set up your environment incorrectly

Sorry if it's annoying, but did you check these:

  • what's your python version
  • have you tried deleting and spinning up from start to finish in the instructions (don't forget chmod +x ./entrypoint.sh)

The log is also saying there's an API issue too, did you edit the service_conf.yaml file "correctly" ?

dfalt0 avatar Apr 11 '24 07:04 dfalt0

is this a RTFM situation? lol

https://github.com/infiniflow/ragflow/tree/main?tab=readme-ov-file#-configurations " When it comes to system configurations, you will need to manage the following files:

[.env](https://github.com/infiniflow/ragflow/blob/main/docker/.env): Keeps the fundamental setups for the system, such as SVR_HTTP_PORT, MYSQL_PASSWORD, and MINIO_PASSWORD.
[service_conf.yaml](https://github.com/infiniflow/ragflow/blob/main/docker/service_conf.yaml): Configures the back-end services.
[docker-compose.yml](https://github.com/infiniflow/ragflow/blob/main/docker/docker-compose.yml): The system relies on [docker-compose.yml](https://github.com/infiniflow/ragflow/blob/main/docker/docker-compose.yml) to start up.

You must ensure that changes to the .env file are in line with what are in the service_conf.yaml file.

The [./docker/README](https://github.com/infiniflow/ragflow/blob/main/docker/README.md) file provides a detailed description of the environment settings and service configurations, and you are REQUIRED to ensure that all environment settings listed in the [./docker/README](https://github.com/infiniflow/ragflow/blob/main/docker/README.md) file are aligned with the corresponding configurations in the [service_conf.yaml](https://github.com/infiniflow/ragflow/blob/main/docker/service_conf.yaml) file.

To update the default HTTP serving port (80), go to docker-compose.yml and change 80:80 to <YOUR_SERVING_PORT>:80.

Updates to all system configurations require a system reboot to take effect:

$ docker-compose up -d

"

dfalt0 avatar Apr 11 '24 07:04 dfalt0

I have downloaded the model into local machine, and executed the command "docker compose -f docker-compose-CN.yml up -d". The exception occurs: image

$ docker ps (If it restarting all the time, please refer to the README.md)

91220e3285dd   docker.elastic.co/elasticsearch/elasticsearch:8.11.3   "/bin/tini -- /usr/l…"   11 hours ago   Up 11 hours (healthy)     9300/tcp, 0.0.0.0:3101->9200/tcp, :::3101->9200/tcp           ragflow-es-01

If you're using docker, check docker/service_conf.yml, this part should be correctly set.

es:
  hosts: 'http://es01:9200'

If you run outside docker, check conf/service_conf.yml

KevinHuSh avatar Apr 11 '24 08:04 KevinHuSh