[ZBX-5006] PHP Fatal error: Allowed memory size after 1.8.13 upgrade Created: 2012 May 16 Updated: 2017 May 30 Resolved: 2012 May 28 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 1.8.13 |
Fix Version/s: | 1.8.14rc1 |
Type: | Incident report | Priority: | Critical |
Reporter: | Mike Brady | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Centos 5.8 x86_64 |
Attachments: | screenshot-1.jpg | ||||||||||||||||||||||||||||
Issue Links: |
|
Description |
After upgrading from 1.8.12 to 1.8.13 the Web front end no longer works. The system continues to do monitoring as email notifications are still being received. It just seems to be frontend problem. The initial configuration of the fornt end works succesfully up until step 8 "Finish"> When the Finish button is clicked on the browser posts the page, but the web server never comes back. Eventually the following error is logged in /var/logs/http/error.log [Tue May 15 21:38:44 2012] [error] [client 192.168.42.91] PHP Fatal error: Allowed memory size of 775946240 bytes exhausted (tried to allocate 523800 bytes) in /var/www/html/zabbix-1.8.13/include/copt.lib.php on line 524, referer: http://zabbix02/zabbix/setup.php In php.ini memory_limit = 740M, but it does not seem to matter what memory_limit is set to. It was originally set to 256M and every time I increased it the the installation of the frontend fails at that memory size. The Postgresql postmaster process uses a lot of CPU from the time the Finish button is clicked on until the failure is logged. |
Comments |
Comment by Toms (Inactive) [ 2012 May 16 ] |
How many lines of code is in your copt.lib.php file? |
Comment by Mike Brady [ 2012 May 16 ] |
[root@zabbix02 ~]# wc -l /var/www/html/zabbix-1.8.13/include/copt.lib.php I have verified that the installed copt.lib.php is the same one as is in the original tar download. I see that some else has reported what sounds like the same issue in a comment in I should have also mentioned that the install/upgrade was done from RPMs that I built. The box started with Zabbix 1.8.5 and has been upgraded using RPMs for each release since then with no issues until now. I am happy to provide my SPEC file and/or RPMs. I can also set you up ssh access to my server if that would help. Contact me directly to arrange. <Toms> Mike, please send your contact information to [email protected] |
Comment by Oleksii Zagorskyi [ 2012 May 16 ] |
|
Comment by Toms (Inactive) [ 2012 May 17 ] |
Mike, could you try out revisions 27140, 27144 and 27200? |
Comment by Mauro V. [ 2012 May 18 ] |
Hi, I can confirm this bug. I've upgraded from 1.8.12 to 1.8.13, and after the upgraded of the fronted, the fronted stoped working with the following error: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 523800 bytes) in /var/www/html/include/copt.lib.php on line 524 I had to go back to 1.8.12 fronted to have it work again. |
Comment by Oleksii Zagorskyi [ 2012 May 18 ] |
Please in such cases report also info about used PHP version. |
Comment by Paris Jean-Christophe [ 2012 May 19 ] |
I have the same problem. Everything goes well until I click the "Finish" button. At that time, the mysql process goes crazy and is almost 100% instead of 4-5% usually. And I find, as in the description, the error "PHP Fatal Error: Allowed memory size of ...etc..." I handed version 1.8.11 and I have no problem. |
Comment by Oleksii Zagorskyi [ 2012 May 20 ] |
|
Comment by Girish KG [ 2012 May 22 ] |
I can reproduce this error for 1.8.13 Below are the version in details: Apache: |
Comment by Girish KG [ 2012 May 22 ] |
[Tue May 22 09:39:16 2012] [error] [client 10.11.100.13] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 523800 bytes) in /var/www/html/include/copt.lib.php on line 524 |
Comment by Toms (Inactive) [ 2012 May 28 ] |
Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-5006 |
Comment by Pavels Jelisejevs (Inactive) [ 2012 May 28 ] |
TESTED. |
Comment by Toms (Inactive) [ 2012 May 28 ] |
Fixed in 1.8.14rc1 r27874 |
Comment by Paulo Belloni [ 2012 Jun 08 ] |
I tried to apply the patch in 1.8.13, but it still getting "PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 523800 bytes) in /usr/share/zabbix/include/copt.lib.php on line 524". Is there something else we can do to fix this issue in 1.8.13 till get an 1.8.14 stable release?
$auditid = get_dbid('auditlog','auditid'); |
Comment by Paulo Belloni [ 2012 Jun 08 ] |
It was due to multiple installations causing file duplicity. The patch indeed fixed the problem. Tks. |