it-novum / openITCOCKPIT

openITCOCKPIT is an Open Source system monitoring tool built for different monitoring engines like Nagios, Naemon and Prometheus.
https://openitcockpit.io/
GNU General Public License v3.0
263 stars 50 forks source link

Autoreport PHP Fatal Error #1675

Open ademismaili opened 4 months ago

ademismaili commented 4 months ago

Describe the bug When i try to generate an Autoreport for a Month ill get a Fatal PHP Error

To Reproduce Steps to reproduce the behavior: Generate Autoreport PDF with eventcorrelations

Expected behavior Create PDF

Versions

Additional context Request URL: /autoreport_module/autoreports/generate.json Referer URL: https://xxxxx Client IP: xxxx 2024-04-08 15:27:55 error: [Cake\Error\FatalErrorException] Fatal Error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 4096 bytes) in /opt/openitc/frontend/src/itnovum/openITCOCKPIT/Core/Views/Statehistory.php on line 211 Stack Trace:

nook24 commented 2 weeks ago

Hi @ademismaili,

you can adjust the memory_limit in the following file (replace 8.1 with the installed PHP version on your system):

/etc/php/8.1/fpm/conf.d/oitc.php.ini

Increase the value for memory_limit = 512M for example to 1024M or so. Run openitcockpit-update to apply the change.