# Error After Upgrade

**URL:** <https://forums.suse.com/t/error-after-upgrade/162>\
**Category:** Rancher 1.x\
**Created:** [July 28, 2015, 2:40am UTC](https://forums.suse.com/t/error-after-upgrade/162 "2015-07-28T02:40:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwhitcraft](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jwhitcraft/32/37_2.png) [@jwhitcraft](https://forums.suse.com/u/jwhitcraft)\
**Post date:** [July 28, 2015, 2:40am UTC](https://forums.suse.com/t/error-after-upgrade/162/1 "2015-07-28T02:40:29Z")

</div>

Hello,

I just updated to the latest version of rancher v0.30.0 and all of my hosts are stuck in reconnecting and all thowing this error when i do a **docker logs rancher-agent** on the host.

> INFO: Starting agent for 5B9E2A5355BDDF207386  
> INFO: Access Key: 5B9E2A5355BDDF207386  
> INFO: Config URL: [http://rancher:8080/v1](http://rancher:8080/v1)  
> INFO: Storage URL: [http://rancher:8080/v1](http://rancher:8080/v1)  
> INFO: API URL: [http://rancher:8080/v1](http://rancher:8080/v1)  
> INFO: IP: xxx.yyy.zzz.sss  
> INFO: Port:  
> INFO: Required Image: rancher/agent:v0.7.11  
> INFO: Current Image: rancher/agent:v0.7.11  
> INFO: Using image rancher/agent:v0.7.11  
> INFO: Downloading agent [http://rancher:8080/v1/configcontent/configscripts](http://rancher:8080/v1/configcontent/configscripts)  
> tar: Child returned status 1  
> tar: Error is not recoverable: exiting now  
> {“id”:“73503eb0-9a3a-44fc-b098-3788bfc9a32d”,“type”:“error”,“links”:{},“actions”:{},“status”:401,“code”:“Unauthorized”,“message”:“Unauthorized”,“detail”:null}  
> gzip: stdin: not in gzip format  
> tar: Child returned status 1  
> tar: Error is not recoverable: exiting now

---

<div class="post-metadata">

**Author:** ![ibuildthecloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/ibuildthecloud/32/8_2.png) [@ibuildthecloud](https://forums.suse.com/u/ibuildthecloud)\
**Post date:** [July 28, 2015, 3:43am UTC](https://forums.suse.com/t/error-after-upgrade/162/2 "2015-07-28T03:43:15Z")

</div>

That’s terrible. If you do a `docker inspect rancher-agent` you should see the agent has a bunch of environment variables set. If you take the environment set can you see if `curl -u ${CATTLE_ACCESS_KEY}:${CATTLE_SECRET_KEY} ${CATTLE_URL}` works?

---

<div class="post-metadata">

**Author:** ![jwhitcraft](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jwhitcraft/32/37_2.png) [@jwhitcraft](https://forums.suse.com/u/jwhitcraft)\
**Post date:** [July 28, 2015, 11:59am UTC](https://forums.suse.com/t/error-after-upgrade/162/3 "2015-07-28T11:59:44Z")

</div>

Just an update, I upgraded my other rancher server this am and it was fine. The only difference was that the one I did last night was not v0.28 but the initial beta release (v0.25 i believe).

The server I did this am was on v0.28 and it started up fine and re-connected all the hosts. I’ve already rebuilt the other hosts as it was testing environment but I hope that helps.

---

<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:** [July 29, 2015, 8:27pm UTC](https://forums.suse.com/t/error-after-upgrade/162/4 "2015-07-29T20:27:24Z")

</div>

If it was the initial Beta release, it’s v0.24.0 and we didn’t test that upgrade path. Glad to hear that v0.28.0 had no issues with upgrading v0.30.0.

---

<div class="post-metadata">

**Author:** ![sdlarsen](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sdlarsen](https://forums.suse.com/u/sdlarsen)\
**Post date:** [October 7, 2015, 8:31am UTC](https://forums.suse.com/t/error-after-upgrade/162/5 "2015-10-07T08:31:05Z")

</div>

I get the same issue when trying to connect to rancher from a host using https:

```
INFO: Starting agent for B739E8F67D4F3BC54F5D
INFO: Access Key: B739E8F67D4F3BC54F5D
INFO: Config URL: https://rancher.uberresearch.com/v1
INFO: Storage URL: https://rancher.uberresearch.com/v1
INFO: API URL: https://rancher.uberresearch.com/v1
INFO: IP: 52.28.46.121
INFO: Port:
INFO: Required Image: rancher/agent:v0.8.2
INFO: Current Image: rancher/agent:v0.8.2
INFO: Using image rancher/agent:v0.8.2
INFO: Downloading agent https://rancher.uberresearch.com/v1/configcontent/configscripts
{"id":"f420f26a-4e58-4cc8-900e-01c26b450a2f","type":"error","links":{},"actions":{},"status":422,"code":"MissingRequired","message":null,"detail":null,"fieldName":"agentId"}
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

```

I’ve added nginx in front of rancher server to handle the SSL termination. I’m on rancer v.0.40. Suggestions welcome

---

<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:** [October 7, 2015, 9:14pm UTC](https://forums.suse.com/t/error-after-upgrade/162/6 "2015-10-07T21:14:38Z")

</div>

There is an issue in GitHub for this issue. Could you add more details to that issue?

> <https://github.com/rancher/rancher/issues/1370>
>
> I am starting an agent with (AFAIK) the correct server key. The agent stays up, but does not appear in the...

---

<div class="post-metadata">

**Author:** ![sdlarsen](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sdlarsen](https://forums.suse.com/u/sdlarsen)\
**Post date:** [October 8, 2015, 9:06am UTC](https://forums.suse.com/t/error-after-upgrade/162/7 "2015-10-08T09:06:01Z")

</div>

I’ve added my “solution” to the bug report. Thank you for pointing me to it.
