ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question] I was wondering why when I upload a PDF document (which contains images), and click to analyze it, the process gets stuck and no error message appears?

Open 13416157913 opened this issue 1 year ago • 14 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

1

Commit ID

1

Other environment information

No response

Actual behavior

您好,请问为什么上传PDF文档后(PDF文档包含图片),点击解析,怎么一直卡住,也没有报错? image

Expected behavior

No response

Steps to reproduce

1

Additional information

No response

13416157913 avatar Jul 10 '24 07:07 13416157913

+1

opriz avatar Jul 10 '24 07:07 opriz

My case is very strange, I used master branch build image, and ragflow server can parse documents. But i down the server and run again, the parser didn't work.

iamlaobie avatar Jul 10 '24 17:07 iamlaobie

ps aux|grep task There should be a procedure named task_executor. Check Redis connection.

KevinHuSh avatar Jul 11 '24 01:07 KevinHuSh

ps aux|grep task There should be a procedure named task_executor. Check Redis connection.

image

13416157913 avatar Jul 11 '24 04:07 13416157913

ps aux|grep task There should be a procedure named task_executor. Check Redis connection.

the task_executor procedure exist, but task running all the time. image

13416157913 avatar Jul 11 '24 04:07 13416157913

Embedding takes time with CPU.

KevinHuSh avatar Jul 12 '24 03:07 KevinHuSh

Embedding takes time with CPU.

how to set Embedding with GPU?

13416157913 avatar Jul 12 '24 08:07 13416157913

Change docker-compose.ymal a bit. Refer to this

KevinHuSh avatar Jul 15 '24 01:07 KevinHuSh

same issue。 QQ20240717-090514

chengyuansen avatar Jul 17 '24 01:07 chengyuansen

same issue。 QQ20240717-090514

同样的问题,你解决了没?

adzhua avatar Jul 18 '24 10:07 adzhua

same issue。 QQ20240717-090514

同样的问题,你解决了没?

不要批量解析,要一个一个解析,一个解析好了之后再点击下一个。我2000+文件基本把我搞半死。 感觉批量解析应该有bug,使用批量解析了好几天总是卡死。

chengyuansen avatar Jul 18 '24 10:07 chengyuansen

same issue。 QQ20240717-090514

同样的问题,你解决了没?

不要批量解析,要一个一个解析,一个解析好了之后再点击下一个。我2000+文件基本把我搞半死。 感觉批量解析应该有bug,使用批量解析了好几天总是卡死。

我这边一个一个解析也是一样的问题;

13416157913 avatar Jul 19 '24 03:07 13416157913

same issue。 QQ20240717-090514

同样的问题,你解决了没?

不要批量解析,要一个一个解析,一个解析好了之后再点击下一个。我2000+文件基本把我搞半死。 感觉批量解析应该有bug,使用批量解析了好几天总是卡死。

我这边一个一个解析也是一样的问题;

这么多人遇到了同样的问题,本质上是个bug。

chengyuansen avatar Jul 19 '24 05:07 chengyuansen

Embedding takes time with CPU.嵌入需要 CPU 时间。

This is actually a bug and has nothing to do with the CPU or GPU. Try to fix it PLZ @KevinHuSh

cyhasuka avatar Jul 23 '24 07:07 cyhasuka

0.14.0 system page show task-executor status. Have a try.

yuzhichang avatar Nov 25 '24 16:11 yuzhichang

ragflow:V0.13.0,我也遇到了这样的问题,卡在解析0.09%几个小时,需要重启docker才能重新正常解析。

Mr-greenplus avatar Nov 29 '24 04:11 Mr-greenplus

ragflow:v0.17同样碰到这个问题, 看task表实际任务已经完成,由于没有把task的process_msg同步给document表, 所以在页面看没有进度更新。 可能是这里异常时没有释放锁导致的。

def update_progress():
    lock_value = str(uuid.uuid4())
    redis_lock = RedisDistributedLock("update_progress", lock_value=lock_value, timeout=60)
    logging.info(f"update_progress lock_value: {lock_value}")
    while not stop_event.is_set():
        try:
            if redis_lock.acquire():
                DocumentService.update_progress()
                redis_lock.release()
            stop_event.wait(6)
        except Exception:
            logging.exception("update_progress exception")

代码修改为

def update_progress():
    lock_value = str(uuid.uuid4())
    redis_lock = RedisDistributedLock("update_progress", lock_value=lock_value, timeout=60)
    logging.info(f"update_progress lock_value: {lock_value}")
    while not stop_event.is_set():
        try:
            if redis_lock.acquire():
                DocumentService.update_progress()
                redis_lock.release()
            stop_event.wait(6)
        except Exception:
            logging.exception("update_progress exception")
            if redis_lock.acquired:
                redis_lock.release()

benni82 avatar Apr 11 '25 11:04 benni82

Is the same issue still unresolved up to now?

conkyboy avatar Jul 03 '25 16:07 conkyboy