1.1K Star 6.1K Fork 4.9K

OpenHarmony / docs

 / 详情

主页资料无法正常下载项目

已完成
缺陷
创建于  
2021-06-11 11:51

【任务描述】
repo初始化。

repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
输入图片说明

按照doc文档,2.0代码下载报错,多次尝试均无法正常走下去,请核实流程或文档的正确性

【解决方案】

输入图片说明

未验证相关方案有效性。
建议及时分析并给出正式方案和措施,项目主页资料,否则会影响很多开发者及误导外部开发人员

【任务来源】

评论 (10)

Zhangfeng 创建了缺陷
Zhangfeng 关联仓库设置为OpenHarmony/docs
展开全部操作日志

Hi开发者,是否方便提供下具体页面的链接?方便我们定位问题,谢谢~
是否是如下页面?
zh-cn/device-dev/get-code/源码获取.md

https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/%E6%BA%90%E7%A0%81%E8%8E%B7%E5%8F%96.md

获取标准系统源码(2.0 Canary) -> 4. 更新代码。 执行4中的命令过程中会遇到问题

麻烦将init命令替换为:repo init -u git@gitee.com:openharmony/manifest.git -b master --no-repo-verify 尝试,请注意需要注册公钥

NEEN 添加了doc-bug(已删除)标签
Zhangfeng 修改了描述
NEEN 负责人设置为Mark
Mark 任务状态待办的 修改为已确认

当前默认使用的是http协议,没有ssh稳定,导致下载是可能会失败。
目前正在修复处理中。感谢提的建议,我们在资料文档中也会同步更新说明。

Resolving deltas: 100% (8391/8391), done.
fatal: the remote end hung up unexpectedly 1.04 GiB | 1.75 MiB/s
cts: 17% (1086732/6319351), 510.68 MiB | 1.21 MiB/s
fatal: early EOF
fatal: index-pack failed
kernel_linux:
remote: Enumerating objects: 6319351, done.
remote: Counting objects: 100% (4283/4283), done.
remote: Compressing objects: 100% (164/164), done.
fatal: the remote end hung up unexpectedly 1.04 GiB | 1.75 MiB/s
fatal: early EOF
fatal: index-pack failed

remote: Enumerating objects: 6319351, done.
remote: Counting objects: 100% (4283/4283), done.
remote: Compressing objects: 100% (164/164), done.
Receiving objects: 6% (431634/6319351), 199.50 MiB | 1.23 MiB/s

fatal: the remote end hung up unexpectedly 1.04 GiB | 1.65 MiB/s
fatal: early EOF
fatal: index-pack failed
kernel_linux:
remote: Enumerating objects: 6319351, done.
remote: Counting objects: 100% (4283/4283), done.
remote: Compressing objects: 100% (164/164), done.
fatal: the remote end hung up unexpectedly 1.04 GiB | 1.65 MiB/s
fatal: early EOF
fatal: index-pack failed

error: Cannot fetch kernel_linux from
https://openharmony.gitee.com/openharmony/kernel_linux

Fetching projects: 100% (221/221), done.

我这每次均会失败,失败提示里面均包含“Cannot fetch kernel_linux from
https://openharmony.gitee.com/openharmony/kernel_linux” 感觉在拉取特定文件时就会出错

另外,尝试使用
repo init -u https://gitee.com/openharmony/manifest.git -b ssh/master --no-repo-verify

会提示一些key fingerprint等提示(回显提示有多条重复),按照提示也无法操作下去
zhangfeng@DESKTOP-31JH2DI:~/project/OpenHarmony$ repo sync -c The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Please type 'yes', 'no' or the fingerprint: yes Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
applications_camera_sample_communication:
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

The authenticity of host 'gitee.com (180.97.125.228)' can't be established.
ECDSA key fingerprint is SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc
Please type 'yes', 'no' or the fingerprint:
SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc
Please type 'yes', 'no' or the fingerprint:
SHA256:FQGC9Kn/eye1W8icdBgrQp+KkGYoFgbVr17bmjey0Wc
Please type 'yes', 'no' or the fingerprint: yes Please type 'yes', 'no' or the fingerprint: ^Cerror: Cannot fetch applications_camera_screensaver_app from git@gitee.com:openharmony/applications_camera_screensaver_app
Fetching projects: 0% (1/221)
applications_camera_screensaver_apperror: Cannot fetch applications_sample_camera from git@gitee.com:openharmony/applications_sample_camera
Fetching projects: 0% (2/221) applications_sample_cameraaborted by user
error: Cannot fetch applications_sample_wifi_iot from git@gitee.com:openharmony/applications_sample_wifi_iot
Fetching projects: 1% (3/221)
applications_sample_wifi_iotzhangfeng@DESKTOP-31JH2DI:/project/OpenHarmony$
zhangfeng@DESKTOP-31JH2DI:
/project/OpenHarmony$

ssh 校验,输入yes 无法成功校验的问题(原因不明),采用如下方式规避:
修改操作系统 /etc/ssh/ssh_config 配置
#StrictHostKeyChecking ask 改成 StrictHostKeyChecking no

你上面那个改成ssh/master后的报错,看着像是没有添加ssh公钥,在获取源码前面有个前提条件,配置ssh公钥以及添加git配置信息。
配置ssh公钥的可以直接看这个:https://gitee.com/help/articles/4181#article-header0

zhangfeng@DESKTOP-31JH2DI:~/project/wifi_0612/communication_wifi$ ssh -T git@gitee.com
Hi Zhangfeng! You've successfully authenticated, but GITEE.COM does not provide shell access.

公钥很早之前就添加了,测试也是正常的。

使用
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
后可以 repo sync -c

但是使用
repo init -u https://gitee.com/openharmony/manifest.git -b ssh/master --no-repo-verify
后repo sync -c 就会出以下问题

Ubuntu 14:37:48 $repo sync -c
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/home/disk/lyf/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/disk/lyf/.ssh/id_rsa": bad permissions
git@gitee.com: Permission denied (publickey).
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/home/disk/lyf/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/disk/lyf/.ssh/id_rsa": bad permissions
git@gitee.com: Permission denied (publickey).
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/home/disk/lyf/.ssh/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/home/disk/lyf/.ssh/id_rsa": bad permissions
git@gitee.com: Permission denied (publickey).
fatal: Could not read from remote repository.


gitee端的公钥一直没变过,和本地.ssh 里面是对应上的

秘钥文件权限需要设置为600当前权限太大,可以执行下面的命令修改文件权限

chmod 600 '/home/disk/lyf/.ssh/id_rsa'
Mark 任务状态已确认 修改为已完成
Mark 移除了doc-bug(已删除)标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs

搜索帮助