Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandora version misaligned with Console
#1
Hi,

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

Code:
> 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 : 

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

To this :

Code:
   $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.
 Reply
#2
Hello Jon Russell,

Can you execute in mysql the next query?


Code:
SELECT * FROM tconfig WHERE token = 'current_package_enterprise'; 

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

Greetings
Diego
 Reply
#3
[quote pid='30882' dateline='1582193919']
MariaDB [pandora]> SELECT * FROM tconfig WHERE token = 'current_package_enterprise'; 

+-----------+----------------------------+-------+
| id_config | token                      | value |
+-----------+----------------------------+-------+
|        83 | current_package_enterprise | 728   |
+-----------+----------------------------+-------+
[/quote]
 Reply
#4
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
 Reply
#5
Thanks !
Message gone.

Regards,

Jon.
 Reply
#6
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 :


Code:
[[email protected] centos]# pandora_server -h
Pandora FMS Server 7.0NG.747 Build 200702 Copyright (c) 2004-2020 Artica ST

[[email protected] 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 ?


Code:
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.
 Reply
#7
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
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes