# New smart action not visible on production environment while it is visible on lower environments

**URL:** <https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051>\
**Category:** Help me!\
**Created:** [August 5, 2022, 7:16am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051 "2022-08-05T07:16:34Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudarshana\_Patil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sudarshana_patil/32/4007_2.png) [@Sudarshana\_Patil](https://community.forestadmin.com/u/Sudarshana_Patil)\
**Post date:** [August 5, 2022, 7:16am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/1 "2022-08-05T07:16:34Z")

</div>

## Feature(s) impacted

We have added a new smart action but its not visible just for production environment.  
The schema file is updated and matching in all the other remote environments we have, and the smart action is not available only in one of them.

## Observed behavior

Smart action is not listed, despite being present on schema and code

## Expected behavior

See the smart action on the role permissions and on the collection smart actions list

## Failure Logs

## Context

- Project name: Curator
- Team name: Developer
- Environment name: Production
- Agent type & version: 8.3 (forest-express-sequelize)
- Recent changes made on your end if any:

- Express Version: 4.17.1
- Sequelize Version: 6.6.5
- Database Dialect: MySql
- Database Version: 5.7.24

---

<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:** [August 5, 2022, 7:22am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/2 "2022-08-05T07:22:04Z")

</div>

Hey @Sudarshana_Patil 👋

Could you share the name of the missing smart action, as well as any development environment name that is currently able to display it so I can investigate?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Sudarshana\_Patil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sudarshana_patil/32/4007_2.png) [@Sudarshana\_Patil](https://community.forestadmin.com/u/Sudarshana_Patil)\
**Post date:** [August 5, 2022, 7:33am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/4 "2022-08-05T07:33:27Z")

</div>

Hi @anon39848301

The smart action name is **Update Custom Eula**  
The environment names on which its visible is:  
1.development  
2.Staging

---

<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:** [August 5, 2022, 7:42am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/5 "2022-08-05T07:42:46Z")

</div>

Ok, I can see that the “Production” environment indeed does not have the “Update Custom Eula” smart action.

I can’t see any update of the `.forestadmin-schema.json` for this “Production” environment since August 1st

Did you encounter this issue before, or is it the first time?  
Can you confirm that your `.forestadmin-schema.json` file is up to date on production?  
Do you have multiple instances of you agent that could cause this kind of conflict?

---

<div class="post-metadata">

**Author:** ![walidthebest](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/walidthebest/32/4861_2.png) [@walidthebest](https://community.forestadmin.com/u/walidthebest)\
**Post date:** [August 5, 2022, 8:16am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/6 "2022-08-05T08:16:30Z")

</div>

Hello @anon39848301  
I am having the same issue, the smart action is not visible on Production while it is workign well locally on development, can you help me please ?

---

<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:** [August 5, 2022, 8:18am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/7 "2022-08-05T08:18:23Z")

</div>

Hey @walidthebest

Could you open a new thread with all the necessary informations filled in so I can check everything on my end?

Thanks in advance 🙏

---

<div class="post-metadata">

**Author:** ![walidthebest](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/walidthebest/32/4861_2.png) [@walidthebest](https://community.forestadmin.com/u/walidthebest)\
**Post date:** [August 5, 2022, 8:34am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/8 "2022-08-05T08:34:50Z")

</div>

Ok @anon39848301, done : [Smart action not appearing in production while appearing in development](https://community.forestadmin.com/t/smart-action-not-appearing-in-production-while-appearing-in-development/5053)

---

<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:** [August 5, 2022, 8:40am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/9 "2022-08-05T08:40:47Z")

</div>

@Sudarshana_Patil

It appear that we received 2 `.forestadmin-schema.json` at the exact same time.  
The first one being the correct one, and the second one being the version you were using before.

My guess would be that you either have multiples servers hosting your agent for scaling purpose, or there is a misconfiguration somewhere.

Fixing this issue should resolve your smart action not visible in production.

Let me know if that helps

---

<div class="post-metadata">

**Author:** ![Sudarshana\_Patil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sudarshana_patil/32/4007_2.png) [@Sudarshana\_Patil](https://community.forestadmin.com/u/Sudarshana_Patil)\
**Post date:** [August 5, 2022, 8:59am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/10 "2022-08-05T08:59:03Z")

</div>

this smart action was a new addition into our production release on 1st August  
but it didn’t show up in production environment while it did for other remote environments

---

<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:** [August 5, 2022, 9:03am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/11 "2022-08-05T09:03:42Z")

</div>

@Sudarshana_Patil

Again, from what I can see on my end, on your **production** environment, 2 different versions for the schema were sent to our server.

The first one if the correct one (Containing your smart action)  
The second one is still based on your previous version (Without the smart action).

To fix this issue, you can simply restart your production agent. The schema would then be sent correctly to our servers, fixing your issue.

---

<div class="post-metadata">

**Author:** ![Sudarshana\_Patil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/sudarshana_patil/32/4007_2.png) [@Sudarshana\_Patil](https://community.forestadmin.com/u/Sudarshana_Patil)\
**Post date:** [August 5, 2022, 10:30am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/12 "2022-08-05T10:30:58Z")

</div>

@anon39848301 Even after restarting production agent, the smart action is not visible.

We follow canary release process so some instances does have older schema while some has newer.  
but after our validation on canary instances, we send same code on the default instances so schema should get in sync on all the instances. Can you please check at your end if you have any cache that holds older value.

---

<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:** [August 5, 2022, 10:43am UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/13 "2022-08-05T10:43:25Z")

</div>

The `.forestadmin-schema.json` value is never cached on our end.  
I can see that you restarted your server indeed, however the schema sent during this operation is still the old one.

Until we receive the correct schema, your smart action will still be invisible 😕

If your agent code is fully deployed & the only issue you are having is related to this new action, maybe `forest schema:apply --env ENV_SECRET` can help here.

---

<div class="post-metadata">

**Author:** ![Nilesh\_Shirsat](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/nilesh_shirsat/32/3176_2.png) [@Nilesh\_Shirsat](https://community.forestadmin.com/u/Nilesh_Shirsat)\
**Post date:** [August 5, 2022, 12:13pm UTC](https://community.forestadmin.com/t/new-smart-action-not-visible-on-production-environment-while-it-is-visible-on-lower-environments/5051/14 "2022-08-05T12:13:16Z")

</div>

@anon39848301 We checked on all our server instances to verify if new smart action declaration is missing in any one of server’s forestadmin-schema.json file. All server does have **Update Custom Eula** smart action configuration updated in schema file. Can you let us know if you track schema file received in forestAdmin from which server? Can you share any logging to pinpoint any configuration or server deployment issue over DM.  
Also we have faced this issue previously as well, but restarting server agent did fixed issue in past.
