PHP Memory Issue (Blank Pages)

Greetings! New User here. I have been using Librenms for a few months now and it has been great…until last week.

Running on Debian Stretch with 4GB of RAM.

I am getting the dreaded blank pages in the Web GUI. The header is still there (missing a few links though). I have combed the community for people with similar issues and have tried everything I am comfortable with with no resolve.

Here is the error that is logged under ./logs/error_log:
2018/11/14 10:23:28 [error] 10575#10575: *4 FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8192 bytes) in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 325
PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /opt/librenms/vendor/symfony/debug/Exception/FatalErrorException.php on line 1” while reading response header from upstream, client: 192.168.1.151, server: blah.blah.com, request: “GET /services/ HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”, host: “blah.blah.com”, referrer: “https://blah.blah.com/devices/

Here is ./validate.php output:

Component Version
LibreNMS 1.45-34-gd3f5dc682
DB Schema 270
PHP 7.0.30-0+deb9u1
MySQL 10.1.26-MariaDB-0+deb9u1
RRDTool 1.6.0
SNMP NET-SNMP 5.7.3

====================================

[OK] Composer Version: 1.7.3
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
bootstrap/cache/.gitignore
storage/app/.gitignore
storage/app/public/.gitignore
storage/debugbar/.gitignore
storage/framework/cache/.gitignore
storage/framework/sessions/.gitignore
storage/framework/testing/.gitignore
storage/framework/views/.gitignore
storage/logs/.gitignore

The main things I have done so far is install php_mbstring and ran the “wrapper_compose.php install --no-dev” and uninstalled Phython 2.7 (I also have 3.5 installed). I increase the memory limit in php.ini from 128M to 1024MB. My issue just persists.

Suggestions?

Thanks!!!

You need to fix this too

4 GB of memory seems low for NMS.

4GB is fine depending on the number of devices.

You might not have modified the correct php.ini, what is the log message after changing the limit?

Wow. It looks like this may have fixed my issue. I was ignoring the warning because, well, it was just a warning about not getting updates properly.

Anyway, now my poller seems to have stopped functioning. Need to troubleshoot that now…

Thanks! haha