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)
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.
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.
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.