# Error while trying to login to forest

**URL:** <https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703>\
**Category:** Help me!\
**Created:** [May 19, 2022, 9:21am UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703 "2022-05-19T09:21:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kamara\_Fidele](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamara_fidele/32/4542_2.png) [@Kamara\_Fidele](https://community.forestadmin.com/u/Kamara_Fidele)\
**Post date:** [May 19, 2022, 9:21am UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/1 "2022-05-19T09:21:08Z")

</div>

After upgrading my forest to v7 and adding some more models, I am getting error “Your password is incorrect, please try again.” when I try to login

 ![ERROR](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/9/95679570638e7263a3dd3101ec40878008d9b836.png)

---

<div class="post-metadata">

**Author:** ![anon37903635](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon37903635](https://community.forestadmin.com/u/anon37903635)\
**Post date:** [May 19, 2022, 9:31am UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/2 "2022-05-19T09:31:03Z")

</div>

Hey @Kamara_Fidele and welcome to our community 👋

Let’s start with some ground questions to begin the investigation, shall we? 🔍  
I need the followings:

- What’s your project name?
- What’s your environment name?
- What’s your agent type (rails, express…)? You upgraded from v6 to v7 right?

Also, do you mind sharing any failure logs related to that? Either from your agent or the network and console tabs of your browser. 📋

Waiting for your answer 💪

---

<div class="post-metadata">

**Author:** ![Kamara\_Fidele](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamara_fidele/32/4542_2.png) [@Kamara\_Fidele](https://community.forestadmin.com/u/Kamara_Fidele)\
**Post date:** [May 19, 2022, 12:47pm UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/3 "2022-05-19T12:47:40Z")

</div>

The project name: Kamara  
Agent type: express  
I upgraded from v6 to v7.

The logs are just the response from the server: POST forest/sessions 401 Unauthorized

---

<div class="post-metadata">

**Author:** ![anon37903635](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon37903635](https://community.forestadmin.com/u/anon37903635)\
**Post date:** [May 19, 2022, 12:51pm UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/4 "2022-05-19T12:51:53Z")

</div>

Hey @Kamara_Fidele  
Did you perform the migration directly in production? 🕵️‍♂️

---

<div class="post-metadata">

**Author:** ![Kamara\_Fidele](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamara_fidele/32/4542_2.png) [@Kamara\_Fidele](https://community.forestadmin.com/u/Kamara_Fidele)\
**Post date:** [May 19, 2022, 12:53pm UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/5 "2022-05-19T12:53:59Z")

</div>

Yeah.  
But I followed all the instructions for handling breaking changes

---

<div class="post-metadata">

**Author:** ![anon37903635](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@anon37903635](https://community.forestadmin.com/u/anon37903635)\
**Post date:** [May 19, 2022, 1:02pm UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/6 "2022-05-19T13:02:17Z")

</div>

@Kamara_Fidele Indeed, but…

⚠ By default, when in production (discriminated by the NODE\_ENV value), the agent does not update/regenerate/send the **apimap** with the new version therefore **our API** does not know you are on the v7 now.

➡ I suggest you perform the migration in one of your environments in **development** , which will update the **apimap**. Then commit your changes to production and 🎉 (normally 😄).

Waiting for your feedback 💪

---

<div class="post-metadata">

**Author:** ![Kamara\_Fidele](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/kamara_fidele/32/4542_2.png) [@Kamara\_Fidele](https://community.forestadmin.com/u/Kamara_Fidele)\
**Post date:** [May 19, 2022, 1:21pm UTC](https://community.forestadmin.com/t/error-while-trying-to-login-to-forest/4703/7 "2022-05-19T13:21:35Z")

</div>

Thanks.  
The issue got solved.  
The **apimap** was not being updated
