Lumber installation success but impossible to access to data: redirect to installation page

I would like to install Forest admin to manage local database (Posgresql / RoR server)

lumber generate “Forest-Jurify”
–connection-url “postgres://philibert@localhost:5432/jurify_server_development”
–ssl “false”
–schema “public”
–application-host “localhost” -
-application-port “3310”
-email “xxx@xxx.fr
–token “xxxxxxxIjp7ImRhxxxxxJpYnV0ZXMiOxxxxxoxNjAwNxxxxxVNURU0ifQ.xxLL5-”
&& cd “Forest-Jurify”
&& npm install -s

After NPM Start =>

> forest-jurify@0.0.1 start /Users/philibert/code/xx/Forest-Jurify
> node ./bin/www
Your application is listening on port 3310

.

Expected behavior

Access to Forest dashboard for setting Environment secret

Actual behavior

Redirect to installation page " Connect to your database" in app.forestadmin.com

Failure Logs

No logs

Context

Please provide any relevant information about your setup.

  • Express Version: ~4.16.3
  • Sequelize Version: ~5.15.1
  • Database Dialect: pg
  • Database Version: ~6.1.0

Hello @feeleebaire :wave:

Thanks for opening a thread and welcome to our community :tada:

Indeed, it looks like something went wrong. I just have looked your environment, and some information are missing.

Can you give me the url where your project will be running in development please ? By looking at the parameters passed to the command you posted, it should be http://localhost:3310, can you confirm ?

Steve.

Hello Steve !

Thanks you very much for your answer !
the Forest App generate by Lumber is on: http://localhost:3310
My Rails API Server is running on http://localhost:3000

Ok thanks for the answer :+1:

Can you try to access your project again from forestadmin please ?

I changed a little bit your environment on our end to attempt to get you running.

Keep me in touch :smiley:

Steve.

Thanks Steve,

Doesn’t work yet but i have the " Waiting for your backend to run" appear

Can you confirm your project is running please ?

If yes, you should at least see some request pssing through.

Steve.

Yes the project is running in both app Ruby server and Lumber app but no request
Capture d’écran 2020-09-18 à 15.23.28

Capture d’écran 2020-09-18 à 15.23.45

Thanks for the screenshots @feeleebaire :pray:

Indeed, your server is never contacted, and to be honnest I don’t have any clue why at the moment.

Would you mind to try to generate a new project and see how it goes please ?

Keep me in touch :raised_hands:

Steve.

Steve,
I juste create new project: jurify-admin but nothing change
My configuration is ok ? I don’t need setup something in the rails server app ?

I create a new rails project with new Lumber app and same probleme…
I do the same process that this tutorial:

In the Forest-jurify project when i am in page:
http://app.forestadmin.com/Forest-Jurify/Development/Operations/install
The logs are:

Access to XMLHttpRequest at 'http://localhost:3310/forest' from origin 'http://app.forestadmin.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I need to setup somethings in Lumber app ?

yes indeed we can try to add the following line in the .env file:

CORS_ORIGINS=http://app.forestadmin.com

Can you try this out and keep me in touch please ?

Steve.

You still encounter the CORS issue ?

If this is the case, you might want to restart your server (kill + delete docker container + start a new one)

Steve.

@Steve_Bunlon what do you mean by delete docker container ? delete the folder/project Forest-Jurify ? Or just the docker-compose.yml file ?

@feeleebaire just use docker kill [container id] then docker rm [container id] before restarting you container (just to ensure your container is a fresh new one)

@Steve_Bunlon i don’t use Docker I install the project with NPM

@feeleebaire Ah sorry I though you were (you pasted me the docker-compose file, my bad).

Then normaly simply restarting your server should fix the CORS issue.

Steve.

hello @Steve_Bunlon,
I restart server and i still have CORS issue

Access to XMLHttpRequest at 'http://localhost:3310/forest' from origin 'http://app.forestadmin.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Ok works finally…
Lumber version updated

1 Like