docker icon indicating copy to clipboard operation
docker copied to clipboard

Asking to update admin password even password is of 20 length and mfa issue

Open ansulagrawal opened this issue 1 year ago • 7 comments

I am getting an error as to become an admin update the password for a minimum of 20 characters.

I updated the password and logged in again still getting the same error.

And I am not able to set up mfa as It says something went wrong, please try again later.

ansulagrawal avatar Nov 05 '24 15:11 ansulagrawal

Here is the image of admin password error image

ansulagrawal avatar Nov 05 '24 15:11 ansulagrawal

Below is the pic for mfa enable image

Logs:

RangeError: Invalid key length @calcom/web:start: at Cipheriv.createCipherBase (node:internal/crypto/cipher:122:19) @calcom/web:start: at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3) @calcom/web:start: at new Cipheriv (node:internal/crypto/cipher:249:3) @calcom/web:start: at Object.createCipheriv (node:crypto:141:10) @calcom/web:start: at symmetricEncrypt (/calcom/apps/web/.next/server/chunks/69559.js:1:278) @calcom/web:start: at handler (/calcom/apps/web/.next/server/pages/api/auth/two-factor/totp/setup.js:1:3199) { @calcom/web:start: code: 'ERR_CRYPTO_INVALID_KEYLEN' @calcom/web:start: }

ansulagrawal avatar Nov 05 '24 15:11 ansulagrawal

Up!

RuanAyram avatar Jan 08 '25 19:01 RuanAyram

Same for me!

asm0dey avatar Mar 12 '25 17:03 asm0dey

Same for me

ikigai-service-account avatar May 15 '25 21:05 ikigai-service-account

The ERR_CRYPTO_INVALID_KEYLEN can be solved by setting a 24 character encryption key for CALENDSO_ENCRYPTION_KEY using

openssl rand -base64 24

~~While that gets 2FA working, I'm still trying to figure out why admin access is not granted despite a password meeting length requirements and 2FA enabled.~~

Scratch that, the UI is just wonky. After setting up 2FA, you need to explicitly logout and log back in (possibly clearing site cookies after logging out), and then you'll get the admin controls and no banner.

utopiafallen avatar Jun 02 '25 05:06 utopiafallen

I am (suddenly) experiencing this as well - even trying openssl rand -base64 24 doesn't seem to be working. I encounter both the banner to update the admin password, as well as the inability to add 2FA.

joecarpita avatar Jul 26 '25 01:07 joecarpita