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

Insufficent Memory on First Launch #13550

Closed
milo-trujillo opened this issue Oct 7, 2018 · 7 comments
Closed

Insufficent Memory on First Launch #13550

milo-trujillo opened this issue Oct 7, 2018 · 7 comments
Labels
worksforme The issue cannot be reproduced and things work as intended.

Comments

@milo-trujillo
Copy link

I've just installed Matomo for the first time and (before running first-time setup) get the following error:

[Sun Oct 07 04:32:31.079324 2018] [php7:error] [pid 40895] [client XXX] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /usr/local/www/apache24/data/analytics/core/FrontController.php on line 416
[Sun Oct 07 04:32:31.080234 2018] [php7:error] [pid 40895] [client XXX] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /usr/local/www/apache24/data/analytics/core/FrontController.php on line 416

Since Matomo hasn't been set up to monitor any sites yet, it clearly doesn't have any visitor data to process. I've tried increasing the memory_limit in php.ini from 128MB to 512 and even 1024MB, but get the same result.

What's wrong? Is there something else I need to reconfigure before Matomo will work?

This is all with the latest Matomo in PHP 7.2.10 with Apache 2.4 on FreeBSD.

@tsteur
Copy link
Member

tsteur commented Oct 7, 2018

Installation should be definitely fine with that amount of memory. Hard to say what it could be. Maybe someone else has an idea.

@sgiehl
Copy link
Member

sgiehl commented Oct 7, 2018

@milo-trujillo which version have you installed. Latest stable or beta release? Or did you fetch latest revision from github?

@milo-trujillo
Copy link
Author

The latest stable off of https://builds.matomo.org/matomo.zip

@seonwoolee
Copy link

seonwoolee commented Nov 8, 2018

I too am having this issue. I tried increasing the memory limit to 512M and 784M to no avail. I am running this on a virtual private server with only 1 GB of memory - is that the issue?
Alpine Linux, php 7.2.10, Nginx 1.14.1. Also using the stable build off of the link @milo-trujillo provided.

PHP message: PHP Fatal error:  Allowed memory size of 822083584 bytes exhausted (tried to allocate 20480 bytes) in /www/seonwoolee.com/analytics/core/FrontController.php on line 234" while reading response header from upstream, client: 207.244.109.180, server: seonwoolee.com, request: "GET /analytics/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "seonwoolee.com"

I didn't observe any errors in /var/log/php7/error.log.

Is there anywhere else I should be looking for clues?

@ropg
Copy link

ropg commented Dec 2, 2018

Having the same problem on a fresh install before it's tracking anything.

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 69632 bytes) in /usr/local/www/rop.nl/stats/core/FrontController.php on line 412

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /usr/local/www/rop.nl/stats/core/FrontController.php on line 412

Server FreeBSD 11.2-RELEASE-p4, apache24-2.4.37, PHP 7.2.12, PHP memory_limit 1G

@tsteur
Copy link
Member

tsteur commented Dec 2, 2018

Anyone is able to debug this maybe on their server? Wonder if it's maybe some recursion or so...

@Findus23
Copy link
Member

This might have been fixed in the meantime. If you or anyone else can reproduce this issue on the latest Matomo version, please reopen the issue or create a new one.

@Findus23 Findus23 added the worksforme The issue cannot be reproduced and things work as intended. label May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

6 participants