eip-work / kuboard-spray

使用图形化的界面离线安装、维护、升级高可用的 K8S 集群
https://kuboard-spray.cn
Apache License 2.0
1.67k stars 165 forks source link

Timeout (12s) waiting for privilege escalation prompt #13

Closed tianmafly closed 2 years ago

tianmafly commented 2 years ago

ubuntu20.04,kuboard spray安装k8s。

设置切换身份,使用管理员权限后,出现错误 TASK [bootstrap-os : Ensure bash_completion.d folder exists] *** fatal: [master]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "}

NO MORE HOSTS LEFT *****

如果不切换身份,则出现权限错误: TASK [os-services/roles/prepare : Disable service ufw] ***** fatal: [master]: FAILED! => {"changed": false, "msg": "Unable to disable service ufw: Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.\nExecuting: /lib/systemd/systemd-sysv-install disable ufw\nFailed to reload daemon: Interactive authentication required.\nupdate-rc.d: error: Permission denied\n"}

应该怎么设置呢?

baozitao commented 2 years ago

设置用户名为root 不设置用户切换 设置root密码 上传root访问私钥

shaohq commented 2 years ago

请使用 root 用户