Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Cal.com
  3. Unable to enable 2FA on admin account

Unable to enable 2FA on admin account

Scheduled Pinned Locked Moved Solved Cal.com
5 Posts 3 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 3699n3 Offline
      3699n3 Offline
      3699n
      wrote on last edited by 3699n
      #1

      After completing the admin onboarding process, Cal.com requests you to setup 2FA to be able to access Admin settings. Attempting to do so results in an error. See below:

      screenshot of cal.com 2fa error

      Sep 04 13:40:27@calcom/web:start: RangeError: Invalid key length
      Sep 04 13:40:27@calcom/web:start: at Cipheriv.createCipherBase (node:internal/crypto/cipher:116:19)
      Sep 04 13:40:27@calcom/web:start: at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:135:3)
      Sep 04 13:40:27@calcom/web:start: at new Cipheriv (node:internal/crypto/cipher:243:3)
      Sep 04 13:40:27@calcom/web:start: at Object.createCipheriv (node:crypto:141:10)
      Sep 04 13:40:27@calcom/web:start: at symmetricEncrypt (/run/calcom/apps/web/.next/server/chunks/13303.js:29:66)
      Sep 04 13:40:27@calcom/web:start: at handler (/run/calcom/apps/web/.next/server/pages/api/auth/two-factor/totp/setup.js:171:103) {
      Sep 04 13:40:27@calcom/web:start: code: 'ERR_CRYPTO_INVALID_KEYLEN'
      Sep 04 13:40:27@calcom/web:start: }
      

      I would see this as quite an urgent issue as it prevents from adding new apps to the platform.

      1 Reply Last reply
      0
      • nebulonN nebulon marked this topic as a question on
      • 3699n3 Offline
        3699n3 Offline
        3699n
        wrote on last edited by
        #2

        @nebulon It seems this issue is caused by incorrectly generated NEXTAUTH_SECRET and CALENDSO_ENCRYPTION_KEY

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #3

          Good catch! I've updated the package to generate an encryption key with the correct length now. If you already have the app installed, you can either reinstall or also deleting the file .calendso_encryption_key then restart the app to have it regenerated.

          1 Reply Last reply
          1
          • nebulonN nebulon has marked this topic as solved on
          • S Offline
            S Offline
            sparkwise
            wrote on last edited by
            #4

            I wasn't ultimately able to get this to work, but uninstalling and reinstalling the Cal.com app from the Cloudron App Store gave me access to the admin onboarding flow, which did let me set up Google Calendar correctly.

            S 1 Reply Last reply
            3
            • S sparkwise

              I wasn't ultimately able to get this to work, but uninstalling and reinstalling the Cal.com app from the Cloudron App Store gave me access to the admin onboarding flow, which did let me set up Google Calendar correctly.

              S Offline
              S Offline
              sparkwise
              wrote on last edited by
              #5

              (Please ignore my previous comment. It was intended for a different thread.)

              1 Reply Last reply
              1
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search