Add users to groups but they are dissapeared after f5

Support info
The Basics
  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 25.10
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.64 (Ubuntu)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • traefik:v3.5.0
  • PHP version (e.g, 8.3):
    • Version: 8.4.11
  • Is this the first time you’ve seen this error? (Yes / No):
    • every time when try to add users to teams
  • When did this problem seem to first start?
    • after install
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Proxmox VM
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • yes, i use Cloudflare as DNS server

Summary of the issue you are facing:

Cant add any contact to teams. When i update web page users dissapeared from groups.

Video of issue: Nextcoud_team_issue.mp4 — Яндекс Диск

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

  1. Create random name team;

  2. Create ramdom user;

  3. Add random user to ramdom Team

  4. Press F5 in browser

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

FederatedItemBadRequestException
Already member of the team

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

Some members could not be added

image

Web server / Reverse Proxy

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

no errors 

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '*****',
  'secret' => '*******',
  'trusted_proxies' =>
  array (
    0 => '192.168.5.0/24',
  ),
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'next***.*********.*******',
    2 => '192.168.****.***',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '32.0.3.2',
  'overwritehost' => 'next***.*******.********',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://next***.********.**',
  'default_phone_region' => 'us',
  'allow_local_remote_servers' => true,
  'dbname' => '***',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '***',
  'dbpassword' => '*******',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'installed' => true,
  'instanceid' => '******',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
    0 => '***',
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
    0 => 'Users',
  ),
  'app_install_overwrite' =>
  array (
    0 => 'apporder',
  ),
  'maintenance' => false,
  'onlyoffice' =>
  array (
    'verify_peer_off' => true,
    'jwt_secret' => '*******',
    'editor_url' => 'https://192.168.****.*****',
    'disable_certificate_verification' => true,
  ),
  'has_internet_connection' => true,
  'loopback_tmp_disabled' => true,
  'allow_local_remote_servers' => true,
);

Errors in error log when i try to add users:

{
  "reqId": "******",
  "level": 3,
  "time": "2026-04-10T10:23:51+00:00",
  "remoteAddr": "192.168.5.86",
  "user": "******",
  "app": "",
  "method": "POST",
  "url": "/ocs/v2.php/apps/circles/circles/******/members/multi",
  "message": "{\"event\":\"\"}",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36",
  "version": "32.0.3.2",
  "exception": {
    "Exception": "OCA\\Circles\\Exceptions\\FederatedItemBadRequestException",
    "Message": "Already member of the team",
    "Code": 122,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/FederatedItems/SingleMemberAdd.php",
        "line": 233,
        "function": "manageMemberStatus",
        "class": "OCA\\Circles\\FederatedItems\\SingleMemberAdd",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/FederatedItems/MassiveMemberAdd.php",
        "line": 51,
        "function": "generateMember",
        "class": "OCA\\Circles\\FederatedItems\\SingleMemberAdd",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Service/FederatedEventService.php",
        "line": 159,
        "function": "verify",
        "class": "OCA\\Circles\\FederatedItems\\MassiveMemberAdd",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Service/MemberService.php",
        "line": 258,
        "function": "newEvent",
        "class": "OCA\\Circles\\Service\\FederatedEventService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/circles/lib/Controller/LocalController.php",
        "line": 266,
        "function": "addMembers",
        "class": "OCA\\Circles\\Service\\MemberService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 204,
        "function": "membersAdd",
        "class": "OCA\\Circles\\Controller\\LocalController",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 118,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppFramework/App.php",
        "line": 153,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Route/Router.php",
        "line": 321,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/var/www/html/nextcloud/ocs/v1.php",
        "line": 61,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/ocs/v2.php",
        "line": 8,
        "args": ["/var/www/html/nextcloud/ocs/v1.php"],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/nextcloud/apps/circles/lib/FederatedItems/SingleMemberAdd.php",
    "Line": 286,
    "message": "{\"event\":\"\"}",
    "exception": {
      "class": "OCA\\Circles\\Exceptions\\FederatedItemBadRequestException",
      "status": 400,
      "code": 122,
      "message": "Already member of the team"
    },
    "CustomMessage": "{\"event\":\"\"}"
  }
}

I try to use:
sudo -u www-data php /var/www/html/nextcloud/occ circles:manage:list

and get correct membership number of groups

but when i go to:

sudo -u www-data php /var/www/html/nextcloud/occ circles:manage:details 2lMig5PBa4sYuTOygH2akJhW9lujxJT (one of group)

I have empty json inputs in all addeded users

Cant understand how we should set up to have correct answer with POST

I think it is reason of circles problems

32.0.3 isn’t supported. Current supported maintenance release is v32.0.8.

Before troubleshooting much further, please update.

1 Like