# Errors running the cli on gen2 rack

**URL:** <https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838>\
**Category:** Rack (Version 2)\
**Created:** [October 12, 2021, 4:25pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838 "2021-10-12T16:25:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jason](https://community.convox.com/u/jason)\
**Post date:** [October 12, 2021, 4:25pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/1 "2021-10-12T16:25:34Z")

</div>

Starting yesterday the cli stopped working for our gen2 rack. We can’t tell exactly what is broken. We restarted the API server in our racks. This is affecting 3 different racks we have setup.

convox ps  
ERROR: InvalidParameterException: Invalid identifier: Identifier is for cluster aiera-base-prod-Cluster-15OL2DOAI17GW. Your cluster is aiera-base-prod-BuildCluster-1FAKV3FQR7CC5  
status code: 400, request id: 2a496f9a-126b-4f23-8c11-a1d54e20a282

convox-dev deploy  
Packaging source… OK  
Uploading source… OK  
Starting build… ERROR: response status 502

---

<div class="post-metadata">

**Author:** ![jay.rino](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jay.rino](https://community.convox.com/u/jay.rino)\
**Post date:** [October 12, 2021, 4:53pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/2 "2021-10-12T16:53:48Z")

</div>

Hi, @jason 👋 Jay here from the Convox team. This is an issue affecting several customers and we are working on it right now. I expect we will have a test rack release out shortly that we will ask affected customers to test. We appreciate your patience!🙂

---

<div class="post-metadata">

**Author:** ![jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jason](https://community.convox.com/u/jason)\
**Post date:** [October 12, 2021, 5:24pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/3 "2021-10-12T17:24:41Z")

</div>

We are actually on a pretty old rack. 20191113121154. You are saying the fix will require a rack update? We have left our production systems alone, with regards to messing with the rack, for a long time.

---

<div class="post-metadata">

**Author:** ![Brian-G](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/brian-g/32/182_2.png) [@Brian-G](https://community.convox.com/u/Brian-G)\
**Post date:** [October 12, 2021, 7:44pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/4 "2021-10-12T19:44:53Z")

</div>

Hi Jason. Yes it will require a rack update as AWS made some changes to api call validation.

We have a test release ready with a fix. If you have a dev environment you would like to test it on let me know.

---

<div class="post-metadata">

**Author:** ![jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jason](https://community.convox.com/u/jason)\
**Post date:** [October 12, 2021, 8:19pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/5 "2021-10-12T20:19:08Z")

</div>

Yeah, that would be great. You have my email for sending the details?

---

<div class="post-metadata">

**Author:** ![Brian-G](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/brian-g/32/182_2.png) [@Brian-G](https://community.convox.com/u/Brian-G)\
**Post date:** [October 12, 2021, 10:18pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/6 "2021-10-12T22:18:57Z")

</div>

We just released the fix after some testing.

convox rack update -r rackname 20211012210133

---

<div class="post-metadata">

**Author:** ![kriom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.convox.com/kriom/32/188_2.png) [@kriom](https://community.convox.com/u/kriom)\
**Post date:** [October 14, 2021, 7:35pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/7 "2021-10-14T19:35:10Z")

</div>

Hello @Brian-G,

The release 20211012210133 fixes the issue :

> **[Release 20211012210133 · convox/rack](https://github.com/convox/rack/releases/tag/20211012210133)**
>
> Notes
> AWS API calls now validate the Task and ContainerInstance ARNs against the appropriate cluster.
> MySQL and Postgres Rack resources now have increased default storage values.
> ECS AMIs for all r...

Thank you very much !

However during a build on the build cluster the  
`convox ps` or another command interacting with processes retunes the `InvalidParameterException`

I don’t master go language, but reading the correction code, it seems that there is a choice of which cluster to use.

> <https://github.com/convox/rack/pull/3472/commits/6b5ffd5c9518b5e97115167f6a907f4c0701c03e>
>
> …all.

Is there a way to fix that ?

Best Regards

---

<div class="post-metadata">

**Author:** ![scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scott](https://community.convox.com/u/scott)\
**Post date:** [October 15, 2021, 8:32pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/8 "2021-10-15T20:32:52Z")

</div>

I also am able to do most stuff after applying that update, but builds still fail on some racks but not others. Out of 5 racks (1 test, 4 production for different geographical regions), 3 out of 5 can deploy just fine. The other 2 are still failing with 502s

---

<div class="post-metadata">

**Author:** ![scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@scott](https://community.convox.com/u/scott)\
**Post date:** [October 15, 2021, 8:34pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/9 "2021-10-15T20:34:13Z")

</div>

I see [[RELEASE] 20211015 by beastawakens · Pull Request #3476 · convox/rack · GitHub](https://github.com/convox/rack/pull/3476) with some refactoring to the validation error, so they might have a fix incoming.

---

<div class="post-metadata">

**Author:** ![dan.chisarick](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dan.chisarick](https://community.convox.com/u/dan.chisarick)\
**Post date:** [October 16, 2021, 5:31pm UTC](https://community.convox.com/t/errors-running-the-cli-on-gen2-rack/838/10 "2021-10-16T17:31:07Z")

</div>

We are also on an older v2 rack version “20201028155507” and are experiencing the 502 error when starting a build. Any gotchas we should be aware of upgrading to the latest version.
