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] 统信UOS桌面专业版AMD64安装监控agent报错,Deploy guest fs: request deploy guest fs: rpc error: code = Unknown desc = deploy telegraf: add crontab /var/spool/cron: No such file or directory /var/spool/cron: mkdir: No such file or directory #18824

Closed
baiweiyll opened this issue Nov 30, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@baiweiyll
Copy link

cloudpods版本:3.9.12
宿主机 :X86架构 Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz
虚拟机镜像 :统信UOS桌面专业版AMD64 https://www.chinauos.com/resource/download-professional

错误信息如下:
{
"reason": "Deploy guest fs: request deploy guest fs: rpc error: code = Unknown desc = deploy telegraf: add crontab /var/spool/cron: No such file or directory\n/var/spool/cron: mkdir: No such file or directory\n: exit status 1",
"stage": "OnDeployGuestComplete",
"status": "error"
}

@baiweiyll baiweiyll added the question Further information is requested label Nov 30, 2023
@swordqiu swordqiu self-assigned this Dec 1, 2023
@zexi
Copy link
Member

zexi commented Dec 22, 2023

image

[root@office-controller ~]# ls -alh debian-12-generic-amd64-20230802-1460.qcow2
-rw-r--r-- 1 root root 395M Sep 4 11:11 debian-12-generic-amd64-20230802-1460.qcow2

使用 debian-12 的镜像遇到了类似的问题,会导致部署后没有用户密码。使用的是 v3.10.8 的版本。

host-deployer 日志如下:

[error 2023-12-22 09:50:44 kvmpart.(*SKVMGuestDiskPartition).Mount(kvmpart.go:115)] Mount fs failed: unsupport fs  on /dev/sda
[info 2023-12-22 09:50:44 fsutils.MountRootfs(fsutils.go:437)] detect partition /dev/sda1
[info 2023-12-22 09:50:46 guestfs.IsPartitionReadonly(core.go:219)] File system /tmp/_dev_sda1 is not readonly
[info 2023-12-22 09:50:46 kvmpart.(*SKVMGuestDiskPartition).Mount(kvmpart.go:139)] mount fs ext4 on /dev/sda1 successfully
[info 2023-12-22 09:50:47 fsutils.MountRootfs(fsutils.go:445)] Use rootfs DebianRootFs, partition /dev/sda1
[error 2023-12-22 09:50:47 fsdriver.(*sLinuxRootFs).GetArch(linux.go:493)] stat file /tmp/_dev_sda1/usr/lib64/ld-linux-x86-64.so.2: stat /tmp/_dev_sda1/usr/lib64/ld-linux-x86-64.so.2: no such file or directory
[error 2023-12-22 09:50:47 fsdriver.(*sLinuxRootFs).GetArch(linux.go:493)] stat file /tmp/_dev_sda1/lib64/ld-linux-x86-64.so.2: stat /tmp/_dev_sda1/lib64/ld-linux-x86-64.so.2: no such file or directory
[info 2023-12-22 09:50:47 guestfs.IsPartitionReadonly(core.go:219)] File system /tmp/_dev_sda1 is not readonly
[error 2023-12-22 09:50:49 fsutils.DeployGuestfs(fsutils.go:478)] guestfs.DoDeployGuestFs fail deploy telegraf: add crontab sh: 1: crontab: not found
: exit status 127
[info 2023-12-22 09:50:52 kvmpart.(*SKVMGuestDiskPartition).Umount(kvmpart.go:294)] umount /dev/sda1: /tmp/_dev_sda1
[info 2023-12-22 09:50:52 kvmpart.(*SKVMGuestDiskPartition).Umount(kvmpart.go:300)] umount /dev/sda1 successfully

[error 2023-12-22 09:50:51 deployserver.(*DeployerServer).DeployGuestFs(deployserver.go:108)] failed deploy guest fs: deploy telegraf: add crontab sh: 1: crontab: not found
[info 2023-12-22 09:50:51 monitor.(*HmpMonitor).write(hmp.go:125)] HMP Write : quit

[info 2023-12-22 09:50:51 qemu_kvm.(*QemuBaseDriver).CleanGuest(driver.go:557)] kill  process kill: cannot find process "109

@wanyaoqi

@zexi
Copy link
Member

zexi commented Dec 22, 2023

#19088
该 PR 修复此问题。

@zexi
Copy link
Member

zexi commented Dec 23, 2023

@baiweiyll 下个版本 v3.10.9 会包含修复此问题的代码

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

No branches or pull requests

3 participants