This is a template you can use to report issues. You can also drag images, videos and include Preformatted text
Expected behavior
I have setup a build pipeline that builds a docker image from the initial backend code. The code was left untouched. The image was built from the Dockerfile provided.
When I run this docker image from my server I’m getting an error saying The Forest_env_secret is missing:
> hophopadmin@0.0.1 start /usr/src/app
> node ./server.js
Your application is listening on port 3310.
[forest] 🌳🌳🌳 An error occured while retrieving your IP whitelist. Your Forest envSecret seems to be missing or unknown. Can you check that you properly set your Forest envSecret in the Forest initializer?
Your admin panel is available here: https://app.forestadmin.com/projects
GET /forest 204 - - 22.101 ms
GET /forest 204 - - 2.060 ms
GET /forest 204 - - 1.921 ms
GET /forest 204 - - 2.388 ms
But looking at the pod configuration the environment are properly set:
Containers:
hophopadmin:
Container ID: docker://51e233befec7d6f70e52f994b937302bffc897cff1223792fcce2d922ea2e868
Image: xxxxxxxxxxxx/hophopme/hophopadmin:latest
Image ID: docker-pullable://xxxxxxxxx/hophopme/hophopadmin@sha256:b2b4b81d9c06b6be0b27596ad685a46d742145698e7480114218372aaa539860
Port: 3310/TCP
Host Port: 0/TCP
State: Running
Started: Fri, 05 Jun 2020 23:20:54 +0200
Ready: True
Restart Count: 0
Environment:
APPLICATION_PORT: 3310
DATABASE_URL: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DATABASE_SCHEMA: public
DATABASE_SSL: true
FOREST_AUTH_SECRET: xxxxxxxxxxxxxxxxxxxxxxx
FOREST_ENV_SECRET: xxxxxxxxxxxxxxxxxxxxxxxx
NODE_ENV: staging
Mounts:
Actual behavior
What is the current behavior?
The forest_app_secret is not taken from the environment variable.
Failure Logs
Please include any relevant log snippets, if necessary.
Context
Please provide any relevant information about your setup.
- Package Version: Latest version
- Express Version:
- Sequelize Version:
- Database Dialect:
- Database Version:
- Project Name: