Cant change user status "There was an error saving the new status"

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.0
  • Operating system and version (e.g., Ubuntu 24.04):
    • openSUSE Leap 15.6
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.58 (Linux/SUSE)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • pfsense HAProxy version 2.8.3-86e043a
  • PHP version (e.g, 8.3):
    • 8.2.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After upgrading to 31 from 30.0.6 and fixing the db row format.
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • CLI updater,
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No.

Summary of the issue you are facing:

Whenever i try to modify the status of the user i logged in as i see an error stating “There was an error saving the new status” as soon as i click on said status.

Steps to replicate it (hint: details matter!):

  1. Click on user image in top-right corner.
  2. Click on status.
  3. Click on any status that

Log entries

Nextcloud

No logs relating to this issue, not even at log level 0.

Web Browser

GET https://<domain>/ocs/v2.php/apps/user_status/api/v1/statuses/_<user_name> 404
PUT https://<domain>/ocs/v2.php/apps/user_status/api/v1/user_status/status 404

Web server / Reverse Proxy

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

<ipv6_of_remote_machine>- - [05/Mar/2025:01:12:30 +0100] "GET /ocs/v2.php/apps/user_status/api/v1/statuses/_heathcliff HTTP/1.1" 404 6496 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"
<ipv6_of_remote_machine> - - [05/Mar/2025:01:12:32 +0100] "PUT /ocs/v2.php/apps/user_status/api/v1/user_status/status HTTP/1.1" 404 6496 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

Configuration

Nextcloud

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.10.68",
            "192.168.10.1",
            "<domain>",
            "[<ipv6>]",
            "[<ipv6>]",
            "[<ipv6>]"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.0.18",
        "overwrite.cli.url": "https:\/\/<domain>\/",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "3306",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_phone_region": "HU",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": "0"
        },
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "Users",
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "updater.release.channel": "stable",
        "loglevel": 3,
        "theme": "",
        "simpleSignUpLink.shown": false,
        "maintenance_window_start": 1,
        "app_install_overwrite": [
            "cfg_share_links",
            "geoblocker"
        ],
        "mail_smtpsecure": "ssl"
    }
}

Apps

Enabled:
  - activity: 4.0.0
  - announcementcenter: 7.1.0
  - app_api: 5.0.2
  - audioplayer: 3.4.1
  - bruteforcesettings: 4.0.0
  - calendar: 5.1.2
  - cfg_share_links: 6.1.1
  - circles: 31.0.0-dev.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.0.1
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - deck: 1.15.0
  - federatedfilesharing: 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
  - geoblocker: 0.5.16
  - groupfolders: 19.0.3
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - music: 2.1.2
  - nextcloud_announcements: 3.0.0
  - notes: 4.11.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
  - richdocuments: 8.6.2
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - spreed: 21.0.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - twofactor_webauthn: 2.1.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
  - checksum: 1.2.5 (installed 1.2.5)
  - drawio: 3.0.3 (installed 3.0.3)
  - encryption: 2.19.0
  - federation: 1.21.0 (installed 1.18.0)
  - files_external: 1.23.0
  - keeweb: 0.6.20 (installed 0.6.20)
  - twofactor_nextcloud_notification: 5.0.0
  - user_ldap: 1.22.0

Found the culprit:
AH01630: client denied by server configuration: /srv/www/htdocs/ocs/v2.php

Odd because i have “Require all granted” both oin the vhost for nextcloud and the global config(<-- added after i discovered the above log entry but no effect). And yes i double checked filesystem permissions are correct and apparmor not blocking it.

/EDIT
Seems like only the user_status has some weird issues, status always gets denied but heartbeat works just fine:

<client_ipv6>- - [06/Mar/2025:12:01:17 +0100] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1" 200 153 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36"

Missing apache module:

a2enmod mod_authz_core

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.