Git报错处理

目录

clone报错:x509: certificate signed by unknown authority

lfs报错:Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository

Failed to connect to xxx.xxx.com port 8080: No route to host


clone报错:x509: certificate signed by unknown authority

Error downloading object: model-00001-of-00008.safetensors (ed3ac49): Smudge error: Error downloading model-00001-of-00008.safetensors (ed3ac4983f682a999b0e4b6f072aad294c4fd9a7e968e90835ba5c4b466d3c7c): LFS: Get https://cdn-lfs.huggingface.co/repos/XXX: x509: certificate signed by unknown authority

Errors logged to Qwen-7B-Chat/.git/lfs/objects/logs/20231220T074511.758960773.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: model-00001-of-00008.safetensors: smudge filter lfs failed

解决:

GIT_SSL_NO_VERIFY=1 git clone https://huggingface.co/Qwen/Qwen-7B-Chat

注:大文件可能需要下载几个小时,一直不显示大文件的进度是正常的


lfs报错:Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository

Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any of the parent directories): .git\n"
Git LFS initialized.

解决:

git init
git lfs install

Failed to connect to xxx.xxx.com port 8080: No route to host

Cloning into 'Qwen1.5-14B-Chat'...
fatal: unable to access 'https://huggingface.co/Qwen/Qwen1.5-14B-Chat/': Failed to connect to xxx.xxx.com port 8080: No route to host

解决:

可能是路由配置有误,如果存在某个路由导致目标IP指向错误的网关,删除该网关路由。

route
route del -net 172.18.0.0/16

详见:Conda报错解决:ProxyError: Conda cannot proceed due to an error in your proxy configuration.-优快云博客


参考资料:

https://stackoverflow.com/questions/60349972/git-lfs-give-x509-certificate-signed-by-unknown-authority

ubuntu20.04 安装 Git LFS - 知乎

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值