ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: ragflow-server failed to start: OSError: [Errno loading yaml file config from /ragflow/conf/service_conf.yaml failed:] [Errno 2] No such file or directory: '/ragflow/conf/service_conf.yaml'

Open lzc970718 opened this issue 1 year ago • 9 comments

Describe your problem

想运行带embedding的镜像,按照readme里面的方式,修改了RAGFLOW_IMAGE=infiniflow/ragflow:dev,启动ragflow-server会报错找不到service_conf这个文件,我手动把这个文件拷进去,运行则会报错连不上es01,这是为什么?我运行dev-slim这个版本是没有问题可以正常使用的。

lzc970718 avatar Nov 15 '24 00:11 lzc970718

We didn't meet this issue before. Try to follow the install instruction to setup the environment again.

JinHai-CN avatar Nov 15 '24 03:11 JinHai-CN

As for the ES connection issues, following reasons can be considered:

  1. ES is 'down'
  2. Domain name can be resolved, check if /etc/hosts is updated. Or IP address / port is mismatched.

JinHai-CN avatar Nov 15 '24 04:11 JinHai-CN

Same issue. Solved by using: RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev

Joctor avatar Nov 15 '24 06:11 Joctor

遇到了相同的问题,v0.13.0版本,进入argflow-server容器内,进入/ragflow/conf/service_conf.yaml,文件链接到/ragflow/docker/service.yaml,发现并没有这个路径及文件存在

Oceanhuhy avatar Nov 15 '24 07:11 Oceanhuhy

Same here. v0.13.0 and 0.13.0-slim didn't work, dev and dev-slim works.

RichardCapricorn avatar Nov 17 '24 10:11 RichardCapricorn

docker pull the dev version of image and git pull the latest code.

Describe your problem

想运行带embedding的镜像,按照readme里面的方式,修改了RAGFLOW_IMAGE=infiniflow/ragflow:dev,启动ragflow-server会报错找不到service_conf这个文件,我手动把这个文件拷进去,运行则会报错连不上es01,这是为什么?我运行dev-slim这个版本是没有问题可以正常使用的。

KevinHuSh avatar Nov 18 '24 01:11 KevinHuSh

运行slim会出现这个情况,但是运行老版本就没有问题

Childelikep avatar Nov 22 '24 08:11 Childelikep

last slim version, same issue, help!

TangentDeng avatar Feb 14 '25 00:02 TangentDeng

试试看是不是文件结构错误,我在云平台使用git拉取后,没有ragflow文件夹,我尝试手动构建ragflow,然后将其他文件放入这个目录后,再次使用docker-compose.yml 运行后,日志显示服务启动成功

2025-03-04 02:16:30,739 WARNING  26463 Missing synonym.json
2025-03-04 02:16:30,739 WARNING  26463 Realtime synonym is disabled, since no redis connection.
2025-03-04 02:16:30,739 WARNING  26463 Fail to load synonym
2025-03-04 02:16:30,739 INFO     26463 MAX_CONTENT_LENGTH: 134217728
2025-03-04 02:16:30,739 INFO     26463 SERVER_QUEUE_MAX_LEN: 1024
2025-03-04 02:16:30,739 INFO     26463 SERVER_QUEUE_RETENTION: 3600
2025-03-04 02:16:30,739 INFO     26463 MAX_FILE_COUNT_PER_USER: 0
2025-03-04 02:16:32,196 INFO     26463 init web data success:1.20560622215271
2025-03-04 02:16:32,197 INFO     26463 RAGFlow HTTP server start...
2025-03-04 02:16:32,198 INFO     26463 WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:9380
 * Running on http://172.18.0.6:9380
2025-03-04 02:16:32,198 INFO     26463 Press CTRL+C to quit
2025-03-04 02:16:34,807 INFO     26464 generated new fontManager
2025-03-04 02:16:46,850 INFO     26464 
  ______           __      ______                     __            
 /_  __/___ ______/ /__   / ____/  _____  _______  __/ /_____  _____
  / / / __ `/ ___/ //_/  / __/ | |/_/ _ \/ ___/ / / / __/ __ \/ ___/
 / / / /_/ (__  ) ,<    / /____>  </  __/ /__/ /_/ / /_/ /_/ / /    
/_/  \__,_/____/_/|_|  /_____/_/|_|\___/\___/\__,_/\__/\____/_/                               

|ragflow/ |---agent/ |----api/ |--docker/ |----conf/ |-- ..../

sansWl avatar Mar 03 '25 18:03 sansWl

我用华为云拉取的镜像,ragflow-servier报相同的错误:OSError: [Errno loading yaml file config from /ragflow/conf/service_conf.yaml failed:] [Errno 2] No such file or directory: '/ragflow/conf/service_conf.yaml' 但是进入容器查看文件是存在的

Image

chunemo avatar Mar 19 '25 02:03 chunemo

我用华为云拉取的镜像,ragflow-servier报相同的错误:OSError: [Errno loading yaml file config from /ragflow/conf/service_conf.yaml failed:] [Errno 2] 没有这样的文件或目录: '/ragflow/conf/service_conf.yaml' 但是进入容器查看文件是存在的

图像

您好,问题解决了吗,我也是这种情况

RevCol9 avatar Apr 05 '25 12:04 RevCol9