Hi everyone, I was following the <self-host guide>...
# infisical-help
p
Hi everyone, I was following the self-host guide...trying to run a local instances of infisical but the backend container is hitting this error, any advice?:
Copy code
Please migrate your code to use AWS SDK for JavaScript (v3).

For more information, check the migration guide at <https://a.co/7PzMCcy>⁠

(Use `node --trace-warnings ...` to show where the warning was created)

{"level":30,"time":1765587869997,"pid":1,"hostname":"841c0ae4c461","reqId":"UNKNOWN_REQUEST_ID","severity":"INFO","msg":"Cryptography module initialized in normal operation mode."}

{"level":30,"time":1765587870019,"pid":1,"hostname":"841c0ae4c461","reqId":"UNKNOWN_REQUEST_ID","severity":"INFO","msg":"Running application migrations."}

migration file "20250210101840_webhook-to-kms.mjs" failed

migration failed with error: Invalid key length

{"level":50,"time":1765587870091,"pid":1,"hostname":"841c0ae4c461","reqId":"UNKNOWN_REQUEST_ID","severity":"ERROR","err":{"type":"RangeError","message":"Invalid key length","stack":"RangeError: Invalid key length\n    at Cipheriv.createCipherBase (node:internal/crypto/cipher:121:19)\n    at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:140:3)\n    at new Cipheriv (node:internal/crypto/cipher:243:3)\n    at Object.createCipheriv (node:crypto:147:10)\n    at Object.createCipheriv (/backend/node_modules/dd-trace/packages/datadog-instrumentations/src/crypto.js:29:27)\n    at Object.encrypt (/backend/src/lib/crypto/cipher/cipher.ts:14:40)\n    at $encryptRootKey (/backend/src/services/kms/kms-service.ts:882:21)\n    at <anonymous> (/backend/src/services/kms/kms-service.ts:1084:38)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async <anonymous> (/backend/src/lib/knex/index.ts:153:19)","code":"ERR_CRYPTO_INVALID_KEYLEN"},"msg":"Boot up migration failed"}

{"level":30,"time":1765587870089,"pid":1,"hostname":"841c0ae4c461","reqId":"UNKNOWN_REQUEST_ID","severity":"INFO","msg":"KMS: Generating new ROOT Key"}

{"level":50,"time":1765587870090,"pid":1,"hostname":"841c0ae4c461","reqId":"UNKNOWN_REQUEST_ID","severity":"ERROR","hsmEnabled":{},"msg":"KMS: Failed to encrypt ROOT Key"}

Updating certificates in /etc/ssl/certs...

0 added, 0 removed; done.

Running hooks in /etc/ca-certificates/update.d...

done.