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

Autoreport PHP Fatal Error #1675

Open
ademismaili opened this issue Apr 8, 2024 · 1 comment
Open

Autoreport PHP Fatal Error #1675

ademismaili opened this issue Apr 8, 2024 · 1 comment

Comments

@ademismaili
Copy link

ademismaili commented Apr 8, 2024

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

  • openITCOCKPIT Server Version: 4.7.1
  • Ubuntu 22.04

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:

  • /opt/openitc/frontend/vendor/cakephp/cakephp/src/Error/ExceptionTrap.php:292
  • [main]:
@nook24
Copy link
Member

nook24 commented Aug 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants