Production debug - Your server encountered an error

Hey,

In Forest admin production environment I get the error - Your server encountered an error, Please check your server logs for more information. If the error persists, please let us know. Local environment working fine. Difference between servers is - local server is Windows os, production server is Ubuntu (AWS services).

I tried to use logger and loggerLevel ‘Debug’ and ‘Error’ - nothing helpful. Please can you advice how can I debug it?

Thank You!

Context

  • Project name: SEWPORT
  • Environment name: Release
  • Agent (forest package) name & version: @forestadmin/agent (1.55.1), @forestadmin/datasource-sequelize (1.11.1)
  • Database type: Postgresql


Hello @Sewport , Welcome to our community forum !

The agent does not log error details in production mode.
A systematic 500 on each request is most probably a config issue. Check your env variables, database connection, etc.
If everything seems ok, and you cannot reproduce locally, you can put the production agent in development mode temporarily to log error details and understand the error.
Just put the attribute “isProduction” to false in the agent creation options.

Kind regards,
Enki

1 Like

Hello @Enki,

Thank you a lot for your answer, I did your recommendation and found the issue. Issue is in older version Forest Admin Roles. Roles is prepared and ready for migration. I asked by email to run migration process as it is said in migration docs.

1 Like

Hello @Sewport :wave:

We have changed your project configuration so you can benefit from roles v2, and you should have received an email describing the missing steps to complete the migration.

Can you confirm ?

Thanks in advance :slight_smile:

1 Like

Hello @Steve_Bunlon,

As I see, my production environment working properly now.

Thank You

2 Likes