QAnything icon indicating copy to clipboard operation
QAnything copied to clipboard

[BUG] log未见任何异常,但是页面一直loading,也无法创建知识库

Open w19787 opened this issue 1 year ago • 6 comments

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • [X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • [X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

bash run.sh 后,服务启动正常

image

登录页面: http://localhost:5052/qanything#/home

问题:

  1. 页面一直loading动画 image

  2. 创建知识库报500错误 image

期望行为 | Expected Behavior

页面正常,同时可以添加知识库

运行环境 | Environment

- OS: Windows 10 专业
- NVIDIA Driver: docker
- CUDA: docker
- Docker Compose:标准docker
- NVIDIA GPU Memory: 24GB (P6000)

QAnything日志 | QAnything logs

UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content rerank_port: 10001 embed_port: 10001 [2024-01-21 14:17:30 +0800] [858] [INFO] Sanic Extensions: [2024-01-21 14:17:30 +0800] [858] [INFO] > injection [0 dependencies; 0 constants] [2024-01-21 14:17:30 +0800] [858] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-01-21 14:17:30 +0800] [858] [INFO] > http [2024-01-21 14:17:30 +0800] [858] [INFO] > templating [jinja2==3.1.3] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content rerank_port: 10001 embed_port: 10001 [2024-01-21 14:17:30 +0800] [855] [INFO] Sanic Extensions: [2024-01-21 14:17:30 +0800] [855] [INFO] > injection [0 dependencies; 0 constants] [2024-01-21 14:17:30 +0800] [855] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-01-21 14:17:30 +0800] [855] [INFO] > http [2024-01-21 14:17:30 +0800] [855] [INFO] > templating [jinja2==3.1.3] init local_doc_qa in local init local_doc_qa in local [2024-01-21 14:17:30 +0800] [858] [INFO] Starting worker [858] [2024-01-21 14:17:30 +0800] [855] [INFO] Starting worker [855] UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content rerank_port: 10001 embed_port: 10001 [2024-01-21 14:17:30 +0800] [856] [INFO] Sanic Extensions: [2024-01-21 14:17:30 +0800] [856] [INFO] > injection [0 dependencies; 0 constants] [2024-01-21 14:17:30 +0800] [856] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-01-21 14:17:30 +0800] [856] [INFO] > http [2024-01-21 14:17:30 +0800] [856] [INFO] > templating [jinja2==3.1.3] init local_doc_qa in local UPLOAD_ROOT_PATH: /workspace/qanything_local/QANY_DB/content rerank_port: 10001 embed_port: 10001 [2024-01-21 14:17:31 +0800] [857] [INFO] Sanic Extensions: [2024-01-21 14:17:31 +0800] [857] [INFO] > injection [0 dependencies; 0 constants] [2024-01-21 14:17:31 +0800] [857] [INFO] > openapi [http://0.0.0.0:8777/docs] [2024-01-21 14:17:31 +0800] [857] [INFO] > http [2024-01-21 14:17:31 +0800] [857] [INFO] > templating [jinja2==3.1.3] [2024-01-21 14:17:31 +0800] [856] [INFO] Starting worker [856] init local_doc_qa in local [2024-01-21 14:17:31 +0800] [857] [INFO] Starting worker [857]

复现方法 | Steps To Reproduce

No response

备注 | Anything else?

No response

w19787 avatar Jan 21 '24 10:01 w19787

add localhost to user_config file and restart service. it works

w19787 avatar Jan 21 '24 12:01 w19787

add localhost to user_config file and restart service. it works

Any more specific instructions? I saw the line "localhost" in my user.config file already and restarted the container. It never works.

EricLiuAno avatar Jan 22 '24 03:01 EricLiuAno

add localhost to user_config file and restart service. it works

Any more specific instructions? I saw the line "localhost" in my user.config file already and restarted the container. It never works.

你要描述下你的现象,是否和我一样?

w19787 avatar Jan 22 '24 12:01 w19787

添加当前主机的IP到QAnything/user.config中

# cat user.config 
172.20.0.35

# bash run.sh

tghfly avatar Jan 22 '24 14:01 tghfly

添加当前主机的IP到QAnything/user.config中

# cat user.config 
172.20.0.35

# bash run.sh

已经检查了user文件,但是重新启动之后还是面临同样的报错。求解答

Cordy27 avatar Feb 15 '24 19:02 Cordy27

遇到同样的问题, 检查.env.production中的VITE_APP_API_HOST是否配置正确, 原因是在输入服务器公网IP地址时输入过删除键,将front_end/dist删除以后重新输入服务器公网IP地址

qwe305 avatar Feb 28 '24 02:02 qwe305