Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"KEY" Environment Variable is missing. #9

Open
Mrzhangjwei opened this issue Dec 1, 2022 · 4 comments
Open

"KEY" Environment Variable is missing. #9

Mrzhangjwei opened this issue Dec 1, 2022 · 4 comments

Comments

@Mrzhangjwei
Copy link

您好,我按照部署命令安装,日志如下:

13:40:02 ✨ Initializing bootstrap...
13:40:02 ✨ Installing Directus system tables...
13:40:03 ✨ Running migrations...
13:40:03 ✨ Applying Remove Collection Foreign Keys...
13:40:04 ✨ Applying Remove System Relations...
13:40:04 ✨ Applying Remove System Collections...
13:40:04 ✨ Applying Remove System Fields...
13:40:04 ✨ Applying Add Cascade System Relations...
13:40:07 ✨ Applying Change Webhook URL Type...
13:40:07 ✨ Applying Add Relations Sort Field...
13:40:07 ✨ Applying Remove Locked Fields...
13:40:07 ✨ Applying Webhooks Collections Text...
13:40:07 ✨ Applying Add Refresh Interval...
13:40:07 ✨ Applying Make Filesize Nullable...
13:40:08 ✨ Applying Add Collections Accountability...
13:40:08 ✨ Applying Remove Files Interface...
13:40:08 ✨ Applying Rename Interfaces...
13:40:08 ✨ Applying Restructure Relations...
13:40:08 ✨ Applying Add Foreign Key Constraints...
13:40:08 ✨ Applying Add System Fk Triggers...
13:40:09 ✨ Applying Add Collections Icon Color...
13:40:10 ✨ Applying Add Insights...
13:40:10 ✨ Applying Add Deep Clone Config...
13:40:10 ✨ Applying Change Filesize Bigint...
13:40:10 ✨ Applying Add Conditions to Fields...
13:40:10 ✨ Applying Add Default Folder...
13:40:10 ✨ Applying Replace Groups...
13:40:10 ✨ Applying Add Required to Fields...
13:40:11 ✨ Applying Update Groups...
13:40:11 ✨ Applying Change Image Metadata Structure...
13:40:11 ✨ Applying Add Geometry Config...
13:40:11 ✨ Applying Remove Limit Column...
13:40:11 ✨ Applying Add Auth Provider...
13:40:11 ✨ Applying Webhooks Collections Not Null...
13:40:11 ✨ Applying Move Module Setup...
13:40:11 ✨ Applying Webhooks URL Not Null...
13:40:12 ✨ Applying Add Collection Organization...
13:40:12 ✨ Applying Replace Fields Group...
13:40:12 ✨ Applying Replace M2M Interface...
13:40:12 ✨ Applying Rename Login Action...
13:40:12 ✨ Applying Update Presets...
13:40:12 ✨ Applying Add Auth Data...
13:40:12 ✨ Applying Add Webhook Headers...
13:40:12 ✨ Applying Set Unique to User Token...
13:40:13 ✨ Applying Update Special Geometry...
13:40:13 ✨ Applying Remove Collections Listing...
13:40:13 ✨ Applying Add Notifications...
13:40:13 ✨ Applying Add Shares...
13:40:13 ✨ Applying Add Project Descriptor...
13:40:13 ✨ Setting up first admin role...
13:40:13 ✨ Adding first admin user...
13:40:13 ✨ No admin email provided. Defaulting to "[email protected]"
13:40:13 ✨ No admin password provided. Defaulting to "4SUTtqq8SSjV"
13:40:14 ✨ Done
npm notice
npm notice New major version of npm available! 8.1.2 -> 9.1.3
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.1.3>
npm notice Run `npm install -g [email protected]` to update!
npm notice
13:40:16 🚨 "KEY" Environment Variable is missing.
@mikkeschiren
Copy link
Collaborator

I can't reproduce this issue, did this happen, as it looks like, in the install of Directus?

@esyon
Copy link

esyon commented Jun 5, 2023

Same problem here... happening during the bootup process.

@gfysaris
Copy link

Got the exact same problem when i am deploying to GKE.
No other extra information provided to help with the investigation

@paulschmeida
Copy link

Based on the docs for docker-compose install, you need to generate KEY and SECRET env variables. I was able to add them to my values.yaml like this:

extraEnvVars:
  - name: KEY
    value: "random-value"
  - name: SECRET
    value: "random-value"

and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants