[Production ENV] Please verify that your admin backend is correctly configured and running

Hello Forest Team,

I met a problem when I try to setup my production environment …

Failure Logs


Context

Project Name: Joombo

Package :
*ruby ‘2.6.5’
*‘rails’, ‘~> 6.0.3’, ‘>= 6.0.3.2’
*‘forest_liana’, ‘~> 6.0.4’
*‘pg’, ‘>= 0.18’, ‘< 2.0’

What is done ?

  • Set Forest Admin first in development and working well
  • Set env in Heroku
    • FOREST_AUTH_SECRET
    • FOREST_ENV_SECRET
    • APPLICATION_URL (already set into my rails app)
  • Heroku run rails db:migrate
  • Create a role in Forest and set a user permission

Please help me on the production onboarding , I try your software on development and looks really good !

Hello @JOOMBO,

Thank you for your feedback.

Your logs on the browser indicate that there is an error when calling POST https://www.joombo.co/forest/authentication which is a route on your agent.

Do you have more details about the error on your server?

Is it possible to copy the response’s body from your network tab in chrome? They also might indicate more details about the error.

Thanks Guillaume for your reply,

Sorry, I sent you all error on my server I find !

Yes sure, I can find 2 errors

  • Error 404

  • Error 500
    {“errors”:[{“status”:500,“detail”:“The registration to the authentication API failed, response: {“error”:“invalid_redirect_uri”,“error_description”:“redirect_uris must only contain strings”}”}]}

At the beginning, it doesn’t work in development as well. I make some change and update like below :

Hell @JOOMBO, thanks for your answer.

The error says that the redirect url is invalid. Can you paste here the value you configured for APPLICATION_URL?

Sure, here it is (Heroku)

and here it is in Forest

Hello @JOOMBO,

Can you check you secrets.yml file?

Does it read configuration variable from env variables like this, for the configuration you are using in production?

  forest_env_secret: <%= ENV["FOREST_ENV_SECRET"] %>
  forest_auth_secret: <%= ENV["FOREST_AUTH_SECRET"] %>
  forest_application_url: <%= ENV["APPLICATION_URL"] %>
1 Like

Yes, I’ve done that and test already, it works :tada:

Awesome, thanks a lot for your support