Fulltextsearch not working for LDAP users

Local users can search the contents of their files with fulltextsearch successfully. Our LDAP users get no results when searching the contents of their files. Indexing produces no errors and fulltextsearch:check and test look good.

system information

  • if you have systeminfo app installed you will find the required data on https://{your nextcloud}/settings/admin/serverinfo
  • collect anonymized system report using https://{your nextcloud}/settings/admin/support
Nextcloud version (eg, 26.0.1): 27.0.2
Operating system and version (eg, Ubuntu 22.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.5.2
PHP version (eg, 8.1): 8.1.2
Database (sqlite or MariaDB or Postgres) Postgres
Docker (compose)
Snap
Is this the first time you’ve seen this error? no

The issue you are facing:

  • Steps to replicate it:
  1. Log in as a local user
  2. Create a text document.
  3. Wait for new file to be indexed by fulltextsearch
  4. Search for keyword in content of new file by local user and it will succeed.
  5. Log in as an LDAP user
  6. Repeat steps 2 through 4. Search result will be blank for LDAP user.
  • The output of your Nextcloud log in Admin > Logging: This is only error and I believe not relevant to the issue.
TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121
  • The output of your config.php file in /path/to/nextcloud**
    (use https://.../settings/admin/support which auto-removes identifying information!):
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "example.com"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "pgsql",
    "version": "27.0.2.1",
    "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "skeletondirectory": "",
    "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
    "maintenance": false,
    "theme": "",
    "loglevel": 2,
    "default_phone_region": "US",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "25",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
}
  • for Docker/Podman list environment variables ( run “docker inspect {container name}”)**
PASTE HERE
  • The output of your Apache/nginx/system log in /var/log/____:
  • For Docker/Podman post STDOUT of the container (run docker logs {container name})
[Sun Aug 27 00:00:02.103565 2023] [mpm_event:notice] [pid 11583:tid 140225675814784] AH00489: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sun Aug 27 00:00:02.103585 2023] [core:notice] [pid 11583:tid 140225675814784] AH00094: Command line: '/usr/sbin/apache2'

  • errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors.
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T11:25:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T10:20:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T09:20:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T08:15:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T07:10:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T06:05:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T05:05:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T04:00:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T02:55:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T01:50:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-27T00:45:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T23:40:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T22:35:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T21:30:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T20:25:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T19:20:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T18:15:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T17:10:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T16:05:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T15:00:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T13:55:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T12:55:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T11:50:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T10:50:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T09:45:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T08:40:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T07:35:02-0400
Error	richdocuments	GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to localhost port 8080 after 0 ms: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:8080/apps/richdocumentscode/proxy.php?req=/hosting/capabilities		2023-08-26T07:27:59-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T06:30:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T05:30:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T04:25:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T03:20:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T02:15:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T01:10:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-26T00:05:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T23:00:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T22:00:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T20:55:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T19:50:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T18:45:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T17:40:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T16:35:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T15:30:02-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T14:30:01-0400
Error	core	TypeError: OC\User\User::__construct(): Argument #3 ($dispatcher) must be of type Symfony\Component\EventDispatcher\EventDispatcherInterface, OC\EventDispatcher\EventDispatcher given, called in /var/www/html/apps/collectives/lib/Versions/CollectiveVersionsExpireManager.php on line 121		2023-08-25T13:25:02-0400

Hi @Wayne_Gallt,
You are missing the required support template. Please fill this form out and edit into your post. You can also check any logs or errors you find against the Nextcloud server github repo, fulltextsearch repo, etc.

This will give us the technical info and logs needed to better assist you! Thanks.