Pandora FMS Community

update manager error

jdpoe · 14 jun 2017, 7:56 · 19 mensajes · 63 visitas

  1. Inicio del debate

    Hi all, Can't update with update manager online. error : Error in package extraction. Any idea? Thanks. jdpoe

  2. Hi jdpoe, Can you show me the results of the log file to see the error? Best regards, vic

  3. 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

  4. 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.

  5. Hi vic, I'm currently using Pandora FMS v7.0NG.704 - Build PC170531 - MR1. And oprating system is CentOS 6.8 (Final) Thanks. jdpoe

  6. Hi jdpoe, Can you tell me the permisions on this folder?

    /var/www/html/pandora_console/attachment/downloads
    

    Best regards, vic.

  7. Hi vic, Folder permissions are drwxr-xr-x 13 apache apache 4096 .... Thanks. jdpoe

  8. Hi jdpoe, I found a bug, i send a ticket to the developer's team. I'll keep you informed. Best regards, vic.

  9. Hi vic, OK, I'm waiting for good news. Thanks. jdpoe

  10. Hi vic, sorry for late reply. I was update to 7.0NG.709 but same problem. Error in package extraction. Thanks. jdpoe

  11. Hi jdpoe, Can you say me the version of PHP that do you have installed? Best regards, vic.

  12. Hi vic, I'm currently using PHP 5.6. Thanks. jdpoe

  13. 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 = 500M
    

    Best regards, vic.

  14. Hi vic, It is not locked. It has already been set memory_limit = 512M Thanks. jdpoe

  15. 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.php
    

    Also 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.php
    

    Finally access the console and check the Update Manager Online. If you have any problem, tell me. Best regards, vic.

  16. 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!

  17. 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.

  18. 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.