Rancher: Could not find container for ranch agent

I'm trying to create a new host (DigitalOccean) using the rancher UI, everything was fine, but in the end I got this error:

"Failed to find rancher-agent container"

      

Magazines:

time="2017-07-20T09:55:57Z" level=info msg="stdout: Running pre-create checks..." resourceId: =1ph86 service=gms 
time="2017-07-20T09:55:58Z" level=info msg="stdout: Creating machine..." resourceId: =1ph86 service=gms 
time="2017-07-20T09:55:58Z" level=info msg="stdout: (oo) Creating SSH key..." resourceId: =1ph86 service=gms 
time="2017-07-20T09:55:59Z" level=info msg="stdout: (oo) Creating Digital Ocean droplet..." resourceId: =1ph86 service=gms 
time="2017-07-20T09:56:00Z" level=info msg="stdout: (oo) Waiting for IP address to be assigned to the Droplet..." resourceId: =1ph86 service=gms
...
time="2017-07-20T09:57:31Z" level=info msg="pulling rancher/agent:v1.2.5 image." service=gms 
time="2017-07-20T09:57:43Z" level=info msg="Container created for machine" containerId=5bef89f75de6fc256f0adbe1cc9c7138292aaa4bd7d8446546d208823cd8b22f machineId=1ph86 resourceId=1ph86 service=gms 
time="2017-07-20T09:58:46Z" level=error msg="Failed to find rancher-agent container" machineId=1ph86 resourceId=1ph86 service=gms 
time="2017-07-20T09:58:46Z" level=error msg="Error processing event" err="Failed to find rancher-agent container" eventId=08649e06-ddcd-445d-b120-91c0e7498835 eventName="physicalhost.bootstrap;handler=goMachineService" resourceId=1ph86 

      

any idea?

+3


source to share


1 answer


  • You need to make sure NEW HOST has Docker image rancher/agent:v1.2.5

    .

Using the following command:

# sudo docker images|grep rancher/agent
rancher/agent  v1.2.2  6777bc8a1147  3 months ago  233.7 MB

      

If the host doesn't have a docker image then use it sudo docker pull rancher/agent:v1.2.5



  1. Then checking the container logs rancher agent

    .

Using the following command:

# sudo docker ps -a |grep rancher/agent
1c03d064165c  rancher/agent:v1.2.2  "/run.sh run"  5 days ago  Up 5 days  rancher-agent

# sudo docker logs 1c03d064165c

      

  • If you find this container, even its status Exited\Created\Dead

    , read its logs carefully and find solutions to this error by asking Google \ Github;

  • If you cannot find this container, read the file docker-compose.yml

    and rancher-compose.yml

    make sure you get the right docker image , include the correct image version .

0


source







All Articles