# Cannot active first cluster in Rancher 2.0

**URL:** <https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985>\
**Category:** Rancher 2.0 Tech Preview\
**Created:** [April 5, 2018, 10:40pm UTC](https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985 "2018-04-05T22:40:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adlehyde](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Adlehyde](https://forums.suse.com/u/Adlehyde)\
**Post date:** [April 5, 2018, 10:40pm UTC](https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985/1 "2018-04-05T22:40:58Z")

</div>

Hello.

Disclaimer: I am extremely new to kubernetes, containers, docker, etc. just consider me an uber-noob.

I’m looking at Rancher since it seems pretty beginner friendly and super easy to manage and so I’m trying to setup my first cluster to get an idea of what all I can do with it, but I keep running into the same problem and No matter how much I search for solutions, I haven’t seen anyone with the same issue, always a different issue.

So here’s what I did. I have a fresh VM setup with Linux Ubuntu 16.04.

I installed Docker version 17.03.2 following their documentation strictly as shown here [https://docs.docker.com/install/linux/docker-ce/ubuntu/#prerequisites](https://docs.docker.com/install/linux/docker-ce/ubuntu/#prerequisites)

Then I went through the quickstart documentation for Rancher 2.0 to create a custom cluster.

So in order:  
I installed rancher using sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/server:preview

I logged into rancher using a web browser and admin/admin  
I reset the password when prompted  
I kept the URL the same IP address as not to mess with it.  
I clicked Add Cluster  
I clicked Custom Cluster and gave it a simple name.  
I left all options at defaults  
On Node Roles I made sure all 3 boxes were checked.  
I copied the command that was auto generated to my clipboard.  
I ran that command on my linux host and ran it.  
When it was finished I clicked Done back on the web browser.

At this time, the cluster went into a provisioning state and ran through several processes but eventually it stops and gives me this message.

Failed to get kubernetes node [OPO-VM-DOCK01]: “OPO-VM-DOCK01” not found

OPO-VM-DOCK01 is the name of my VM btw.

If I let it sit there in the provisioning state, it will periodically attempt to activate again but always gets stuck at the same spot.

I’m completely lost on what could be causing this and not sure what to do. Anyone else run into something like this? Everything else I found when people got to this point always had a different error like “failed to register node” or something instead.

Any help will be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![siggi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/siggi/32/5668_2.png) [@siggi](https://forums.suse.com/u/siggi)\
**Post date:** [April 6, 2018, 2:51pm UTC](https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985/2 "2018-04-06T14:51:46Z")

</div>

What are the logs for the rancher agent on OPO-VM-DOCK01 ?

you run `docker ps` in ssh to get the ID, copy the ID and do `docker logs ID` to get the logs

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [April 6, 2018, 4:14pm UTC](https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985/3 "2018-04-06T16:14:06Z")

</div>

Kubernetes wants everything to be named a valid DNS label (a-z, 0-9, and hyphen with a few other restrictions within that) and doesn’t accept uppercase. We usually lowercase things for you but this appears to be a place that is missed.

---

<div class="post-metadata">

**Author:** ![Adlehyde](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Adlehyde](https://forums.suse.com/u/Adlehyde)\
**Post date:** [April 6, 2018, 7:23pm UTC](https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985/4 "2018-04-06T19:23:31Z")

</div>

Changing to lowercase, it provisioned and activated just fine… lol sometimes the simplest things you know?

Welp, if it is intended for Rancher to auto-lowercase this for the user, I’m glad I was able to find an area where it didn’t. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![JohnDavidLarsen](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@JohnDavidLarsen](https://forums.suse.com/u/JohnDavidLarsen)\
**Post date:** [April 9, 2018, 12:42pm UTC](https://forums.suse.com/t/cannot-active-first-cluster-in-rancher-2-0/9985/5 "2018-04-09T12:42:35Z")

</div>

I had the same issue when I used mixcase for my hostnames. You may want to put something in the documentation about this for now.
