[Bug]: Encryption app is enabled, but your keys are not initialized. Please log-out and log-in again. (upgrade 30.0.6 to 31)

Details

After upgrade from Nextcloud 30.0.6 to 31.0.0 i got this error after login on WebGui:

Encryption app is enabled, but your keys are not initialized. Please log-out and log-in again.

Login and logout with different browsers doesn’t change anything. Files not visible because of broken decryption. I think this is a bug in version 31.0.0.

The Basics

  • Nextcloud Server version : [Nextcloud Hub 10] (31.0.1)

  • PHP version ( 8.3):

  • When did this problem seem to first start? After updating to 31.0.1

Same here. Screenshot shows a opened text file:

Listing files in browser the console says: “Could not find initial state config of files_trashbin”

Please help! Can’t access my files!

I was able to solve the issue by generating backup codes. If they were generated before already, try regenerating them.

The prompt above happened only when accessing the web login for connecting the Nextcloud app so I tried many things including logging in and out, creating a new account, trying the .deb version, re-sharing folders, changing passwords, etc., but when the prompt was also present in the newly-created account, before accepting that app passwords are the way to go, I decided to try generating backup codes.

For reference, my version is 31.0.4.

I hope the trick helps with your instance, too.

EDIT: On another account, setting up TOTP solved the issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.