Encryption:scan:legacy-format error

Nextcloud version (eg, 20.0.5): 20.0.8
Operating system and version (eg, Ubuntu 20.04): 18.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.29 (Ubuntu)
PHP version (eg, 7.4): PHP 7.3.27-9+ubuntu18.04.1+deb.sury.org+1

The issue you are facing:


When trying to fix this and following the documentation.
When I run occ encryption:scan:legacy-format it goes through somee of the accounts and stops on one account that is deleted:

occ encryption:scan:legacy-format
Scanning all files for legacy encryption
Scanning all files for {$user1}
Scanning all files for {$user2}
Scanning all files for {$user3}
Scanning all files for {$user4}
Scanning all files for {$user5}
Scanning all files for {$user6}
Scanning all files for {$user7}
Scanning all files for {$user8}
Scanning all files for {$user9}
Scanning all files for {$user10}
Scanning all files for {$user11}

In FailedStorage.php line 70:
  Backends provided no user object for {$user12}

In Filesystem.php line 417:
  Backends provided no user object for {$user12}

encryption:scan:legacy-format

I can’t find why thise account still exist but still nog… In the /occ user:list, i can’t find it or in the database.

Is this the first time you’ve seen this error? (Y/N):
Yes

Steps to replicate it:

  1. occ encryption:scan:legacy-format
  2. Error

I know that this account got deleted with E2E activated back in version 15-16 and we get the problem now. Any suggestions?

Got it to work after this:

  1. RUN: occ maintenance:mode --on
  2. RUN: occ encryption:migrate-key-storage-format
  3. EDIT: config.php or security.config.php
  4. DELETE row:
    ‘encryption.legacy_format_support’ => true,
  5. Save
  6. RUN: occ maintenance:mode --off
  7. RUN occ encryption:status
  8. CHECK FOR:
    • enabled: false
  • defaultModule: OC_DEFAULT_MODULE