netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.92k stars 1.16k forks source link

docker compose -f docker-compose-win.yaml up 起来报这个错 #519

Closed lizhichao999 closed 2 months ago

lizhichao999 commented 2 months ago

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

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

当前行为 | Current Behavior

2024-09-12 10:38:41 scripts/entrypoint.sh: line 2: $'\r': command not found 2024-09-12 10:38:41 scripts/entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' '024-09-12 10:38:41 scripts/entrypoint.sh: line 3:check_log_errors() { 2024-09-12 10:39:57 scripts/entrypoint.sh: line 2: $'\r': command not found 2024-09-12 10:39:57 scripts/entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' '024-09-12 10:39:57 scripts/entrypoint.sh: line 3:check_log_errors() { 2024-09-12 10:41:06 scripts/entrypoint.sh: line 2: $'\r': command not found 2024-09-12 10:41:06 scripts/entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' '024-09-12 10:41:06 scripts/entrypoint.sh: line 3:check_log_errors() {

期望行为 | Expected Behavior

正常启动

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA:
- Docker Compose:
- NVIDIA GPU Memory:
666

QAnything日志 | QAnything logs

2024-09-12 10:38:41 scripts/entrypoint.sh: line 2: $'\r': command not found 2024-09-12 10:38:41 scripts/entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' '024-09-12 10:38:41 scripts/entrypoint.sh: line 3:check_log_errors() { 2024-09-12 10:39:57 scripts/entrypoint.sh: line 2: $'\r': command not found 2024-09-12 10:39:57 scripts/entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' '024-09-12 10:39:57 scripts/entrypoint.sh: line 3:check_log_errors() { 2024-09-12 10:41:06 scripts/entrypoint.sh: line 2: $'\r': command not found 2024-09-12 10:41:06 scripts/entrypoint.sh: line 3: syntax error near unexpected token $'{\r'' '024-09-12 10:41:06 scripts/entrypoint.sh: line 3:check_log_errors() {

复现方法 | Steps To Reproduce

666

备注 | Anything else?

666

lizhichao999 commented 2 months ago

已解决

EchoWht commented 1 month ago

entrypoint.sh文件编码问题,自己重新创建一下这个文件,然后把代码复制进去,然后删掉对应的容器,重新启动

image

bigbear20240612 commented 4 days ago

已解决

如何解决的