# Cannot add AWS EC2 host

**URL:** <https://forums.suse.com/t/cannot-add-aws-ec2-host/557>\
**Category:** Rancher 1.x\
**Created:** [September 24, 2015, 9:24pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557 "2015-09-24T21:24:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdensmore](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tdensmore/32/279_2.png) [@tdensmore](https://forums.suse.com/u/tdensmore)\
**Post date:** [September 24, 2015, 9:24pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/1 "2015-09-24T21:24:24Z")

</div>

Setup a new Rancher from latest Docker. Added GitHub authentication.  
Trying to setup an initial host. Chose Amzaon EC2. Entered my credentials. Pressed ‘Next’. Received this error:

TypeError: Cannot read property ‘name’ of undefined

Rancher v0.38.1  
Cattle v0.94.0  
User Interface v0.50.0  
Rancher Compose beta/latest

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 24, 2015, 9:31pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/2 "2015-09-24T21:31:57Z")

</div>

Yep, this is a known issue that will be fixed in the next release. Already verified. 🙂

[https://github.com/rancher/rancher/issues/2104](https://github.com/rancher/rancher/issues/2104)

---

<div class="post-metadata">

**Author:** ![tdensmore](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tdensmore/32/279_2.png) [@tdensmore](https://forums.suse.com/u/tdensmore)\
**Post date:** [September 24, 2015, 10:12pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/3 "2015-09-24T22:12:02Z")

</div>

Sorry, I thought I checked the forums before posting… Thanks for the quick response.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 25, 2015, 5:52pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/4 "2015-09-25T17:52:18Z")

</div>

v0.39.0 was tagged as latest this morning, so you can upgrade to get this fixed. 🙂

---

<div class="post-metadata">

**Author:** ![tdensmore](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tdensmore/32/279_2.png) [@tdensmore](https://forums.suse.com/u/tdensmore)\
**Post date:** [September 25, 2015, 7:45pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/5 "2015-09-25T19:45:11Z")

</div>

Thanks for the quick turnaround. Unfortunately the ‘latest’ did not solve my problem. I stopped all running containers and deleted the images. Just in case.

I have verified that I am running:

> Rancher v0.39.0  
> Cattle v0.95.0  
> User Interface v0.50.0  
> Rancher Compose beta/latest

Also, the [upgrade instructions](http://docs.rancher.com/rancher/upgrading/) did not work particularly well, so I had to jump though a few hoops to re-authorize with GitHub and generate new API keys for **rancher-compose**.

It is certainly possible I am doing something wrong, but the error is the same.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 25, 2015, 9:07pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/6 "2015-09-25T21:07:59Z")

</div>

Can you provide me some more info?

What rancher versions did you upgrade from and to? Particularly what one was before v0.38.0?

I want to see what happened on the authentication side because it sounds like your authentication (access control) changed a bit between releases, so I would like to test.

On a fresh install, I know adding ec2 was tested but will need to check if it was verified with an upgrade. I want to try it after upgrading and uaing the same versions you did.

---

<div class="post-metadata">

**Author:** ![tdensmore](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tdensmore/32/279_2.png) [@tdensmore](https://forums.suse.com/u/tdensmore)\
**Post date:** [September 25, 2015, 9:23pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/7 "2015-09-25T21:23:10Z")

</div>

I upgraded

> **FROM** v0.38.1  
> **TO** v0.39.0

If I need to do a ‘fresh’ install I will gladly do that.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 28, 2015, 9:42pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/8 "2015-09-28T21:42:38Z")

</div>

Could you try refreshing the UI? That might be required to get it working. 😄

If not, I’ll probably have some time in the next day or two to try and reproduce and give a better workaround.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 29, 2015, 6:13pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/9 "2015-09-29T18:13:42Z")

</div>

I was unable to reproduce the error after a fresh upgrade. If you’re still hitting it, I’d recommend a fresh install unless you want me to investigate further with you. But since I’m unable to reproduce, it’s hard for me to debug. 😉

---

<div class="post-metadata">

**Author:** ![tdensmore](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tdensmore/32/279_2.png) [@tdensmore](https://forums.suse.com/u/tdensmore)\
**Post date:** [September 29, 2015, 9:14pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/10 "2015-09-29T21:14:44Z")

</div>

Verified the EC2 functionality is working for me now. Thank you.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [September 29, 2015, 9:15pm UTC](https://forums.suse.com/t/cannot-add-aws-ec2-host/557/11 "2015-09-29T21:15:00Z")

</div>


