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

[求助/Help] 上传大容量镜像失败 #19883

Closed
xxhacker opened this issue Apr 4, 2024 · 14 comments
Closed

[求助/Help] 上传大容量镜像失败 #19883

xxhacker opened this issue Apr 4, 2024 · 14 comments
Labels

Comments

@xxhacker
Copy link

xxhacker commented Apr 4, 2024

我有一个大概1.2T的镜像文件要上传,每次都上传到750G的时候都提示失败,已经好多次了,如果下图所示:
Snipaste_2024-04-04_18-25-35
Quicker_20240404_182647
我查看了glance所在的机器根分区大小为1.6T,我又查看了glance组件,查看配置文件 /etc/yunion/glance.conf好像也没有什么挂载大小或者容量的限制,但是看到s3fs挂载的时候只有256G不知道跟这个有没有关系,如果有关系的话怎么调大它
Snipaste_2024-04-04_18-29-31

@xxhacker xxhacker added the question Further information is requested label Apr 4, 2024
@ioito
Copy link
Collaborator

ioito commented Apr 7, 2024

same as #13425, 如果改nginx超时时间依然不行,那就只能用climc上传,这个不会经过nginx,一般不会失败

@xxhacker
Copy link
Author

xxhacker commented Apr 7, 2024

@ioito 我这个本来就是不通过网页方式传的,是直接执行命令climc image-upload方式上传的

@ioito
Copy link
Collaborator

ioito commented Apr 7, 2024

哦,目前框架内超时时间最长是2小时,如果要上传这么大的镜像,需要改如下代码,#19888

@xxhacker
Copy link
Author

xxhacker commented Apr 7, 2024

@ioito 我看日志是到2个小时时候中断了,如果我修改的话,怎么改了,我用的版本是3.10.4

@ioito
Copy link
Collaborator

ioito commented Apr 7, 2024

#19888 按这个改,然后重新打glance镜像,替换自己的环境

@xxhacker
Copy link
Author

xxhacker commented Apr 7, 2024

@ioito 有文档可以参考不

@xxhacker
Copy link
Author

xxhacker commented Apr 7, 2024

@ioito 不好意思,第一次编译镜像,碰到这个问题,不知道怎么解决
1712477469261

@ioito
Copy link
Collaborator

ioito commented Apr 7, 2024

你的环境有没有开selinux权限之类的东西,这个报错是指你当前的这个root用户没有chown&stat文件的权限

@xxhacker
Copy link
Author

xxhacker commented Apr 7, 2024

@ioito 我查看了一下,是开了selinux,然后关掉后,重启机器后,报错更多了
1712479095023

@ioito
Copy link
Collaborator

ioito commented Apr 7, 2024

依然是权限问题,这个需要你自己解决

@xxhacker
Copy link
Author

xxhacker commented Apr 7, 2024

@ioito 不好意思,权限问题我自己解决了,又碰到了这个问题,感觉好像少了个横杠
1712480747427

@ioito
Copy link
Collaborator

ioito commented Apr 7, 2024

可能是docker版本不一致,你按整个文档,从头开始操作

Copy link

If you do not provide feedback for more than 37 days, we will close the issue and you can either reopen it or submit a new issue.

您超过 37 天未反馈信息,我们将关闭该 issue,如有需求您可以重新打开或者提交新的 issue。

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

No branches or pull requests

2 participants