nextcloud / nextcloud/server

[Bug]: Nextcloud asking for sodium although being installed

Open
#35,593 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

⚠️ This issue respects the following points: ⚠️
  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.
Bug description

Following the discussion in https://github.com/nextcloud/server/issues/28398, Nextcloud will still complaint the missing of sodium module when sodium is installed but PHP is not compiled with --with-password-argon2.
This information is misleading and diverts the users to a wrong direction.

Steps to reproduce
  1. Use php without --with-password-argon2.
  2. Install sodium module.
Expected behavior

Nextcloud should tell the users that PHP is not compiled with --with-password-argon2, not the missing of sodium module.

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

No file or test is named in the issue. Start by reproducing the setup with PHP built without --with-password-argon2 and the sodium module installed, then trace the requirement check that produces the misleading message. Done means the diagnostic identifies the missing PHP build option rather than claiming sodium is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.