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

NextCloud 12 stops working after enabling ssl (PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 30064771104 bytes) #5249

Closed
mehran2020 opened this issue Jun 5, 2017 · 18 comments
Labels
bug feature: scss stale Ticket or PR with no recent activity

Comments

@mehran2020
Copy link

mehran2020 commented Jun 5, 2017

Steps to reproduce

1.I have installed nextcloud 12 on centos7 and selinux is disabled after enabling the ssl I got the error in below:
[php7:error] [pid 2522] [client 10.1.9.117:50568] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 30064771104 bytes) in /var/www/html/nextcloud/lib/private/Template/SCSSCacher.php on line 264

2.I disabled the ssl but the issue still exists.
3.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

Operating system: Centos7

**Web server:**apache2.4

**Database:Mariadb

**PHP version:**7

Nextcloud version: (see Nextcloud admin page)12

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:/var/www/html/nextcloud

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
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

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/...

Are you using encryption: yes/no

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

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

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

a) The javascript console log
b) The network log
c) ...
@blizzz
Copy link
Member

blizzz commented Jun 12, 2017

scss related? @juliushaertl any idea?

@thejulian
Copy link

thejulian commented Jun 13, 2017

I have the same problem after upgrading from 11 to 12.

"reqId":"WT@ByRkfzk-3c68THl2B9wAAAAY","level":3,"time":"2017-06-13T06:10:17+00:00","remoteAddr":"192.168.1.35","user":"da5142ee-96a3-1036-9809-f98d50bc924d","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"Allowed memory size of 25769803776 bytes exhausted (tried to allocate 139703268084384 bytes) at \/shared\/nextcloud\/lib\/private\/Template\/SCSSCacher.php#264","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/57.0.2987.98 Safari\/537.36","version":"12.0.0.29"

@thejulian
Copy link

thejulian commented Jun 13, 2017

I have commented out 'memcache.local' => '\\OC\\Memcache\\APCu',

Now it is working, so something with APCu is wrong ! I'm using Centos7 with PHP 7.0.19 from webtatic repository.

@juliushaertl
Copy link
Member

I've no idea how this can cause a memory exhaution.

The array used in the SCSSCacher should just contain some short strings as it is build in here: https://github.com/nextcloud/server/blob/master/apps/theming/lib/ThemingDefaults.php#L187-L2184

@thejulian
Copy link

If you need mehr details I can provide them. Because I can reproduce this error if I enable the Memcache.local again. At the moment it is working without it and I'm getting no errors.

Deutsch
Da ich sehe dass du Deutsch kannst. Das Problem muss im Zusammenspiel vom APCu 
und SCSSCacher liegen. Weil ohne APCu funktioniert es. Komischerweise fehlt bei mir
wenn ich APCu aktiviere auch mein custom Login Banner. Habe ebenso mein Memory Limit mal auf 24GB gestellt bei 32GB RAM. Die Zahl die er probiert zu bekommen ist unrealistisch hoch. 

@juliushaertl
Copy link
Member

@thejulian Can you please report that version of APCu you are using? Package name should be php7-pecl-apcu with the webtatic repository.

Could you also add the following line to lib/private/Template/SCSSCacher.php before line 264, so we might get some info in the log files if something with the returned data from cache is wrong:

\OC::$server->getLogger()->debug($key . " => " . $value);

@thejulian
Copy link

I'm using php70w-pecl-apcu-5.1.8-1.w7.x86_64 .

Changed the Function to this:

private function getInjectedVariables() {
                $variables = '';
                foreach ($this->defaults->getScssVariables() as $key => $value) {
                        \OC::$server->getLogger()->debug($key . " => " . $value);
                        $variables .= '$' . $key . ': ' . $value . ';';
                }
                return $variables;
        }

Log shows me this:

{"reqId":"WT@0FPrGulpl7g6kMhQ5NgAAAAM","level":3,"time":"2017-06-13T09:44:52+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/1483345226\/00000000","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT@0FPrGulpl7g6kMhQ5NgAAAAM","level":3,"time":"2017-06-13T09:44:52+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/1483345226\/00000000","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT@0FPrGulpl7g6kMhQ5NwAAAAM","level":3,"time":"2017-06-13T09:44:53+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/1483345226\/00000001","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT@0FPrGulpl7g6kMhQ5NwAAAAM","level":3,"time":"2017-06-13T09:44:53+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/1483345226\/00000001","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"fvhBWIP1p5DT96Q1EpaX","level":3,"time":"2017-06-13T10:15:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"48a2d45e-9c37-1036-89f9-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"fvhBWIP1p5DT96Q1EpaX","level":3,"time":"2017-06-13T10:15:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"5acf960c-a32c-1036-8a01-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"fvhBWIP1p5DT96Q1EpaX","level":3,"time":"2017-06-13T10:15:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a04b7afe-8d3b-1036-908d-d508e61cfdbc is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"fvhBWIP1p5DT96Q1EpaX","level":3,"time":"2017-06-13T10:15:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a93ea726-8d45-1036-8992-633447d0665b is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"CPRjbUdDO0DwZXl39ld7","level":3,"time":"2017-06-13T10:45:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"48a2d45e-9c37-1036-89f9-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"CPRjbUdDO0DwZXl39ld7","level":3,"time":"2017-06-13T10:45:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"5acf960c-a32c-1036-8a01-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"CPRjbUdDO0DwZXl39ld7","level":3,"time":"2017-06-13T10:45:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a04b7afe-8d3b-1036-908d-d508e61cfdbc is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"CPRjbUdDO0DwZXl39ld7","level":3,"time":"2017-06-13T10:45:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a93ea726-8d45-1036-8992-633447d0665b is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"WT-Cu77pzmuH@CfY2Y6QxAAAAAU","level":3,"time":"2017-06-13T10:47:24+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/4194517709\/00000000","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-Cu77pzmuH@CfY2Y6QxAAAAAU","level":3,"time":"2017-06-13T10:47:24+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/4194517709\/00000000","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-CvL7pzmuH@CfY2Y6QxQAAAAU","level":3,"time":"2017-06-13T10:47:24+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/4194517709\/00000001","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-CvL7pzmuH@CfY2Y6QxQAAAAU","level":3,"time":"2017-06-13T10:47:24+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/4194517709\/00000001","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-CvL7pzmuH@CfY2Y6QxgAAAAU","level":3,"time":"2017-06-13T10:47:24+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/4194517709\/00000002","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-CvL7pzmuH@CfY2Y6QxgAAAAU","level":3,"time":"2017-06-13T10:47:24+00:00","remoteAddr":"192.168.1.65","user":"14093ac0-9774-1036-89e9-6b894c8d6283","app":"admin_audit","method":"PUT","url":"\/remote.php\/dav\/uploads\/14093ac0-9774-1036-89e9-6b894c8d6283\/4194517709\/00000002","message":"$params[\"path\"] was missing. Transferred value: Array\n(\n    [path] => \n)\n","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"eU5nV1INNuW4ad14D6j6","level":3,"time":"2017-06-13T11:30:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"48a2d45e-9c37-1036-89f9-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"eU5nV1INNuW4ad14D6j6","level":3,"time":"2017-06-13T11:30:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"5acf960c-a32c-1036-8a01-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"eU5nV1INNuW4ad14D6j6","level":3,"time":"2017-06-13T11:30:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a04b7afe-8d3b-1036-908d-d508e61cfdbc is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"eU5nV1INNuW4ad14D6j6","level":3,"time":"2017-06-13T11:30:01+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a93ea726-8d45-1036-8992-633447d0665b is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"WT-SrsNsrpXWUKXV7Dx-rwAAAAg","level":3,"time":"2017-06-13T11:55:26+00:00","remoteAddr":"192.168.1.35","user":"da5142ee-96a3-1036-9809-f98d50bc924d","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"Allowed memory size of 17179869184 bytes exhausted (tried to allocate 9223372247582603032 bytes) at \/shared\/nextcloud\/lib\/private\/Template\/SCSSCacher.php#264","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/57.0.2987.98 Safari\/537.36","version":"12.0.0.29"}
{"reqId":"IA4tHM3nk9Ef6fPTb80i","level":3,"time":"2017-06-13T12:00:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"48a2d45e-9c37-1036-89f9-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"IA4tHM3nk9Ef6fPTb80i","level":3,"time":"2017-06-13T12:00:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"5acf960c-a32c-1036-8a01-6b894c8d6283 is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"IA4tHM3nk9Ef6fPTb80i","level":3,"time":"2017-06-13T12:00:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a04b7afe-8d3b-1036-908d-d508e61cfdbc is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}
{"reqId":"IA4tHM3nk9Ef6fPTb80i","level":3,"time":"2017-06-13T12:00:02+00:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"a93ea726-8d45-1036-8992-633447d0665b is not a valid user anymore","userAgent":"--","version":"12.0.0.29"}

I also don't know why the time doesn't match, systemtime on my machine is correct. But that shouldn't be an impact. This is my nextcloud.log from da $DATA directory.

@blizzz
Copy link
Member

blizzz commented Jun 13, 2017

you need to set logging to debug

@thejulian
Copy link

I'm sorry.

Here are ten Lines before the error appears. Does this help?

{"reqId":"WT-mtwrqmrVrBWS8I9a1IQAAABk","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.14","user":"1e9af932-9c1b-1036-89f6-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/1e9af932-9c1b-1036-89f6-6b894c8d6283\/","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mtwrqmrVrBWS8I9a1IQAAABk","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.14","user":"1e9af932-9c1b-1036-89f6-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/1e9af932-9c1b-1036-89f6-6b894c8d6283\/","message":"readAttribute: uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX found","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mtwrqmrVrBWS8I9a1IQAAABk","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.14","user":"1e9af932-9c1b-1036-89f6-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/1e9af932-9c1b-1036-89f6-6b894c8d6283\/","message":"initializing paged search for  Filter objectClass=* base Array\n(\n    [0] => uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX\n)\n attr Array\n(\n    [0] => uid\n)\n limit 500 offset 0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mtwrqmrVrBWS8I9a1IQAAABk","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.14","user":"1e9af932-9c1b-1036-89f6-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/1e9af932-9c1b-1036-89f6-6b894c8d6283\/","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mtwrqmrVrBWS8I9a1IQAAABk","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.14","user":"1e9af932-9c1b-1036-89f6-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/1e9af932-9c1b-1036-89f6-6b894c8d6283\/","message":"initializing paged search for  Filter objectClass=* base Array\n(\n    [0] => uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX\n)\n attr Array\n(\n    [0] => displayname\n)\n limit 500 offset 0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mtwrqmrVrBWS8I9a1IQAAABk","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.14","user":"1e9af932-9c1b-1036-89f6-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/dav\/files\/1e9af932-9c1b-1036-89f6-6b894c8d6283\/","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.1 (build 8) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mt4OVJcsy9M5Sfc9diwAAAB4","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.59","user":"52a49976-9c17-1036-89f3-6b894c8d6283","app":"user_ldap","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"initializing paged search for  Filter (|(memberof=cn=Nextcloud,ou=Groups,dc=XXX,dc=work)) base Array\n(\n    [0] => uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX\n)\n attr Array\n(\n    [0] => \n)\n limit 500 offset 0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mt4OVJcsy9M5Sfc9diwAAAB4","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.59","user":"52a49976-9c17-1036-89f3-6b894c8d6283","app":"user_ldap","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mt4OVJcsy9M5Sfc9diwAAAB4","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.59","user":"52a49976-9c17-1036-89f3-6b894c8d6283","app":"user_ldap","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"readAttribute: uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX found","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mt9t1e0d1SIcBnSS0FwAAABw","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.35","user":"da5142ee-96a3-1036-9809-f98d50bc924d","app":"no app in context","method":"GET","url":"\/index.php\/settings\/admin","message":" => '20'","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/57.0.2987.98 Safari\/537.36","version":"12.0.0.29"}
{"reqId":"WT-mt9t1e0d1SIcBnSS0FwAAABw","level":3,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.35","user":"da5142ee-96a3-1036-9809-f98d50bc924d","app":"PHP","method":"GET","url":"\/index.php\/settings\/admin","message":"Allowed memory size of 17179869184 bytes exhausted (tried to allocate 140632417461264 bytes) at \/shared\/nextcloud\/lib\/private\/Template\/SCSSCacher.php#264","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/57.0.2987.98 Safari\/537.36","version":"12.0.0.29"}
{"reqId":"WT-mt9mGp6GnWzn1YwWivwAAAB0","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.59","user":"52a49976-9c17-1036-89f3-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"initializing paged search for  Filter objectClass=* base Array\n(\n    [0] => uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX\n)\n attr Array\n(\n    [0] => uid\n)\n limit 500 offset 0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-mt9mGp6GnWzn1YwWivwAAAB0","level":0,"time":"2017-06-13T13:20:55+00:00","remoteAddr":"192.168.1.59","user":"52a49976-9c17-1036-89f3-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-muCpuBAqZ9SBmyCy7uwAAAB8","level":1,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"10.0.0.167","user":"--","app":"admin_audit","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"Login attempt: \"rene.pachernegg\"","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.2.4","version":"12.0.0.29"}
{"reqId":"WT-muCpuBAqZ9SBmyCy7uwAAAB8","level":1,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"10.0.0.167","user":"a7796544-9c0d-1036-89f2-6b894c8d6283","app":"admin_audit","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","message":"Login successful: \"a7796544-9c0d-1036-89f2-6b894c8d6283\"","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.2.4","version":"12.0.0.29"}
{"reqId":"WT-muIiFWKQ8Vh3J5jVYIAAAACM","level":0,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"192.168.1.71","user":"d817aafc-9cea-1036-89fc-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"initializing paged search for  Filter (|(memberof=cn=Nextcloud,ou=Groups,dc=XXX,dc=work)) base Array\n(\n    [0] => uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX\n)\n attr Array\n(\n    [0] => \n)\n limit 500 offset 0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-muIiFWKQ8Vh3J5jVYIAAAACM","level":0,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"192.168.1.71","user":"d817aafc-9cea-1036-89fc-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-muIiFWKQ8Vh3J5jVYIAAAACM","level":0,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"192.168.1.71","user":"d817aafc-9cea-1036-89fc-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"readAttribute: uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX found","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-muIiFWKQ8Vh3J5jVYIAAAACM","level":0,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"192.168.1.71","user":"d817aafc-9cea-1036-89fc-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"initializing paged search for  Filter objectClass=* base Array\n(\n    [0] => uid=XXXXXXXX,ou=people,dc=XXXXX,dc=XXXXX\n)\n attr Array\n(\n    [0] => uid\n)\n limit 500 offset 0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-muIiFWKQ8Vh3J5jVYIAAAACM","level":0,"time":"2017-06-13T13:20:56+00:00","remoteAddr":"192.168.1.71","user":"d817aafc-9cea-1036-89fc-6b894c8d6283","app":"user_ldap","method":"PROPFIND","url":"\/remote.php\/webdav\/","message":"Ready for a paged search","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.2.4 (build 2) (Nextcloud)","version":"12.0.0.29"}
{"reqId":"WT-muJsGm5M4TYr@W0OQVwAAAAA","level":3,"time":"2017-06-13T13:20:57+00:00","remoteAddr":"192.168.1.35","user":"da5142ee-96a3-1036-9809-f98d50bc924d","app":"PHP","method":"GET","url":"\/index.php\/settings\/admin","message":"Allowed memory size of 17179869184 bytes exhausted (tried to allocate 77309411360 bytes) at \/shared\/nextcloud\/lib\/private\/Template\/SCSSCacher.php#264","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/57.0.2987.98 Safari\/537.36","version":"12.0.0.29"}
{"reqId":"WT-mueMOtbi9oRIc1cBMhAAAAAs","level":3,"time":"2017-06-13T13:20:58+00:00","remoteAddr":"192.168.1.35","user":"da5142ee-96a3-1036-9809-f98d50bc924d","app":"PHP","method":"GET","url":"\/index.php\/settings\/admin","message":"Allowed memory size of 17179869184 bytes exhausted (tried to allocate 8028075772678661520 bytes) at \/shared\/nextcloud\/lib\/private\/Template\/SCSSCacher.php#264","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/57.0.2987.98 Safari\/537.36","version":"12.0.0.29"}

@thejulian
Copy link

Probably fixed it with installing and configuring opcache. At the moment it is working.
If it appears again, I'll tell you.

@outsinre
Copy link

outsinre commented Aug 7, 2017

@thejulian I have exactly the same issue as you. As you mentioned, I found opcache not installed.

Could you please share your opcache configuration that solved the exhausted memory issue from APCu?

@thejulian
Copy link

First you need to install to php-opcache Package & then I have configured follwing setting in the /etc/php.d/opcache.ini file:

zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.revalidate_freq=1
opcache.save_comments=1
opcache.fast_shutdown=1
opcache.blacklist_filename=/etc/php.d/opcache*.blacklist

After this, restart Apache :-)

@outsinre
Copy link

outsinre commented Aug 7, 2017

@thejulian You save my day! That solved the memory issue.

@thejulian
Copy link

If it was also your Problem, this should be posted somewhere. Maybe in the Changelog under "Known Issues" ? @blizzz @juliushaertl

@blizzz
Copy link
Member

blizzz commented Aug 29, 2017

@outsinre did you have LDAP enabled as well?

@outsinre
Copy link

@blizzz I did NOT use LDAP.

@Odwyn
Copy link

Odwyn commented Oct 3, 2017

I had the same issue with php70w packages and after upgraded nextcloud to 12 version.
@thejulian solution saved my day 👍
Thanks

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@skjnldsv
Copy link
Member

skjnldsv commented Jun 5, 2019

As I cannot reproduce the original issue anymore and it seems to be fixed, I will close this ticket. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

@skjnldsv skjnldsv closed this as completed Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: scss stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

8 participants