-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Comments
scss related? @juliushaertl any idea? |
I have the same problem after upgrading from 11 to 12.
|
I have commented out Now it is working, so something with APCu is wrong ! I'm using Centos7 with PHP 7.0.19 from webtatic repository. |
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 |
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
|
@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:
|
I'm using Changed the Function to this:
Log shows me this:
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. |
you need to set logging to debug |
I'm sorry. Here are ten Lines before the error appears. Does this help?
|
Probably fixed it with installing and configuring opcache. At the moment it is working. |
@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? |
First you need to install to php-opcache Package & then I have configured follwing setting in the /etc/php.d/opcache.ini file:
After this, restart Apache :-) |
@thejulian You save my day! That solved the memory issue. |
If it was also your Problem, this should be posted somewhere. Maybe in the Changelog under "Known Issues" ? @blizzz @juliushaertl |
@outsinre did you have LDAP enabled as well? |
@blizzz I did NOT use LDAP. |
I had the same issue with php70w packages and after upgraded nextcloud to 12 version. |
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. |
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
List of activated apps:
App list
Nextcloud configuration:
Config report
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
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: