I’m setting the admin passwords in the cfconfig an...
# box-products
a
I’m setting the admin passwords in the cfconfig and I’ve also tried the using an .env file:
Copy code
12:14:51    |   | Found OS environment variable [cfconfig_web_adminPassword]
12:14:51    |   | Found OS environment variable [cfconfig_adminPassword]
12:14:51    |   | Found OS environment variable [cfconfig_adminPasswordDefault]
Copy code
12:14:51    |   | Found OS environment variable [cfconfig_web_adminPassword]
12:14:51    |   | Found OS environment variable [cfconfig_adminPassword]
12:14:51    |   | Found OS environment variable [cfconfig_adminPasswordDefault]
12:14:51    |   | Importing into [luceeweb]...
12:14:51    |   | [adminPassword] set.
12:14:51    |   | Importing into [luceeserver]...
12:14:51    |   | [adminPassword] set.
12:14:51    |   | [adminPasswordDefault] set.
However, I’m still getting an error when the app runs.
Copy code
The key [CFCONFIG_ADMINPASSWORD] does not exist, only the following keys are available:  APP, APP_DIR, AWS_EXECUTION_ENV, BIN_DIR, BOX_SERVER_APP_CFENGINE ...
anyone know how to resolve this?
b
@Aubrey C. I don't really understand where you're seeing this error? Is it coming from your app code>? Are you trying to directly access that env var or something? I don't understand. Please include more info, screenshots, code, etc.
a
@bdw429s Thats a good question. The first two are the logs from the build process just showing that the admin pwd are set and picked up by cfconfig. The last one is the error I’m seeing when the application starts up. It works if I set the admin pwd in the Docker file as an ENV and gets set permanently and the env var is available at run. I’ll look if there is something in our app code that requires CFCONFIG_ADMINPASSWORD to be set. We are also having a similar issue with ehcache. I’m working on getting us a SpaceNinja Subscription. I can give more detailed information then.
We found the issue in the application code. Ty!
👍 1