Recover files with server-side encryption after update with files disconnected to NC27

Nextcloud version (eg, 20.0.5): 27.0.2

The issue you are facing:

I did moved my NFS server to a wrong network and executed Nextcloud upgrade from 26 to 27.0.2. Then I noticed and fixed the connection with the new IP address. I see no more errors.

The problem is that all the users do not see their files (only the ones AFTER the fixing). When I go to my NFS server I see all the files but they are encrypted with server-side encryption.

I would like to know if there is a procedure to reindex the files from the NFS server so users can see everything again if possible. I am worried about the encryption being a complicator, but if I understood correctly, the server-side encryption will use a user-key to encrypt it on the server.

Thank you very much in advance.

Sounds like you may need to do this:

occ files:scan --all

(or replace --all with the user name

This will re-index the files.

Docs: Using the occ command — Nextcloud latest Administration Manual latest documentation

As long as no significant parameters (such as encryption related ones) have been changed, the file re-indexing should be sufficient.

Tip You can try this on an individual account - a test account - rather than using --all)

Warning Shares of the files that disappeared from the database may need to be re-made, but the files themselves should re-appear for the file owners.