# Restore Development profile

**URL:** <https://community.forestadmin.com/t/restore-development-profile/1444>\
**Category:** Help me!\
**Created:** [December 9, 2020, 2:28pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444 "2020-12-09T14:28:21Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 9, 2020, 2:28pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/1 "2020-12-09T14:28:21Z")

</div>

hello I deleted the development profile how can I restore it?  
Thanks

---

<div class="post-metadata">

**Author:** ![Guillaume\_Cisco](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaume_cisco/32/918_2.png) [@Guillaume\_Cisco](https://community.forestadmin.com/u/Guillaume_Cisco)\
**Post date:** [December 9, 2020, 3:38pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/2 "2020-12-09T15:38:25Z")

</div>

Hello @cliosuper 😄

Can you tell me more about `development profile`? What do you mean?  
A layout? A user? A role?  
Can you give me the name of your project for easing the investigation on our side?  
Can you share with me your stack?

I’ll be glad to help 😃

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 9, 2020, 5:48pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/3 "2020-12-09T17:48:29Z")

</div>

Hi!  
I mean the environment to develop locally: [http://localhost:3310](http://localhost:3310)  
Currently only active one environment, staging, connected to a remote server.

```javascript
{
  "name": "pm",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node ./server.js"
  },
  "dependencies": {
    "body-parser": "1.19.0",
    "chalk": "~1.1.3",
    "cookie-parser": "1.4.4",
    "cors": "2.8.5",
    "debug": "~4.0.1",
    "dotenv": "~6.1.0",
    "express": "~4.16.3",
    "express-jwt": "5.3.1",
    "forest-express": "^7.4.0",
    "forest-express-sequelize": "^6.0.0",
    "lumber-forestadmin": "^1.5.1",
    "morgan": "1.9.1",
    "mysql2": "~1.7.0",
    "require-all": "^3.0.0",
    "sequelize": "~5.15.1"
  }
}

```

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [December 10, 2020, 9:29am UTC](https://community.forestadmin.com/t/restore-development-profile/1444/4 "2020-12-10T09:29:54Z")

</div>

Hello @cliosuper,

You can’t restore a delete environment sorry.

But you can create a new one, and copy the layout from the staging environment.  
Here is the documentation to create a new environment:  
[https://docs.forestadmin.com/documentation/reference-guide/how-it-works/environments#creating-a-new-environment](https://docs.forestadmin.com/documentation/reference-guide/how-it-works/environments#creating-a-new-environment)

Hope this helps

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 10, 2020, 12:12pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/5 "2020-12-10T12:12:56Z")

</div>

But i do not have the button to create new environments!  
I can only deploy production!

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [December 10, 2020, 1:38pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/6 "2020-12-10T13:38:21Z")

</div>

Could you please tell me the project name so I can dig in on my side? Or even better the value for `Forest-Project-Id` found in the request headers in your developper tools?

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 10, 2020, 2:18pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/7 "2020-12-10T14:18:41Z")

</div>

The project name is: PM

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [December 10, 2020, 2:37pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/8 "2020-12-10T14:37:36Z")

</div>

It seems like you started a deploy to production, but did not went through. If you finish this you should be able to recreate a development environment.

Is this possible for you?

I’ll share your issue with our team, you definitely are in a grey area.

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 10, 2020, 2:53pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/9 "2020-12-10T14:53:30Z")

</div>

but it is not possible to cancel it?  
I click on the deploy button by mistake …  
Can’t undo this action?  
Are we forced to send it into production to recreate new environments?

---

<div class="post-metadata">

**Author:** ![anon79585656](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@anon79585656](https://community.forestadmin.com/u/anon79585656)\
**Post date:** [December 10, 2020, 4:00pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/10 "2020-12-10T16:00:20Z")

</div>

Normally you cannot create extra development environment until the production is deployed.

I think you should not have been allowed to delete your initial development environment (that may be an issue on our side).

The safe path is definitely to finish the production deployment, and then recreate a new development environment.

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 12, 2020, 2:30pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/11 "2020-12-12T14:30:38Z")

</div>

Ok thanks!

I restored the development profile.  
I put the new env forest secret in the .env file but it gives this error:

Permissions error: Cannot retrieve the data from the Forest server. Can you check that you properly copied the Forest envSecret in the Liana initializer?

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [December 14, 2020, 8:20am UTC](https://community.forestadmin.com/t/restore-development-profile/1444/12 "2020-12-14T08:20:57Z")

</div>

Hello @cliosuper,

I can see that you activated 3 environments on your project:

- production
- staging
- development

Seem to have worked at least once. Can you explain in detail the operations you did when you re-create a development environment?

The error message that is appearing on your side indicates that the environment variable named `FOREST_ENV_SECRET` do not match a know environment on Forest-Admin.

When you start your agent, it identifies itself against the forest-admin server and sends your updated data structure. If you have this message, it indicates that your liana is unable to identify itself on Forest Admin because the value of `FOREST_ENV_SECRET` do not match any known value on our server.

Did you use the secret from the deleted environment? Can you check that the value you copied is correct?

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 14, 2020, 6:10pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/13 "2020-12-14T18:10:17Z")

</div>

> [@GuillaumeGautreau](#):
>
> Seem to have worked at least once. Can you explain in detail the operations you did when you re-create a development environment?

The first time the project was created, the development environment was obviously present.  
I added the staging environment.  
I accidentally deleted the development environment and pressed the deploy production button.  
I had to complete the configuration for production and recreate the development environment.  
I took the FOREST\_ENV\_SECRET variable and put it in my .env file  
But when I boot via npm start and connect to the backend it gives me that error

---

<div class="post-metadata">

**Author:** ![anon90145840](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@anon90145840](https://community.forestadmin.com/u/anon90145840)\
**Post date:** [December 15, 2020, 3:09pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/14 "2020-12-15T15:09:54Z")

</div>

Hello @cliosuper

In order to assist you, I would need more details. What is the URL of your development environment? Do you run it locally on your machine?  
Can you please check that you updated the `FOREST_ENV_SECRET ` with the new secret of the environment you created?

Would you mind sharing in the private message you `FOREST_ENV_SECRET` from your `.env` file so I can internally check it?

---

<div class="post-metadata">

**Author:** ![cliosuper](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/cliosuper/32/1200_2.png) [@cliosuper](https://community.forestadmin.com/u/cliosuper)\
**Post date:** [December 15, 2020, 6:17pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/15 "2020-12-15T18:17:33Z")

</div>

Yes in locally machine and this is the url:  
APPLICATION\_URL=http://localhost:3310

---

<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:** [December 16, 2020, 4:35pm UTC](https://community.forestadmin.com/t/restore-development-profile/1444/16 "2020-12-16T16:35:27Z")

</div>

Hi @cliosuper,

Your case is giving us a hard time to understand what’s going on here! 😅  
Thanks for your patience.

With all the elements you gave us, I don’t see why it won’t work. Let’s try something else.  
Can you tell me what is your `APPLICATION_PORT` in your `.env` file?  
And if you try to access to `http://localhost:3310` in your browser, what do you see?
