I just installed the latest server on Ubuntu 22.04 manually, ie from the bzip file.
I then followed Instructions here:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_configuration.html
which say I should turn on server-side encryption in the settings and THEN enable the encryption module.
But this is not possible, whereas the reverse order seems to be.
Worse, after I enabled both, as well as the “encrypt the home storage” checkbox option, and came back to the same page, the server-side encryption toggle showed it was off again! and was not responsive. Meanwhile, the “encrypt the home storage” checkbox was still checked, which seems an impossible state if encryption is off.
When I check on the command line using occ, everything looks good: server encryption is on, the default module is enabled.
#sudo -u www-data php occ app:enable encryption
encryption already enabled
# sudo -u www-data php occ encryption:status
- enabled: true
- defaultModule: yes
# sudo -u www-data php occ encryption:enable-master-key
Master key already enabled
# sudo -u www-data php occ encryption:show-key-storage-root
Current key storage root: default storage location (data/)
# sudo -u www-data php occ encryption:list-modules
- OC_DEFAULT_MODULE: Default encryption module
But nothing works: I can create a file in the browser, but its contents never gets saved.
The nextcloud.log
file gets errors looking like this:
{"file":"/my/nextcloud/path/apps/text/lib/Service/ApiService.php","line":268,"function":"autosave","class":"OCA\\Text\\Service\\DocumentService","type":"->"},
{"file":"/my/nextcloud/path/apps/text/lib/Controller/SessionController.php","line":100,"function":"save","class":"OCA\\Text\\Service\\ApiService","type":"->"},
{"file":"/my/nextcloud/path/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"save","class":"OCA\\Text\\Controller\\SessionController","type":"->"},
{"file":"/my/nextcloud/path/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/my/nextcloud/path/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},
{"file":"/my/nextcloud/path/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},
{"file":"/my/nextcloud/path/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},
{"file":"/my/nextcloud/path/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],
"File":"/my/nextcloud/path/lib/private/Encryption/Manager.php",
"Line":199,"Hint":"Default encryption module not loaded",
"message":"Default encryption module not loaded",
"exception":{},"CustomMessage":"Default encryption module not loaded"}}
I want to get the basic installation working.