[转]ERROR: http://rancherserver/v1 is not accessible
本文转自:http://securityer.lofter.com/post/1d0f3ee7_10c465cc
安装rancher agent时出现以下报错
[root@localhost ~]# sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/ent:v1.2.5 http://192.168.160.130:8080/v1/scripts/6A02DFC097998B0A7659:1483142400000:Eja7GMfVIFpz6o3n017UuZoNNUs
INFO: Running Agent Registration Process, CATTLE_URL=http://192.168.160.130:8080/v1
INFO: Attempting to connect to: http://192.168.160.130:8080/v1
ERROR: http://192.168.160.130:8080/v1 is not accessible (Failed to connect to 192.168.160.130 port 8080: No route to host)
ERROR: http://192.168.160.130:8080/v1 is not accessible (Failed to connect to 192.168.160.130 port 8080: No route to host)
......
原因可能是防火墙引起
[root@localhost ~]# firewall-cmd --state
running
[root@localhost ~]# systemctl stop firewalld
再次执行agent安装
[root@localhost ~]# sudo docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.5 http://192.168.160.130:8080/v1/scripts/6A02DFC097998B0A7659:1483142400000:Eja7GMfVIFpz6o3n017UuZoNNUs
INFO: Running Agent Registration Process, CATTLE_URL=http://192.168.160.130:8080/v1
INFO: Attempting to connect to: http://192.168.160.130:8080/v1
INFO: http://192.168.160.130:8080/v1 is accessible
INFO: Inspecting host capabilities
INFO: Boot2Docker: false
INFO: Host writable: true
INFO: Token: xxxxxxxx
INFO: Running registration
INFO: Printing Environment
INFO: ENV: CATTLE_ACCESS_KEY=E916F23240672F13BDB3
INFO: ENV: CATTLE_HOME=/var/lib/cattle
INFO: ENV: CATTLE_REGISTRATION_ACCESS_KEY=registrationToken
INFO: ENV: CATTLE_REGISTRATION_SECRET_KEY=xxxxxxx
INFO: ENV: CATTLE_SECRET_KEY=xxxxxxx
INFO: ENV: CATTLE_URL=http://192.168.160.130:8080/v1
INFO: ENV: DETECTED_CATTLE_AGENT_IP=172.17.0.1
INFO: ENV: RANCHER_AGENT_IMAGE=rancher/agent:v1.2.5
INFO: Launched Rancher Agent: f97c2ac8ab0d7862bc2aa694266d2379ef41de06db0e9d7ba3a44b0560758677
OK
最新文章
- 设置ubuntu 下git 的用户名和邮箱
- ASP跨域调用Webservices方法
- MySQL一些常用的时间函数
- 工作流学习——Activiti流程实例、任务管理四步曲 (zhuan)
- TYVJ P1016 装箱问题
- 面试常考的常用数据结构与算法(zz)
- AlphaDict 软件公布
- CPU使用率和Load Average的关系
- [zz]npm安装错误解决方法
- 如何使用Add-on SDK开发一个自己的火狐扩展
- POJ 3419 Difference Is Beautiful(RMQ+二分 或者 模拟)
- 关于phpMyAdmin表数据不能编辑更改的问题
- 从一道例题谈Arrays.toString()与其他String的转换方法
- orangepi one AP模式配置
- SpringMVC中post请求参数注解@requestBody使用问题
- jquery append()与html()注意项
- [yum] yum加速
- BZOJ4445 SCOI2015小凸想跑步(半平面交)
- word2vec前世今生
- Jena RDF API