daodao97 / chatdoc

Chat with your doc by openai
456 stars 105 forks source link

大佬你好,为什么我用docker-compose构建后提示早不到启动命令呢?前端后端都是这样 #15

Open Mingxiangyu opened 1 year ago

Mingxiangyu commented 1 year ago

下面是构建时的报错:

chatdoc-backend | Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (22.0.4)
chatdoc-backend | Collecting pip
chatdoc-backend |   Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
chatdoc-backend |      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 3.6 MB/s eta 0:00:00
chatdoc-backend | Installing collected packages: pip
chatdoc-backend |   Attempting uninstall: pip
chatdoc-backend |     Found existing installation: pip 22.0.4
chatdoc-backend |     Uninstalling pip-22.0.4:
chatdoc-backend |       Successfully uninstalled pip-22.0.4
chatdoc-backend | Successfully installed pip-23.0.1
chatdoc-backend | WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
chatdoc-backend | /bin/sh: 3: ./start: not found
chatdoc-backend exited with code 127
chatdoc-frontend |
chatdoc-frontend | added 1 package in 9s
chatdoc-frontend |
chatdoc-frontend | 1 package is looking for funding
chatdoc-frontend |   run `npm fund` for details
chatdoc-frontend | npm notice
chatdoc-frontend | npm notice New minor version of npm available! 9.5.1 -> 9.6.3
chatdoc-frontend | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.3>
chatdoc-frontend | npm notice Run `npm install -g npm@9.6.3` to update!
chatdoc-frontend | npm notice
chatdoc-frontend | /bin/sh: 3: ./start: not found
chatdoc-frontend exited with code 127

这个是启动时的报错,感觉好像是这个启动命令没有拷贝到镜像中?


1 package is looking for funding

run `npm fund` for details

npm notice

npm notice New minor version of npm available! 9.5.1 -> 9.6.3

npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.3>

npm notice Run `npm install -g npm@9.6.3` to update!

npm notice

/bin/sh: 3: ./start: not found

changed 1 package in 342ms

1 package is looking for funding

run `npm fund` for details

/bin/sh: 3: ./start: not found

changed 1 package in 350ms

1 package is looking for funding

run `npm fund` for details

/bin/sh: 3: ./start: not found

changed 1 package in 322ms

1 package is looking for funding

run `npm fund` for details

/bin/sh: 3: ./start: not found
Mingxiangyu commented 1 year ago

找到问题了,修改docker-compose.yml文件内启动命令 ./start 为 sh start

问题原因
是[Ubuntu](https://so.csdn.net/so/search?q=Ubuntu&spm=1001.2101.3001.7020)上的sh脚本中的换行符出现了问题。
解决方法:
运行命令 :sed -i 's/\r$//' xxx.sh(替换为自己的命令)
Mingxiangyu commented 1 year ago

国内的网,没法下载GitHub上的llama模型,每回都报错

 requests.exceptions.ConnectionError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443):
 Max retries exceeded with url: /emptycrown/loader-hub/main/loader_hub/library.json
 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0ca3e900a0>:
 Failed to establish a new connection: [Errno 111] Connection `refused'))

太无奈了,这个还没法注释


CJKPDFReader = download_loader("CJKPDFReader")
SimpleWebPageReader = `download_loader("SimpleWebPageReader")```
zhangyue0503 commented 1 year ago

我也是这个问题,开vpn了也不行,必须得买个外网服务器吗?大佬有找到什么解决方案不?

Mingxiangyu commented 1 year ago

放弃了这个项目。> >

我也是这个问题,开vpn了也不行,必须得买个外网服务器吗?大佬有找到什么解决方案不?