JOOMBO  
                
                  
                    March 22, 2021,  2:34pm
                   
                  1 
               
             
            
              Hello Forest Team,
I met a problem when I try to setup my production environment …
Failure Logs 
Context 
Project Name: Joombo
Package :
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.
             
            
              
            
           
          
            
              
                JOOMBO  
                
                  
                    March 23, 2021, 11:08pm
                   
                  3 
               
             
            
              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
 
 
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?
             
            
              
            
           
          
            
              
                JOOMBO  
                
                  
                    March 24, 2021,  8:06am
                   
                  5 
               
             
            
              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 
            
            
           
          
            
              
                JOOMBO  
              
                  
                    March 24, 2021,  8:13am
                   
                  7 
               
             
            
              Yes, I’ve done that and test already, it works 
Awesome, thanks a lot for your support