Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Bienvenido a la comunidad de Pandora FMS Forums Community support Pandora version misaligned with Console

  • Pandora version misaligned with Console

    Posted by JonRussell on febrero 19, 2020 at 19:45

    Hi,

    I am getting the error “Pandora version misaligned with Console” but I cannot work out how to fix it.

    > pandora_server -h
    Pandora FMS Server 7.0NG.743 Build 200129
    
    > rpm -qa | grep pandorafms
    pandorafms_console-7.0NG.743-1.noarch
    pandorafms_server-7.0NG.743-1.noarch
    pandorafms_agent_unix-7.0NG.743-1.noarch
    
    At the bottom of the web page :
    Pandora FMS v7.0NG.743 - Build PC200129 - MR 35
    
    From the Update Manager Page :
    The latest version of package installed is: PC200129
    

    I don’t seem to have anything misaligned in the package versions. So, I dived in to the code to see what was generating the message.

    I found this : /var/www/html/pandora_console/include/class/ConsoleSupervisor.php
     
    I changed this : 

        $message_ver_misaligned = __(
            'Server %s and this console have different versions. This might cause several malfunctions. Please, update this server.',
            $server['name']
        );
    

    To this :

        $message_ver_misaligned = __(
            'Server %s and this console have different versions (%s, %s). This might cause several malfunctions. Please, update this server.',
            $server['name'],$server['version'],$config['current_package_enterprise']
        );
    

     
    So it would print out the two numbers it’s trying to compare … (If I read the code correctly?)

    and I get this message :

    Pandora version misaligned with Console
    Server pandora and this console have different versions (7.0NG.743 (P) 200129, 728). This might cause several malfunctions. Please, update this server.

    I cant find “728” in any of the packages I have installed ?
    Where does $config[‘current_package_enterprise’] come from ?

    Thanks.

    Jon.

    JonRussell replied 3 years, 1 month ago 3 Members · 9 Replies
  • 9 Replies
  • diego-m

    Moderator
    febrero 20, 2020 at 14:18
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Jon Russell,

    Can you execute in mysql the next query?

    SELECT * FROM tconfig WHERE token = 'current_package_enterprise'; 

    Tell us what you get back and we’ll try to narrow it down.

    Greetings
    Diego

  • JonRussell

    Member
    febrero 21, 2020 at 00:18
    273 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    MariaDB [pandora]> SELECT * FROM tconfig WHERE token = ‘current_package_enterprise’; 

    +———–+—————————-+——-+
    | id_config | token                      | value |
    +———–+—————————-+——-+
    |        83 | current_package_enterprise | 728   |
    +———–+—————————-+——-+

  • diego-m

    Moderator
    febrero 21, 2020 at 14:18
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Jon Russel,

    There you have it, change that value to the current version of pandora. I send you the query.

    UPDATE tconfig SET value = ‘743’ WHERE token = ‘current_package_enterprise’;

    This is not common but sometimes it happens that depending on how you have updated, this field may not be updated. We hope that after the change it will work properly and that it won’t happen again.

    Greetings
    Diego

  • JonRussell

    Member
    febrero 21, 2020 at 15:25
    273 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thanks !
    Message gone.

    Regards,

    Jon.

  • JonRussell

    Member
    julio 4, 2020 at 22:25
    273 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I get this error after every update … am I missing something in the update process ?
    I run yum update, then apply an MR scripts in the /var/www/html/pandora_console/extras/mr/
    I restart all the services.

    But every time I update to a new version, I get the alert “pandora version misaligned with Console”.

    Today (after updating to 747) I have :

    [root@pandora centos]# pandora_server -h
    Pandora FMS Server 7.0NG.747 Build 200702 Copyright (c) 2004-2020 Artica ST
    
    [root@pandora centos]# rpm -qa | grep pandorafms
    pandorafms_console-7.0NG.747-1.noarch
    pandorafms_server-7.0NG.747-1.noarch
    pandorafms_agent_unix-7.0NG.747-1.x86_64
    
    Bottom of the conlex page :
    Pandora FMS v7.0NG.747 - Build PC200702 - MR 39

    but in the DB it’s still 746 ?

    MariaDB [pandora]> SELECT * FROM tconfig WHERE token = 'current_package_enterprise';
    +-----------+----------------------------+-------+
    | id_config | token                      | value |
    +-----------+----------------------------+-------+
    |        83 | current_package_enterprise | 746   |
    +-----------+----------------------------+-------+
    

    I can update it manually in the DB, but what is meant to update the DB current_package_enterprise entry after the package is updated ? am I missing a step ?

    Thanks !

    Jon.

  • diego-m

    Moderator
    julio 8, 2020 at 14:30
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Good morning

    This error is given by updating via RPM, just like not applying the changes in database, and you have to run the RMs you will also have to make that small change manually. If you update using the online update manager, you should not have this problem since the MRs are applied and the change is made automatically in the database.

    Greetings
    Diego

  • JonRussell

    Member
    noviembre 15, 2021 at 17:16
    273 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I cant seem to get rid of this error in the GUI any more.

    “Pandora version misaligned with Console”

    [root@pandora ~]# pandora_server -h
    Pandora FMS Server v7.0NG.758 Build 211105
    
    [root@pandora ~]# rpm -qa | grep pandorafms
    pandorafms_console-7.0NG.758-211105.noarch
    pandorafms_agent_unix-7.0NG.758-211105.x86_64
    pandorafms_server-7.0NG.758-211105.noarch
    
    
    In the Database :
    
    SELECT * FROM tconfig WHERE token = 'current_package_enterprise'
    
    +-----------+----------------------------+-------+
    | id_config | token                      | value |
    +-----------+----------------------------+-------+
    |        83 | current_package_enterprise | 758   |
    +-----------+----------------------------+-------+
    
    At the bottom of the HTML page :
    
    Pandora FMS v7.0NG.758 - OUM 758 - MR 50

    So, everything seems to be set to “758”. But I still have the error on the website interface ?

    Is the version stored anywhere else ?

    Thanks.

    Jon.

  • vic

    Administrator
    noviembre 16, 2021 at 21:08
    1542 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi JonRussell,

    In the last versions of Pandora FMS the token “current_package_enterprise” has been changed to “current_package” so if this token doesn’t exist you will have to add it or modify the previous one.

    (!) Check if the ID of the token “current_package_enterprise” is 83 in the tconfig table, if so, launch the following queries:

    mysql> SELECT * FROM tconfig WHERE token LIKE ‘%current_package%’;
    mysql> UPDATE tconfig SET token =’current_package’ WHERE id_config=83;
    mysql> UPDATE tconfig SET value =’758′ WHERE token = ‘current_package’;

    Best regards,
    Víc

  • JonRussell

    Member
    noviembre 16, 2021 at 22:28
    273 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Marvellous ! That’s fixed it.

    Thanks !

    Jon.

    Hi JonRussell,

    In the last versions of Pandora FMS the token “current_package_enterprise” has been changed to “current_package” so if this token doesn’t exist you will have to add it or modify the previous one.

    (!) Check if the ID of the token “current_package_enterprise” is 83 in the tconfig table, if so, launch the following queries:

    mysql> SELECT * FROM tconfig WHERE token LIKE ‘%current_package%’;
    mysql> UPDATE tconfig SET token =’current_package’ WHERE id_config=83;
    mysql> UPDATE tconfig SET value =’758′ WHERE token = ‘current_package’;

    Best regards,
    Víc