Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

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

Open

Description

@ansulagrawal

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.

Activity

  1. changed the title [-]Asking to update admin password even password is of 20 length [/-] [+]Asking to update admin password even password is of 20 length and mfa issue[/+] on Nov 5, 2024
  2. ansulagrawal commented on Nov 5, 2024

    @ansulagrawal
    Author

    Here is the image of admin password error
    image

  3. ansulagrawal commented on Nov 5, 2024

    @ansulagrawal
    Author

    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: }

  4. RuanAyram commented on Jan 8, 2025

    @RuanAyram

    Up!

  5. asm0dey commented on Mar 12, 2025

    @asm0dey

    Same for me!

  6. ikigai-service-account commented on May 15, 2025

    @ikigai-service-account

    Same for me

  7. utopiafallen commented on Jun 2, 2025

    @utopiafallen

    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.

  8. added
    triageAcknowledged and awaiting investigation
    on Jul 14, 2025
  9. added
    documentationImprovements or additions to documentation
    and removed
    documentationImprovements or additions to documentation
    on Jul 17, 2025
  10. joecarpita commented on Jul 26, 2025

    @joecarpita

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Cal.com CoretriageAcknowledged and awaiting investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions