Hi, I’m trying to fix an issue that I’m quite fami...
# infisical-help
k
Hi, I’m trying to fix an issue that I’m quite familiar with. However, I’m facing the following problem while setting up the local environment. Could anyone please suggest or guide me on how to resolve this and get the local server running? OS: Ubuntu I’m running the commands mentioned here. Below are the error details:
Copy code
infisical-dev-api              | 
infisical-dev-api              | CryptographyError: FIPS mode is enabled, but the ENCRYPTION_KEY environment variable is not a 256-bit key.
infisical-dev-api              | You can generate a 256-bit key using the following command: `openssl rand -base64 32`
infisical-dev-api              |     at $setFipsModeEnabled (/app/src/lib/crypto/cryptography/crypto.ts:2:5087)
infisical-dev-api              |     at Object.initialize (/app/src/lib/crypto/cryptography/crypto.ts:2:6477)
infisical-dev-api              |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
infisical-dev-api              |     at async initEnvConfig (/app/src/lib/config/env.ts:2:23225)
infisical-dev-api              |     at async run (/app/src/main.ts:2:2190) {
infisical-dev-api              |   error: undefined
infisical-dev-api              | }
infisical-dev-api              | 
infisical-dev-api              | Node.js v20.19.5
I already generated key using the below command:
Copy code
openssl rand -base64 32
I replace the value of ENCRYPTION_KEY with the value I got from the command above, but yet the error is still persist. LMK @Vlad (Infisical) please. EDIT: Another issue I am facing: Thanks in advance!