Server-side encryption cannot be enabled because of a VUE JS error

Nextcloud Version: Nextcloud Hub 3 (25.0.4)
Operating System: Arch Linux
Hosting Method: AIO Docker

Nextcloud version (eg, 20.0.5): Nextcloud Hub 3 (25.0.4)
Operating system and version (eg, Ubuntu 20.04): Arch linux
Apache or nginx version (eg, Apache 2.4.25): nginx/1.22.1
PHP version (eg, 7.4): 8.0.28

The issue you are facing:
When loading the corresponding settings page, I get the following vueJS error

TypeError: Cannot read properties of undefined (reading '0')
    at (Encryption.vue:113:1)
    at o.<anonymous> (vue.runtime.esm.js:4752:29)
    at vue.runtime.esm.js:5464:21
    at vue.runtime.esm.js:5428:42
    at Ln (vue.runtime.esm.js:5369:9)
    at e._init (vue.runtime.esm.js:5691:9)
    at new o (vue.runtime.esm.js:5826:18)
    at 16673 (main-admin-security.js:51:1)
    at r (bootstrap:19:32)
    at startup:4:88
wt @ vue.runtime.esm.js:3049

And this basically blocks all access to the server-side encryption setting toggle. Is there a request I can send over the browser console, so I do not need to do it over the WebGUI?

Someone else seems to have this problem as well

Thank your all for your help! :smiley:

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

Steps to replicate it:

  1. Install Nextcloud over the AIO solution
  2. Go into the backend
  3. Try to enable server-side encryption
  4. See that it does not toggle.

The output of your Nextcloud log in Admin > Logging:

Only login fails. No other errors

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Setup with Nextcloud AIO

The output of your Apache/nginx/system log in /var/log/____:

No Error log printed for Nextcloud

i have exact the same Problem on Nextcloud Hub 4 (26.0.1)

in the System Log i have an PHP Error “Undefined array key “family” at /www/htdocs/…/apps/serverinfo/lib/OperatingSystems/DefaultOs.php#159”

OK, found it by my own … very simple. :person_facepalming:t4:
First activate the “Default encryption module”, next you can enable encryption …

1 Like