# Cannot create a new environnement

**URL:** <https://community.forestadmin.com/t/cannot-create-a-new-environnement/516>\
**Category:** Help me!\
**Created:** [June 23, 2020, 7:31pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516 "2020-06-23T19:31:48Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![killix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/killix/32/415_2.png) [@killix](https://community.forestadmin.com/u/killix)\
**Post date:** [June 23, 2020, 7:31pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/1 "2020-06-23T19:31:48Z")

</div>

This is a template you can use to report issues. You can also drag images, videos and include `Preformatted text`

## Expected behavior

Create a second production environment.

## Actual behavior

Cannot create a new environment.

## Failure Logs

`masterblue creation failed: A production environment must be created before any other environment`

## Context

- Package Version:
- Express Version: 4.16.3
- Sequelize Version: 4.37.7
- forest-express-sequelize Version: 5.0.0
- Database Dialect: Postgres

---

<div class="post-metadata">

**Author:** ![killix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/killix/32/415_2.png) [@killix](https://community.forestadmin.com/u/killix)\
**Post date:** [June 23, 2020, 7:33pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/2 "2020-06-23T19:33:20Z")

</div>

Add a note on that: we have already 5 environments:

- 1 production
- 1 stage
- 1 development
- 2 local

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [June 24, 2020, 8:48am UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/3 "2020-06-24T08:48:24Z")

</div>

Hello @killix,

Could you give me the name of the project which is having this issue so I can check what is happening?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![killix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/killix/32/415_2.png) [@killix](https://community.forestadmin.com/u/killix)\
**Post date:** [June 25, 2020, 1:31pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/4 "2020-06-25T13:31:41Z")

</div>

The name of project: master\_blue

Thanks,

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [June 26, 2020, 7:17am UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/5 "2020-06-26T07:17:11Z")

</div>

Hi @killix,

I am sorry but we can’t find a project having the “master\_blue” name.

By the way the platform won’t allow you to create several production environments per project.  
From this point of view, it seems normal to me that you can’t create a second production environment (although, the error message in this case does not look good).

Out of curiosity, why would you like to create a second production environment?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![killix](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/killix/32/415_2.png) [@killix](https://community.forestadmin.com/u/killix)\
**Post date:** [June 26, 2020, 1:12pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/6 "2020-06-26T13:12:09Z")

</div>

I am trying to add a new development environment.  
My steps are:

- click on the button : “Add a new environment”
- Then “Add a new development environment”

Once i filled the form:

- Name of the environment
- Admin backend URL

i got this error: “masterblue creation failed: A production environment must be created before any other environment”

Which is an issue because we have already a production environment.  
So how you think, we trying to add a second Production environment?

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [June 26, 2020, 1:52pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/7 "2020-06-26T13:52:14Z")

</div>

> [@killix](#):
>
> So how you think, we trying to add a second Production environment?

I just read your description of the expected behaviour.

> [@killix](#):
>
> ## Expected behavior
> 
> Create a second production environment.

Anyway, I did a few manipulation on our end.  
Can you try again to create an environment with a name that does not contain “production” (“new development” for instance) and let me know if it helps?

Thank you.

---

<div class="post-metadata">

**Author:** ![Esteban](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/esteban/32/266_2.png) [@Esteban](https://community.forestadmin.com/u/Esteban)\
**Post date:** [June 26, 2020, 2:30pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/8 "2020-06-26T14:30:04Z")

</div>

Hi Arnaud,

Looks like our whole ForestAdmin is now broken. Any idea what might have happened?

PS. This is urgent as it means our production Forest is now down and unusable for our operation team

 ![Screen Shot 2020-06-26 at 10.27.05 AM](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/1X/6a5a31dd84164d5a7f295e866ffd45c40e33cf31.png)

As for adding a new environment, we tried with various names, including “Test”, always the same error

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [June 26, 2020, 3:32pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/9 "2020-06-26T15:32:45Z")

</div>

Hi @Esteban,

All your 5 environments look properly setup, and we didn’t touch the current production environment.  
So I have no clue right now.

Can you access other environments than the “production” one?

---

<div class="post-metadata">

**Author:** ![Esteban](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/esteban/32/266_2.png) [@Esteban](https://community.forestadmin.com/u/Esteban)\
**Post date:** [June 26, 2020, 3:36pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/10 "2020-06-26T15:36:50Z")

</div>

Hi Arnaud,

No every environment are now broken with this error. Which is really weird. Seem to be something related to Forest loading our projects, which might be related to errors on creating environment?

Any thought what might be wrong? We’re onboarding lot of customers today but are completely paralyzed. Happy to jump on a quick call if it helps

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [June 26, 2020, 3:52pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/11 "2020-06-26T15:52:13Z")

</div>

Hi @Esteban,

I tried a few manipulations to fix your project access.  
Did it change something?

---

<div class="post-metadata">

**Author:** ![Esteban](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/esteban/32/266_2.png) [@Esteban](https://community.forestadmin.com/u/Esteban)\
**Post date:** [June 26, 2020, 3:53pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/12 "2020-06-26T15:53:04Z")

</div>

Yes it’s back working! What changed? Anything we messed up on our end that we could have fixed?

And should we try adding the environment again?

---

<div class="post-metadata">

**Author:** ![arnaud](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/arnaud/32/32_2.png) [@arnaud](https://community.forestadmin.com/u/arnaud)\
**Post date:** [June 26, 2020, 3:57pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/13 "2020-06-26T15:57:58Z")

</div>

You did not mess up anything on your end  
My first cleaning of your 2 inactive and “production like” environments was partial (probably a cleaning process that failed on our end, I don’t know yet) and lead to this broken state.  
Sorry for the inconvenience.

You can try to create a new environment 👍

---

<div class="post-metadata">

**Author:** ![Esteban](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/esteban/32/266_2.png) [@Esteban](https://community.forestadmin.com/u/Esteban)\
**Post date:** [June 26, 2020, 4:00pm UTC](https://community.forestadmin.com/t/cannot-create-a-new-environnement/516/14 "2020-06-26T16:00:04Z")

</div>

Looks to be fixed as well by these changes. Thank you!

Have a good evening
