nextcloud / nextcloud/server

[Bug]: Encryption not ready: Module with ID: OC_DEFAULT_MODULE does not exist.

Open
#40,096 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 27-feedback bug feature: encryption (server-side) needs review
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ Before submitting, please verify the following: ⚠️
Bug description

After upgrading to Nextcloud 27, I am getting an error that the OC_DEFAULT_MODULE does not exist. The Default Encryption App is enabled.

occ encryption:status returns:

 - enabled: true
 - defaultModule: OC_DEFAULT_MODULE

The Personal -> Security page reports "Encryption App is enabled, but your keys are not initialized. Please log-out and log-in again. " I have tried logging out and logging back in through the web browser several times but the message has stayed the same and the error persists.

Steps to reproduce

Error occurs when the Desktop Client is attempting to sync, it stops during the first file and so no files are being synced.

Expected behavior

When syncing the files, the files should be synchronised with the server files.

Which files are affected by this bug

nextcloud.exe

Operating system

Windows

Which version of the operating system you are running.

Windows 10/11, Ubuntu 23

Package

Distro package manager

Nextcloud Server version

27.0.2

Nextcloud Desktop Client version

3.9.3

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

Updated to a major version (ex. 3.3.6 to 3.4.0)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?
  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Nextcloud Server logs

No response

Additional info

Create-Debug-Archive-Extra-Logs.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the occ encryption:status output and the encryption initialization message on the Personal → Security page, then compare the server 27.0.2 and Desktop Client 3.9.3 behavior during the first sync. Done means the default encryption module is available, keys initialize after login, and files synchronize successfully without the reported error.

Written by the indexing model from the issue text.

Assessment

Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.