Skip to content

Excessive memory allocation in 20.0.6 #25343

@ebogaard

Description

@ebogaard

After upgrading from 19.0.7 to 20.0.6, we started running into all kinds of issues with the files app, the settings page, the weather item on the desktop and syncing using the Desktop application.
These items would just give a 500 error or otherwise show a blank page.

Other apps, like the new desktop itself, photos, user page, et cetera, would work as expected.

This only occurred on one of our Nextcloud installs. On two other installs these problems aren't experienced and the mentioned features do work. These were upgraded to a 20.0.x version before upgrading to 20.0.6, though. I'm not sure if that matters.

In the logfile I see a number of memory allocation issues, so I increased the php max memory option from 512 MB to 768 MB, but that did not change things. Still php-fpm seems to crash.

See attached logs and app list below.

Steps to reproduce

  1. Upgrade from 19.0.7 to 20.0.6
  2. Open the features mentioned in the introduction

Expected behaviour

These should show the relevant information.

Actual behaviour

Blank pages are shown and a lot of issues in the browser console.

Server configuration

Operating system:
Centos 7 x64

Web server:
httpd 2.4.46.

Database:
MariaDB 10.3

PHP version:
7.4.17

Nextcloud version: (see Nextcloud admin page)
20.0.6

Updated from an older Nextcloud/ownCloud or fresh install:
19.0.7

**Where did you install Nextcloud from:If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Manually, with the bzip-archive

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.4
  - admin_audit: 1.10.0
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - dav: 1.16.2
  - deck: 1.2.3If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
  - drawio: 0.9.8
  - federatedfilesharing: 1.10.2
  - files: 1.15.0
  - files_fulltextsearch: 20.0.0
  - files_markdown: 2.3.1
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.1
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - fulltextsearch: 20.0.0
  - fulltextsearch_elasticsearch: 20.0.0
  - impersonate: 1.7.0
  - lookup_server_connector: 1.8.0
  - nextcloud_announcements: 1.9.0
  - notes: 4.0.2
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - password_policy: 1.10.1
  - photos: 1.2.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - recommendations: 0.8.0
  - richdocuments: 3.7.11
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - spreed: 10.0.5
  - support: 1.3.0
  - systemtags: 1.10.0
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - updatenotification: 1.10.0
  - user_ldap: 1.10.2
  - user_saml: 3.3.3
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflow_pdf_converter: 1.5.1
  - workflowengine: 2.2.0
Disabled:
  - encryption
  - federation
  - files_external
  - firstrunwizard
  - logreader
  - survey_client

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...
no

Are you using encryption: yes/no
no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP + SAML

Logs

Web server error log

Web server error log
# PHP-FPM LOG
[26-Jan-2021 23:24:59] WARNING: [pool www] child 846048 exited on signal 11 (SIGSEGV) after 4.775973 seconds from start
[26-Jan-2021 23:28:57] WARNING: [pool www] child 846096 exited on signal 11 (SIGSEGV) after 238.130298 seconds from start
[26-Jan-2021 23:30:00] WARNING: [pool www] child 844879 exited on signal 11 (SIGSEGV) after 749.179765 seconds from start
[26-Jan-2021 23:30:45] WARNING: [pool www] child 845338 exited on signal 11 (SIGSEGV) after 513.518508 seconds from start

[26-Jan-2021 22:21:52 UTC] PHP Fatal error:  Allowed memory size of 805306368 bytes exhausted (tried to allocate 63700217028 bytes) in /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php on line 3185760160
[26-Jan-2021 22:25:03 UTC] PHP Fatal error:  Allowed memory size of 805306368 bytes exhausted (tried to allocate 25587398412 bytes) in /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php on line 3185760160
[26-Jan-2021 22:25:09 UTC] PHP Fatal error:  Allowed memory size of 805306368 bytes exhausted (tried to allocate 146288530508 bytes) in /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php on line 3185760160

# HTTPD ERROR-LOG
[Tue Jan 26 23:28:57.644443 2021] [proxy_fcgi:error] [pid 845600:tid 140468415313664] (104)Connection reset by peer: [client xxx:28436] AH01075: Error dispatching request to :
[Tue Jan 26 23:30:00.130119 2021] [proxy_fcgi:error] [pid 845600:tid 140468499240704] [client xxx:28506] AH01067: Failed to read FastCGI header
[Tue Jan 26 23:30:00.130208 2021] [proxy_fcgi:error] [pid 845600:tid 140468499240704] (104)Connection reset by peer: [client xxx:28506] AH01075: Error dispatching request to :
[Tue Jan 26 23:30:45.238423 2021] [proxy_fcgi:error] [pid 845600:tid 140468398528256] [client xxx:28584] AH01067: Failed to read FastCGI header

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"YBCUadtdwL7FeBl5b945vAAAAIY","level":2,"time":"2021-01-26 23:15:05","remoteAddr":"xxx","user":"admin@xxx","app":"fulltextsearch","method":"GET","url":"/ocs/v2.php/search/providers/fulltextsearch/search?term=saml&from=%2Fsettings%2Fapps","message":"FullTextSearchPlatform OCA\\FullTextSearch_ElasticSearch\\Platform\\ElasticSearchPlatform is not available","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.6.1"}
{"reqId":"YBCUadtdwL7FeBl5b945wgAAAII","level":3,"time":"2021-01-26 23:15:06","remoteAddr":"xxx","user":"admin@xxx","app":"PHP","method":"GET","url":"/ocs/v2.php/search/providers/settings/search?term=saml&from=%2Fsettings%2Fapps","message":"Allowed memory size of 805306368 bytes exhausted (tried to allocate 137438953444 bytes) at /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php#1037071968","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.6.1"}
{"reqId":"YBCWAD3j70Hux9fEgkbZcwAAAMY","level":3,"time":"2021-01-26 23:21:52","remoteAddr":"xxx","user":"admin@xxx","app":"PHP","method":"GET","url":"/settings/user","message":"Allowed memory size of 805306368 bytes exhausted (tried to allocate 63700217028 bytes) at /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php#-1109207136","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.6.1"}
{"reqId":"YBCWv3vNYEZc6yd4l61Y7AAAAg4","level":3,"time":"2021-01-26 23:25:03","remoteAddr":"xxx","user":"admin@xxx","app":"PHP","method":"GET","url":"/apps/files/","message":"Allowed memory size of 805306368 bytes exhausted (tried to allocate 25587398412 bytes) at /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php#-1109207136","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.6.1"}
{"reqId":"YBCWxHvNYEZc6yd4l61Y@QAAAgk","level":3,"time":"2021-01-26 23:25:09","remoteAddr":"xxx","user":"admin@xxx","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/weather_status/api/v1/location","message":"Allowed memory size of 805306368 bytes exhausted (tried to allocate 146288530508 bytes) at /var/www/html/nextcloud-20.0.6/3rdparty/guzzlehttp/guzzle/src/functions.php#-1109207136","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","version":"20.0.6.1"}

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbugneeds info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions