# Unexpected Error working with new environment

**URL:** <https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207>\
**Category:** Help me!\
**Created:** [September 5, 2022, 4:08am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207 "2022-09-05T04:08:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![J-Wolff](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/j-wolff/32/5022_2.png) [@J-Wolff](https://community.forestadmin.com/u/J-Wolff)\
**Post date:** [September 5, 2022, 4:08am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/1 "2022-09-05T04:08:10Z")

</div>

## Feature(s) impacted

Can not set a new environment as Production, Can not push to a new environment, Can not sync from a new environment, Error deleting new environment, error changing to the new environment.

## Observed behavior

Interaction with a new environment does not work. There are 3 environments, DEV, UAT, PRD.  
UAT was automatically set as production, PRD (new environment) is supposed to be the new production environment, but fails every time you try to do something with it, even trying to select it, returning 500 error for every action.

## Expected behavior

Expecting it will let you interact as with any other environment.

## Failure Logs

 ![Screen Shot 2022-09-05 at 1.43.07 pm](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/d/d664c727cb3d757de855d0b824fb91e5f32d30cd.png)  
 ![Screen Shot 2022-09-05 at 1.44.36 pm](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/e290ffe06326fe590b8e3ad6b4463adf62045fa4.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/4/4775da5950c182acce40d528c7f65510093490ef.png)

## Context

- Project name: Enixa
- Team name: Enixa / Project ID: 78929
- Environment name: PRD / ENV
- Agent type & version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_15\_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [September 5, 2022, 12:19pm UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/2 "2022-09-05T12:19:24Z")

</div>

Hello @J-Wolff,

Thanks for reaching out and sorry for the inconvenience!

That’s pretty clear on our side that something is not right with this environment `PRD`.  
Now, we’ll try to fix it asap and also we’ll try to understand how it could end up in this situation.

Could you please tell how did you create this environment?  
From the UI? The CLI?

Thanks.

---

<div class="post-metadata">

**Author:** ![J-Wolff](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/j-wolff/32/5022_2.png) [@J-Wolff](https://community.forestadmin.com/u/J-Wolff)\
**Post date:** [September 5, 2022, 12:55pm UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/3 "2022-09-05T12:55:16Z")

</div>

Hi!

Thanks for your prompt answer!  
It was done through the UI.

As a side note, a similar issue but no so critical is happening with another environment named “Production [temp]”, where it won’t let you set it as production, and will trigger another error 500.

Thanks for your help!

Cheers

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [September 5, 2022, 1:37pm UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/4 "2022-09-05T13:37:58Z")

</div>

Hi @J-Wolff,

Thanks for your answer!

Ok, we’ve detected a bug. It concerns the environment creation when using a name that was used for another environment creation in the past (even if this environment was deleted or renamed after)…  
So we’ll open a bug report and this would be fixed asap.

Meanwhile, let’s try to resolve your issue now.

- Are you able to delete your PRD environment? If not, do you authorise us to delete it?
- And in order to have your next production environment, could you please try to create a new environment with a totally random name (to be sure you’ve never named a former environment like that) and do the operations we wanted to do. And please don’t rename it yet, we’ll tell you when you can.

Thanks a lot and very sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![J-Wolff](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/j-wolff/32/5022_2.png) [@J-Wolff](https://community.forestadmin.com/u/J-Wolff)\
**Post date:** [September 6, 2022, 1:04am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/6 "2022-09-06T01:04:27Z")

</div>

Hi!

The new environment is ready and seems to be working fine, I was able to delete the old one as well.

The name of the new environment is ENV4F86

Thanks again!

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [September 6, 2022, 7:20am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/7 "2022-09-06T07:20:38Z")

</div>

@J-Wolff,

Thanks a lot for keeping us posted!

That’s good news. Sorry again for the trouble.  
We’ll let you know as soon as possible when there is no risk to rename it.

Cheers.

---

<div class="post-metadata">

**Author:** ![anon34731316](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@anon34731316](https://community.forestadmin.com/u/anon34731316)\
**Post date:** [September 6, 2022, 9:07am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/8 "2022-09-06T09:07:02Z")

</div>

@J-Wolff,

After more thinking with the team, you can actually rename your environment as you want as of now.  
In fact, the only trouble is when creating an environment with a name that was used for creating another one. No issue with renaming.

Let me know!  
Thanks again for your report.

---

<div class="post-metadata">

**Author:** ![J-Wolff](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/j-wolff/32/5022_2.png) [@J-Wolff](https://community.forestadmin.com/u/J-Wolff)\
**Post date:** [September 9, 2022, 4:58am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/9 "2022-09-09T04:58:36Z")

</div>

Guys thanks heaps for your help.

I can confirm that all the environments are working fine, even after renaming them to the name that initially caused the error.

Cheers!

---

<div class="post-metadata">

**Author:** ![Alban\_Bertolini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/alban_bertolini/32/1077_2.png) [@Alban\_Bertolini](https://community.forestadmin.com/u/Alban_Bertolini)\
**Post date:** [September 14, 2022, 7:12am UTC](https://community.forestadmin.com/t/unexpected-error-working-with-new-environment/5207/10 "2022-09-14T07:12:39Z")

</div>

Hello @J-Wolff ,  
I am working on the patch. Are you still using the “new\_production” environment?  
Thanks.
