Unable to enable 2FA on admin account
-
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:

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.
-
N nebulon marked this topic as a question on
-
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_keythen restart the app to have it regenerated. -
N nebulon has marked this topic as solved on
-
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.
(Please ignore my previous comment. It was intended for a different thread.)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login