New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu under config displaying servers (2) even if there is nothing to build #139

Closed
chamambom opened this Issue Jul 22, 2014 · 12 comments

Comments

Projects
None yet
3 participants
@chamambom

chamambom commented Jul 22, 2014

menu under config is displaying servers (2) even if there is nothing to build ......im using the latest version .Version 1.2.3 (2014-06-04).I have 3 bind dns servers and when there is something to build , it shows servers (3) but when there is nothing it then says servers (2)

where is it getting that figure ...

@chamambom chamambom changed the title from menu displaying servers (2) even if there is nothing to build to menu under config displaying servers (2) even if there is nothing to build Jul 22, 2014

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jul 22, 2014

The servers menu badge count is comprised of servers that meet any of the following criteria:

  1. Need the client installed
  2. Need the client upgraded
  3. Need to build the configuration

Do any of the above come true for your environment?

@chamambom

This comment has been minimized.

chamambom commented Jul 23, 2014

yes definitely it meets the above conditions

  1. I had to manually install the clients just to be sure
  2. using the new version and these are the results
    Currently installed version: 1.2.5
    Latest version: 1.2.5
    No upgrade available.
    [root@server1 ~]#
  3. All configurations are built
@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jul 23, 2014

So, all clients are installed/upgraded and all configurations are built and you're still showing an inaccurate menu badge count? If that's the case, can I get a screenshot of your servers page (you can scratch out your server names)?

@chamambom

This comment has been minimized.

chamambom commented Jul 23, 2014

I have attached 2 screenshots
serverbagescreeenshort
serverbagescreeenshort2

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jul 24, 2014

Can you please provide me with the output of this SQL query?

mysql> SELECT server_client_version FROM fm_dns_servers;

Based on the code, I'm guessing you have two with NULL values and I'd like to confirm that. If you do have NULL values, can you please run the following on those two clients (dry-run buildconf):

$ php /usr/local/facileManager/fmDNS/dns.php -n -b

And then check the UI again to see if those cleared. If your clients are v1.1 or above, they should update the database with their version number.

You can check your client version with:

$ php /usr/local/facileManager/fmDNS/dns.php -v

@WillyXJ WillyXJ added this to the 1.3 release milestone Jul 25, 2014

@WillyXJ WillyXJ added bug labels Jul 25, 2014

@chamambom

This comment has been minimized.

chamambom commented Jul 25, 2014

mysql> SELECT server_client_version FROM fm_dns_servers; gave me

Database changed
mysql> SELECT server_client_version FROM fm_dns_servers;
+-----------------------+
| server_client_version |
+-----------------------+
| 1.2.5 |
| 1.2.5 |
| NULL |
+-----------------------+
3 rows in set (0.00 sec)

mysql>

running $ php /usr/local/facileManager/fmDNS/dns.php -v also gave me an empty output on one DNS server with the NULL value in the database

running php /usr/local/facileManager/fmDNS/dns.php -n -b did not yield any results ,the menu bar still shows the 2 badges

i have removed all the servers and it seems like the other 2 servers(with their version updated in the database) are the problem ,im trying to reinstall the client right now and its able to reach the server ,but there is no verbose logging like the other one where it shows you installation progress

@chamambom

This comment has been minimized.

chamambom commented Jul 25, 2014

Hie willy

In trying to resolve the other 2 servers i deleted one of the servers and now i am trying to install the client again and it seems like its hanging somewhere because certainly its communicating with the server

here is the screenshot showing that.
facilemanager

@chamambom

This comment has been minimized.

chamambom commented Jul 25, 2014

And the other thing im observing is shown below

[root@xxxx ~]# sudo php /usr/local/facileManager/fmDNS/$(ls /usr/local/facileManager/fmDNS | grep php | grep -v functions) upgrade
Currently installed version: 1.2.5
Latest version: 1.2.5
No upgrade available.
[root@xxxx ~]#

[root@xxxx]# sudo php /usr/local/facileManager/fmDNS/$(ls /usr/local/facileManager/fmDNS | grep php | grep -v functions) upgrade
Currently installed version: 1.2.5
Latest version: 1.2.5
No upgrade available.
[root@xxxxxx]#

[root@xxxxx ~]# sudo php /usr/local/facileManager/fmDNS/$(ls /usr/local/facileManager/fmDNS | grep php | grep -v functions) upgrade
[root@xxxxxx ~]#

as you can see the last server is not showing anything and thats the server that shows NULL in the database and thats the only server that i managed to remove from the facilemanager GUI and it managed to install again but still giving the same results

Database changed
mysql> SELECT server_client_version ,server_name FROM fm_dns_servers;
+-----------------------+---------------------+
| server_client_version | server_name |
+-----------------------+---------------------+
| 1.2.5 | server1.xx.xx |
| NULL | server2.xx.xx |
+-----------------------+---------------------+
2 rows in set (0.00 sec)

mysql>

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jul 25, 2014

Ok, I found the problem with the menu badges and it is indeed a bug. I have a fix ready to go out with the next release. Or you can change https://github.com/WillyXJ/facileManager/blob/master/server/fm-modules/fmDNS/functions.php#L565 to the following:

basicGetList('fm_' . $__FM_CONFIG[$_SESSION['module']]['prefix'] . 'servers', 'server_id', 'server_', "AND `server_client_version`!='" . getOption('client_version', 0, $_SESSION['module']) . "'");

As for your other host that's not installing, my guess is you have a firewall blocking http/https to your fM server.

@chamambom

This comment has been minimized.

chamambom commented Jul 25, 2014

the installation im trying to do is on the same server and the firewall and selinux are both off ....

@wispr

This comment has been minimized.

wispr commented Jul 29, 2014

confirmed bug as well

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Aug 4, 2014

Closing as this issue of an incorrect menu count display has been fixed and ready for the next release.

@WillyXJ WillyXJ closed this Aug 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment