snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.02k stars 3.18k forks source link

Noob question - php memory overflow #8057

Closed NaezT closed 4 years ago

NaezT commented 4 years ago

Getting a php memory overflow from various php sources after a while... lets say afew hours when the server is sitting idle.

After reboot it works fine, no data lost ... and I can contine my tests. But, the next day I get http error 500 -

apache error log says this :

Https error 500 [Fri May 15 20:55:00.359114 2020] [php7:error] [pid 9113] [client 192.168.1.154:56188] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/snipeit/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 31, referer: http://zaphod/admin/branding [Fri May 15 20:55:00.390834 2020] [php7:error] [pid 9113] [client 192.168.1.154:56188] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /var/www/snipeit/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php on line 103, referer: http://zaphod/admin/branding

Install:

Fresh install Ubuntu 18.04 LTS Snipeit 4.9.2 installed using the install.sh script

I did enable debugmode and read through the common issues as well - but to no avail.

any hints?

NaezT commented 4 years ago

made some troubleshooting, tried to increase memory size in php.ini - but that did not help. Any suggestions anyone?

stale[bot] commented 4 years ago

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.