I’m on this page:
I copy the environment variables over to .env
as instructed, running with docker on amazon linux, using ngrok for my application URL.
I start the application:
$ docker-compose up
Starting my_admin ... done
Attaching to my_admin
my_admin |
my_admin | > my-admin@0.0.1 start /usr/src/app
my_admin | > node ./server.js
my_admin |
my_admin | Your application is listening on port 3310.
my_admin | [forest] 🌳🌳🌳 The .forestadmin-schema.json file does not exist.
my_admin | {}
my_admin | [forest] 🌳🌳🌳 The schema cannot be synchronized with Forest Admin servers.
my_admin | {}
my_admin | Your admin panel is available here: https://app.forestadmin.com/projects
my_admin | GET /forest 204 - - 23.890 ms
my_admin | GET /forest 204 - - 1.742 ms
my_admin | GET /forest 204 - - 1.828 ms
and nothing changes. Does changing .env
and running docker-compose up
not work, did I miss a step?
When I go to https://app.forestadmin.com/projects, and click on my project, I get the error:
Access forbidden
You don’t have access to any environment.
You can create a development environment in the Environments settings.
If you’re not a developer, please contact the admin of this project.
docker ps
shows that the container is running and was restarted 13 mins ago.
To install, I ran:
docker pull forestadmin/toolbelt
docker run --rm --init -it -v ~/.forest.d:/usr/src/cli/.forest.d -e TOKEN_PATH="/usr/src/cli" forestadmin/toolbelt login
docker run --rm --init -it -v `pwd`:/usr/src/app -v ~/.forest.d:/usr/src/cli/.forest.d -e TOKEN_PATH="/usr/src/cli" forestadmin/toolbelt projects:create "My Admin" --databaseConnectionURL "mongodb://*****" --applicationHost "localhost" --applicationPort "3310"
cd "My Admin"
docker-compose up
I thought perhaps the space in “My Admin” could be a problem, deleted
/home/ec2-user/My Admin
re-ran the docker run --rm --init
command with
projects:create "MyAdmin"
but am experiencing the same issue. cd MyAdmin && docker-compose up
has the same result. The “Set your environment variables page” just says "
Waiting for your environment variables to be correctly set. " and it seems to continuously ping my installation on the /forest
endpoint:
my_admin | GET /forest 204 - - 1.171 ms
my_admin | GET /forest 204 - - 0.874 ms
my_admin | GET /forest 204 - - 0.838 ms
my_admin | GET /forest 204 - - 0.902 ms
my_admin | GET /forest 204 - - 2.512 ms
my_admin | GET /forest 204 - - 0.882 ms
my_admin | GET /forest 204 - - 0.902 ms
I tried appending the environment variables to the .env
and then replaced the entire contents of .env
with the 5 environment variables listed. I first received an error :
WARNING: The APPLICATION_PORT variable is not set. Defaulting to a blank string.
WARNING: The DATABASE_SSL variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.app.ports contains an invalid type, it should be a number, or an object
So I added APPLICATION_PORT=3310
back in, and restarted, but to no avail.