Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't fetch All Contacts: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted #44804

Open
6 of 8 tasks
solracsf opened this issue Apr 12, 2024 · 0 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug feature: carddav Related to CardDAV internals

Comments

@solracsf
Copy link
Member

solracsf commented Apr 12, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

When trying to display All contacts, an error is thrown server side. See PHP logs.
We've grown the PHP memory_limit to several GiB of RAM without success. It seems that the generated array is too big.

Steps to reproduce

  1. Go to contacts app
  2. Wait for server to fetch all contacts (+22K from LDAP)
  3. Observe 500 error on browser console

image

Expected behavior

Contacts are fetched.

Installation method

None

Nextcloud Server version

27

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in /var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Result.php on line 104" while reading response, request: "REPORT /remote.php/dav/addressbooks/users/user.test@cloud.com/z-server-generated--system/ HTTP/1.1"

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 24576 bytes) in /var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php on line 1045" while reading response, request: "REPORT /remote.php/dav/addressbooks/users/user.test@cloud.com/z-server-generated--system/ HTTP/1.1"

Additional info

No response

@solracsf solracsf added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Apr 12, 2024
@joshtrichards joshtrichards added feature: carddav Related to CardDAV internals 27-feedback labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 27-feedback bug feature: carddav Related to CardDAV internals
Projects
None yet
Development

No branches or pull requests

2 participants