Contacts list and contacts details will let nextcloud instance crash

Nextcloud version: 26.0.2
Operating system and version : centos-release-7-9.2009.1.el7.centos.x86_64
Apache or nginx version : 2.4.57
PHP version : 8.0.29

Hi folks,

I am having severe problems entering the contacts list and contacts details. So much so, that the whole nextcloud instance on this shared webspace (uberspace) is stopping and I have to restart PHP in order to use nextcloud again. I have 334 contacts in my list.

I’d appreciate any help someone can give me. Thanks in advance!

Is this the first time you’ve seen this error? : No, it gradually got worse over time (as in years), but now is just unavoidable.

Steps to replicate it:

  1. Open and login to nextcloud (does not matter which user)
  2. Open Contacts app
  3. Wait for a while to have the whole list loaded
  4. Open any Person
  5. Wait for an extreme amount of time
  6. If not crashed yet, try editing a contact, this will in 95% of the time end in crashing the nextcloud instance

The output of your Nextcloud log in Admin > Logging:

Sorry, where do I find this? I only saw the Error log as shown below

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'instance',
  'passwordsalt' => 'salt',
  'secret' => 'secret',
  'trusted_domains' => 
  array (
    0 => 'URL1',
    1 => 'URL2',
    2 => 'URL3',
  ),
  'datadirectory' => 'directory',
  'overwrite.cli.url' => 'URL',
  'dbtype' => 'mysql',
  'version' => '26.0.2.1',
  'dbname' => 'mine',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'user',
  'dbpassword' => 'password',
  'logtimezone' => 'UTC',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'updater.release.channel' => 'stable',
  'has_rebuilt_cache' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'DE',
  'mail_from_address' => 'user',
  'mail_domain' => 'domain',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtphost' => 'host',
  'mail_smtpname' => 'email',
  'mail_smtppassword' => 'password',
  'mysql.utf8mb4' => true,
);

The output of your Apache/nginx/system log in /var/log/____:
The whole file is full of this error (with different pids):

[Thu Jun 22 13:54:19 2023] [error] [pid 29300] mod_proxy_fcgi.c(1021): (70007)The timeout specified has expired: [client 87.145.0.0] AH01075: Error dispatching request to : (polling)

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 344064 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-06-19T16:15:45+0200
Fehler	no app in context	Exception: App "Ownpad" cannot be installed because it is not compatible with this version of the server.	
2023-06-14T14:01:16+0200
Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 516096 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-06-12T07:52:15+0200
Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 2465792 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-06-11T09:57:20+0200
Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 2400256 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-06-05T10:49:01+0200
Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 181363000 bytes, aber 4161536 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-05-27T14:06:13+0200
Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 1064960 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-05-24T07:48:11+0200
Fehler	no app in context	Sabre\DAV\Exception\BadRequest: Erwartete Dateigröße von 10240000 bytes, aber 1949696 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.	
2023-05-22T19:40:04+0200
Fehler	webdav	Sabre\Xml\ParseException: The input element to parse is empty. Do not attempt to parse	
2023-04-30T13:49:17+0200
Fehler	webdav	Sabre\DAV\Exception\UnsupportedMediaType: This resource only supports valid iCalendar 2.0 data. Parse error: End of document reached prematurely	
2023-04-23T16:34:32+0200
Fehler	PHP	fwrite(): Write of 7500 bytes failed with errno=12 Cannot allocate memory at /var/www/virtual/jaskiola/html/nextcloud/lib/private/Log/File.php#89	
2023-02-27T08:57:10+0100
Fehler	no app in context	OCP\AppFramework\QueryException: Could not resolve externalMountProvider! Class "externalMountProvider" does not exist	
2023-02-27T08:57:09+0100
Fehler	no app in context	OCP\AppFramework\QueryException: Could not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated	
2023-02-27T08:57:09+0100
Fehler	no app in context	OCP\AppFramework\QueryException: Could not resolve trashManager! Class "trashManager" does not exist	
2023-02-27T08:57:09+0100
Fehler	remote	Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away	
2023-02-27T08:57:09+0100
Fehler	PHP	Error: fwrite(): Write of 8721 bytes failed with errno=12 Cannot allocate memory at /var/www/virtual/jaskiola/html/nextcloud/lib/private/Log/File.php#89	
2023-02-27T08:57:08+0100
Fehler	internet_connection_check	GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 30000 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://www.nextcloud.com/	
2023-02-23T11:11:42+0100
Fehler	index	OCP\Files\NotPermittedException: Could not create folder	
2023-02-23T10:09:34+0100
Fehler	no app in context	Exception: Could not download app files_videoplayer	
2023-02-23T10:06:25+0100
Fehler	no app in context	Exception: Could not download app accessibility	
2023-02-23T10:06:20+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:18+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100
Fehler	PHP	Error: Undefined array key "{http://sabredav.org/ns}email-address" at /var/www/virtual/jaskiola/html/nextcloud/apps/dav/lib/Connector/Sabre/Principal.php#604	
2023-02-23T10:01:17+0100

Do you have more of the error logs from the webserver?

They contain this dispatching request error as well.

If you have the mod_reqtimeout module enabled, the documentation recommends to turn it off:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-your-web-server
or to adjust the configuration.

Hi @tflidd
thanks for reaching out. Sorry for the inconvience I cause with not answering. Rough private time.

I was looking for the error logs this week, you asked for, when I stumbled upon the help message of my webspace provider. They have linked the following error in their troubleshooting page: Improve ErrorDocument config in .htaccess · Issue #33048 · nextcloud/server · GitHub

Their troubleshooting told their users to do the following:
As a workaround you can remove or override ErrorDocument entries in the .htaccess file:
ErrorDocument 403 “Forbidden”
ErrorDocument 404 “Not found”

After I did this it now works as fast as when I would have set up a new nextcloud instance.

So for now my case is closed. Thank you again for trying to help. I much appreciated it!
all the best!