Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Always getting "Encryption App is enabled, but your keys are not initialized. Please log-out and log-in again." #51174

Closed
5 of 8 tasks
hendrikreimers opened this issue Mar 1, 2025 · 0 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@hendrikreimers
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Server side encryption doesn't work anymore since NC31, which is released a few days ago.

The key initialization message always showing up. Login... logout... login... logout... The keys don't be initialized and encryption cannot be set. Tried it on a fresh new installation as well as an upgrade from previous NC (which broke my installation). Tried it multiple times with a fresh new installation, disabled master key before enabling the module in the admin settings.

Steps to reproduce

Setup a fresh new NC31 (Nextcloud Hub 10) installation.
Enable encryption module app and in the admin management settings.
Login as user, logout as user, login again... repeat...

Expected behavior

Key initializing after re-login and encryption can be enabled and working as expected an written in the documentation.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "sqlite3",
        "version": "31.0.0.18",
        "overwrite.cli.url": "http:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    },
    "apps": {
        "activity": {
            "installed_version": "4.0.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "app_api": {
            "installed_version": "5.0.2",
            "types": "",
            "enabled": "yes"
        },
        "backgroundjob": {
            "lastjob": "17"
        },
        "bruteforcesettings": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "circles": {
            "installed_version": "31.0.0-dev.0",
            "types": "filesystem,dav",
            "enabled": "yes",
            "loopback_tmp_scheme": "http"
        },
        "cloud_federation_api": {
            "installed_version": "1.14.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "comments": {
            "installed_version": "1.21.0",
            "types": "logging",
            "enabled": "yes"
        },
        "contactsinteraction": {
            "installed_version": "1.12.0",
            "types": "dav",
            "enabled": "yes"
        },
        "core": {
            "installedat": "1740854711.2652",
            "lastupdatedat": 1740854711,
            "vendor": "nextcloud",
            "public_files": "files_sharing\/public.php",
            "lastcron": 1740854874,
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "encryption_enabled": "yes",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "installed_version": "7.11.0",
            "types": "",
            "enabled": "yes"
        },
        "dav": {
            "installed_version": "1.33.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "encryption": {
            "installed_version": "2.19.0",
            "enabled": "yes",
            "types": "filesystem",
            "recoveryKeyId": "recoveryKey_40c2bed8",
            "publicShareKeyId": "pubShare_40c2bed8",
            "masterKeyId": "master_40c2bed8",
            "useMasterKey": "0"
        },
        "federatedfilesharing": {
            "installed_version": "1.21.0",
            "types": "",
            "enabled": "yes"
        },
        "federation": {
            "installed_version": "1.21.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "files": {
            "installed_version": "2.3.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_downloadlimit": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "files_pdfviewer": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "files_reminders": {
            "installed_version": "1.4.0",
            "types": "",
            "enabled": "yes"
        },
        "files_sharing": {
            "installed_version": "1.23.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_trashbin": {
            "installed_version": "1.21.0",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "files_versions": {
            "installed_version": "1.24.0",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "firstrunwizard": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "logreader": {
            "installed_version": "4.0.0",
            "types": "logging",
            "enabled": "yes"
        },
        "lookup_server_connector": {
            "installed_version": "1.19.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "nextcloud_announcements": {
            "installed_version": "3.0.0",
            "types": "logging",
            "enabled": "yes"
        },
        "notifications": {
            "installed_version": "4.0.0",
            "types": "logging",
            "enabled": "yes"
        },
        "oauth2": {
            "installed_version": "1.19.1",
            "types": "authentication",
            "enabled": "yes"
        },
        "password_policy": {
            "installed_version": "3.0.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "photos": {
            "installed_version": "4.0.0-dev.1",
            "types": "dav,authentication",
            "enabled": "yes",
            "lastPlaceMappedUser": "admin",
            "lastPlaceMappingDone": "true"
        },
        "privacy": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes"
        },
        "profile": {
            "installed_version": "1.0.0",
            "types": "",
            "enabled": "yes"
        },
        "provisioning_api": {
            "installed_version": "1.21.0",
            "types": "prevent_group_restriction",
            "enabled": "yes"
        },
        "recommendations": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "related_resources": {
            "installed_version": "2.0.0",
            "types": "",
            "enabled": "yes"
        },
        "serverinfo": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes"
        },
        "settings": {
            "installed_version": "1.14.0",
            "types": "",
            "enabled": "yes"
        },
        "sharebymail": {
            "installed_version": "1.21.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "support": {
            "installed_version": "3.0.0",
            "types": "session",
            "enabled": "yes"
        },
        "survey_client": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes"
        },
        "systemtags": {
            "installed_version": "1.21.1",
            "types": "logging",
            "enabled": "yes"
        },
        "text": {
            "installed_version": "5.0.0",
            "types": "dav",
            "enabled": "yes"
        },
        "theming": {
            "installed_version": "2.6.1",
            "types": "logging",
            "enabled": "yes"
        },
        "twofactor_backupcodes": {
            "installed_version": "1.20.0",
            "types": "",
            "enabled": "yes"
        },
        "updatenotification": {
            "installed_version": "1.21.0",
            "types": "",
            "enabled": "yes"
        },
        "user_status": {
            "installed_version": "1.11.0",
            "types": "",
            "enabled": "yes"
        },
        "viewer": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "weather_status": {
            "installed_version": "1.11.0",
            "types": "",
            "enabled": "yes"
        },
        "webhook_listeners": {
            "installed_version": "1.2.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "workflowengine": {
            "installed_version": "2.13.0",
            "types": "filesystem",
            "enabled": "yes"
        }
    }
}

List of activated Apps

Enabled:
  - activity: 4.0.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - circles: 31.0.0-dev.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - encryption: 2.19.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud_announcements: 3.0.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - admin_audit: 1.21.0
  - files_external: 1.23.0
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0

Nextcloud Signing status

Nextcloud Logs

Additional info

Maybe it's related or similar to an very old issue #4797

@hendrikreimers hendrikreimers added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants