简体   繁体   English

牧场服务器未在同一服务器上找到牧场代理

[英]Rancher server not finding the rancher agent on same server

Issue 问题

So my problem is that I can't get the rancher server to find the rancher agent. 所以我的问题是我无法让rancher服务器找到rancher代理。 I've looked at the Rancher Troubleshooting FAQs but that haven't helped with my issue. 我查看了Rancher疑难解答常见问题解答,但对我的问题没有帮助。 I'm using one server for both the rancher server and the agent and I'm setting the CATTLE_AGENT_IP to the IP of the physical server. 我同时将一台服务器用于rancher服务器和代理,并且将CATTLE_AGENT_IP设置为物理服务器的IP。

I'm running Ubuntu 16.04 and docker 1.12.3. 我正在运行Ubuntu 16.04和docker 1.12.3。

Iptables iptables

At first I thought it might be a firewall issue, but I've tried disabled it and no luck. 起初我以为这可能是防火墙问题,但是我尝试禁用它,也没有运气。

在此处输入图片说明

Logs 日志

Rancher agent error log message Rancher代理错误日志消息

time="2016-10-27T11:56:50Z" level="info" msg="Host not registered yet. Sleeping 1 second and trying again." Attempt=5 reportedUuid="492dc65c-6359-4a40-b6e3-89c6da704ffb" 

I feel like I've tried everything without any result. 我觉得我已经尝试了一切而没有任何结果。 Anyone have an idea what could be wrong or how I could continue to troubleshoot the problem? 任何人都知道有什么问题或如何继续解决问题?

Are you reusing the host from a previous Rancher install? 您是否正在重新使用先前Rancher安装的主机? If so, there is sometimes old credentials that are tried instead of the new ones for the host. 如果是这样,有时会尝试使用旧的凭据,而不是主机的新凭据。 The files are in /var/lib/rancher . 这些文件位于/var/lib/rancher (they are .files so you need ls -a to view) (它们是.files,因此您需要ls -a来查看)

If you are using a self signed SSL cert it will fail to register if you are not bind mounting the CA root cert. 如果您使用的是自签名SSL证书,那么如果您未绑定安装CA根证书,它将无法注册。 See http://docs.rancher.com/rancher/v1.2/en/installing-rancher/installing-server/basic-ssl-config/ the last section "Adding Hosts" for more info. 有关更多信息,请参见http://docs.rancher.com/rancher/v1.2/en/installing-rancher/installing-server/basic-ssl-config/最后一节“添加主机”。

I solved my issue. 我解决了我的问题。 The problem was a faulty CATTLE_AGENT_IP . 问题出在CATTLE_AGENT_IP Apparently you can not have http:// before the IP address. 显然您不能在IP地址前使用http://

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM