Hi all, Can't update with update manager online. error : Error in package extraction. Any idea? Thanks. jdpoe
update manager error
jdpoe · 14 jun 2017, 7:56 · 19 mensajes · 63 visitas
- Inicio del debate
Hi jdpoe, Can you show me the results of the log file to see the error? Best regards, vic
Hi vic, Here is log. Many SQL error. [pandora_console.log] [15-Jun-2017 08:31:22 Europe/Amsterdam] PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/html/pandora_console/include/functions_api.php on line 183 [15-Jun-2017 08:31:22 Europe/Amsterdam] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/pandora_console/include/functions_api.php on line 187 [15-Jun-2017 08:32:33 Europe/Amsterdam] PHP Warning: in_array() expects parameter 2 to be array, string given in /var/www/html/pandora_console/include/functions_api.php on line 183 [15-Jun-2017 08:32:33 Europe/Amsterdam] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/pandora_console/include/functions_api.php on line 187 2017-06-14 11:21:44 PandoraFMS_Cell4 [V1] Pandora FMS Server 'PandoraFMS_Cell4' unhandled error. 2017-06-14 11:21:44 PandoraFMS_Cell4 [V1] [E] 'PandoraFMS_Cell4': DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 1006. [pandora_server.log] xxxxx [V1] Pandora FMS Server 'PandoraFMS_sv' unhandled error. xxxxxx[V1] [E] 'PandoraFMS_sv': DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 718. [pandora_server.error] DBD::mysql::db do failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 1006. DBD::mysql::st execute failed: MySQL server has gone away at /usr/lib/perl5/PandoraFMS/DB.pm line 718. regards, jdpoe
Hi jdpoe, What is the Pandora version that have you installed? Yoy can see this in the footer of Pandora console. And what is the operating system that you are using? I will try to replicate the error. Best regards, vic.
Hi vic, I'm currently using Pandora FMS v7.0NG.704 - Build PC170531 - MR1. And oprating system is CentOS 6.8 (Final) Thanks. jdpoe
Hi jdpoe, Can you tell me the permisions on this folder?
/var/www/html/pandora_console/attachment/downloadsBest regards, vic.
Hi vic, Folder permissions are drwxr-xr-x 13 apache apache 4096 .... Thanks. jdpoe
Hi jdpoe, I found a bug, i send a ticket to the developer's team. I'll keep you informed. Best regards, vic.
Hi vic, OK, I'm waiting for good news. Thanks. jdpoe
Hi jdpoe, The new version of Pandora 7.0NG 707 is now available, download it using .rpm packages. http://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:Anexo\_Upgrade The update manager works correctly. If you have any problem tell me. Best regards, vic.
Hi vic, sorry for late reply. I was update to 7.0NG.709 but same problem. Error in package extraction. Thanks. jdpoe
Hi jdpoe, Can you say me the version of PHP that do you have installed? Best regards, vic.
Hi vic, I'm currently using PHP 5.6. Thanks. jdpoe
Hi jdpoe, Have you looked if the memory of php is correct? The update manager needs a minimum of 500Mb to work correctly. Check the variable "memory_limit" in this file: /etc/php.ini
memory_limit = 500MBest regards, vic.
Hi vic, It is not locked. It has already been set memory_limit = 512M Thanks. jdpoe
Hi jdpoe, I'm testing the pandora console and I checked its functioning in many compatible operating systems an I've seen some bug. I recommended you make a backup of the pandora_console directory with all its content and save it in a safe place, then uninstall the console. Download the latest version of the pandora_console and install it. Rename or delete the file install.php of this directory:
/var/www/html/pandora_console/install.phpAlso copy the file config.php of the backup (/pandora_console/include/config.php) in the same folder of the new installation.
/var/www/html/pandora_console/include/config.phpFinally access the console and check the Update Manager Online. If you have any problem, tell me. Best regards, vic.
I had the same issue and tried everything I could think of. I just decided to trace the issue in the code. In my case I found that on line 658 of functions_update_manager.php where we do a check against $result :
if ($result != 0) { //... Failed extraction code }$result was returning true on success, so evidently it's not equal to 0. Changing the line to :
if ($result !== true) {has resolved the issue on my end. Hopefully this helps someone out there!
Hopefully this helps someone out there!
I doubt whether to say "yes" or "no". First of all, it was supposed to help developers. But looks like they don't care. Which is also proven by the fact that nobody test that code. As for me, after this fix, update processed further, popped out tons of messages and says it is complete. But, of course, no, it wasn't complete. Extracted pandora_console directory was placed inside existing pandora_console directory. When I manually replaced old content with new one, server pages started to show PHP errors. And only after manual applying of fresh pandoradb.sql, server now can be called as working. But who knows which other steps update manager "forgot" to perform.
I had the same issue and tried everything I could think of. I just decided to trace the issue in the code. In my case I found that on line 658 of functions_update_manager.php where we do a check against $result :
if ($result != 0) { //... Failed extraction code }$result was returning true on success, so evidently it's not equal to 0. Changing the line to :
if ($result !== true) {has resolved the issue on my end. Hopefully this helps someone out there!
Hi, thank you for the Post, it help me. In my Case the file was in C:PandoraFMShtdocspandora_consoleincludefunctions_update_manager.php in Line 665. After i change to true the Update works.
Entra en tu cuenta para publicar.
