本文档仅作为个人学习记录!
1.未关闭selinux,第一次部署失败(根据红色字体排查得知)
prepare base dir is set to /home/Smartbi_Base/registry_images/harbor
docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"write /proc/self/attr/keycreate: permission denied\"": unknown.
ERRO[0004] error waiting for container: context canceled
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get http://192.168.190.22:5000/v2/: dial tcp 192.168.190.22:5000: connect: connection refused
Error: harbor Installation failed,Please check.

解决方案--关闭selinux.
临时关闭selinux,立即生效,不需要重启服务器。
setenforce 0
永久关闭selinux,修改完配置后需要重启服务器才能生效
sed -i 's/=enforcing/=disabled/g' /etc/selinux/config
2.端口被占用,无法连接 rancher控制台(根据红色字体排查得知)
docker ps -a |grep rancher

查看rancher的启动情况,发现rancher没有启动成功,如果启动成功 2 hours ago 会有up,重新启动rancher
docker restart smartbi-rancher
Error response from daemon: Cannot restart container smartbi-rancher: driver failed programming external connectivity on endpoint smartbi-rancher (81d46f5a756fca1a4c9b3d92de38345687b9ac09920a29fa21ae0e3c6ae6dd83): Error starting userland proxy: listen tcp 0.0.0.0:8443: bind: address already in use

rancher启动失败,分析报错提示,为8443端口被占用导致的
netstat -tlnp|grep 8443 # 查看8443端口情况

8443端口确实被占用,kill 1856进程,在重新启动rancher服务。
启动成功!!!!
正常连接rancher控制台(控制台登录方式:http://服务器IP:8088)

在部署Rancher过程中遇到错误,首次部署因未关闭Selinux失败,错误信息涉及权限拒绝。解决方法包括临时和永久关闭Selinux。此外,Rancher启动失败由于8443端口被占用,通过杀死占用进程并重启Rancher服务后,成功启动并能正常连接控制台。
1063

被折叠的 条评论
为什么被折叠?



