Nextcloud version (eg, 20.0.5): 26.0.3
Operating system and version (eg, Ubuntu 20.04): running in docker (image: nextcloud:26.0.3
Apache or nginx version (eg, Apache 2.4.25): Apache in container but nginx-reverseproxy in front
PHP version (eg, 7.4): ? in official container
The issue you are facing:
Hi everybody
After years of usage since a few days I am facing a strange problem:
At irregular intervals (sometimes 2 hours, sometimes 12 hours), users receive notifications that an administrator has removed them from group XY. Immediately after that, another one about an administrator adding them to the group.
They receive these two notifications for EVERY LDAP group they are a member of. This is quite annoying for the users and makes the push notifications unusable.
After finding entries in the log file that pointed to the Circles app, I disabled Circles. → no improvement.
But the logfile was a little bit tidier.
What remained were heaps of entries of this kind:
{
"reqId": "papnJJ9QZHgTgHN2vRF9",
"level": 1,
"time": "2023-07-01T15:51:56+01:00",
"remoteAddr": "",
"user": "--",
"app": "user_ldap",
"method": "",
"url": "--",
"message": "bgJ \"updateGroups\" – az added to p_morz-kollegium_2",
"userAgent": "--",
"version": "26.0.3.2",
"data": {
"app": "user_ldap"
}
}
and
other snippets of logfile
"file": "/var/www/html/apps/user_ldap/lib/Jobs/UpdateGroups.php",
"line": 178,
"function": "dispatchTyped",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
"OCP\\Group\\Events\\UserAddedEvent"
]
]
},
{
"file": "/var/www/html/apps/user_ldap/lib/Jobs/UpdateGroups.php",
"line": 105,
"function": "handleKnownGroups",
"class": "OCA\\User_LDAP\\Jobs\\UpdateGroups",
"type": "->",
"args": [
[
"p_fschemie_2",
"p_mrbs",
"p_robo-ag2",
"05a_2",
"p_sudoers",
"And 69 more entries, set log level to debug to see all entries"
]
]
},
What could be the cause for these unnecessary reassignments?
I’d appreciate your help,
best regards,
Jesko
Is this the first time you’ve seen this error? (Y/N): Y
I don’t know how to replicate. It came from now and then.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
config.php
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => '************',
'passwordsalt' => '******************************',
'secret' => '************************************************',
'trusted_domains' =>
array (
0 => '**************',
1 => '******************',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '26.0.3.2',
'overwrite.cli.url' => 'https://************',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => '******_db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '***************************',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'mail_from_address' => 'info',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => '**********',
'mail_smtphost' => '**********.net',
'mail_smtpport' => '587',
'force_language' => 'de',
'force_locale' => 'de_DE',
'maintenance' => false,
'share_folder' => '/00_mit_mir_geteilt',
'mail_smtpsecure' => 'tls',
'mail_smtpauthtype' => 'PLAIN',
'mail_smtpauth' => 1,
'mail_smtpname' => '**********.net',
'mail_smtppassword' => '****************************',
'updater.release.channel' => 'stable',
'upgrade.disable-web' => true,
'activity_expire_days' => 14,
'ldapUserCleanupInterval' => 5,
'integrity.check.disabled' => false,
'skeletondirectory' => '/var/www/html/skeleton-custom',
'default_phone_region' => 'DE',
'app_install_overwrite' =>
array (
0 => 'bbb',
1 => 'groupfolders',
2 => 'impersonate',
3 => 'integration_moodle',
),
'logtimezone' => 'GMT+1',
'trashbin_retention_obligation' => 'auto, 30',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '**********',
'port' => '6379',
'password' => '****************',
),
'session_lifefime' => 3153600,
'session_keepalive' => true,
'remember_login_cookie_lifetime' => 3153600,
'updater.server.url' => 'https://updates.nextcloud.com/customers/KX5U5-PTHQ6-65BNQ-JHF1T-VFNZ1/',
'preview_libreoffice_path' => '/usr/bin/libreoffice',
'memcache.local' => '\\OC\\Memcache\\APCu',
'lost_password_link' => 'https://********************rd_reset.html',
'log_type' => 'file',
'logfile' => '/var/log/nextcloud.log',
'loglevel' => '0',
'logfilemode' => 416,
);