Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mingxiangyu opened this issue Apr 3, 2023 · 4 comments

Comments

@Mingxiangyu
Copy link

下面是构建时的报错:

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
Copy link
Author

找到问题了,修改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
Copy link
Author

国内的网,没法下载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
Copy link

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

@Mingxiangyu
Copy link
Author

放弃了这个项目。> >

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants