Nextcloud version : 17.0.2
Operating system and version : Arch Linux (latest)
Apache or nginx version : 1.16.1
PHP version : 7.4.3
Recently, during an upgrade to Nextcloud 18, my hard drive went out of space, which led to my config.php being lost (I couldn’t recover it by searching in memory), and unfortunately I have no backup of it. In particular, I lost the secret of the instance (and the password salt).
I still have everything else (data directory with files and keys, database). I had server-side encryption enabled, had not disabled master key and not enabled recovery. I still have the username and passwords of every user.
I tried creating a new instance with the same ID and importing the data directory and the database. I could recover non-encrypted data such as calendar, but could not decrypt the files.
occ encryption:decrypt-all or
occ encryption:decrypt [user], the private master key fails to be decrypted and nothing happens. I skipped the signature check using 'encryption_skip_signature_check` in the config so that is not the problem.
Is there hope of recovering those files ? Via the “public shared” key of the files maybe (I don’t quite get how this part works).
Thank you for your help !
(yes, next time I’ll definitely make backups)