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


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