• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Pie charts on dashboard showing incorrect total and used size for Storage nodes

Scheduled Pinned Locked Moved
FOG Problems
2
5
1.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    lhovarter
    last edited by lhovarter Nov 13, 2015, 8:23 AM Nov 13, 2015, 2:21 PM

    Hey, I am running into an odd problem that just popped up the other day when I updated. The piecharts on the dashboard for old nodes that I updated to the newest fog show the maximum hard drive size as 4 GB and have used 2 GB of it. If I click the pie chart to see the specs of the node it shows the correct numbers for hard drive size and usage. Here are a few screenshots of the problem 0_1447424328610_fogscreenshot1.png 0_1447424511618_fogscreenshot2.png

    Also this problem does not occur on a node with a fresh install

    T 1 Reply Last reply Nov 13, 2015, 4:33 PM Reply Quote 0
    • T
      Tom Elliott @lhovarter
      last edited by Nov 13, 2015, 4:33 PM

      @lhovarter I’m unable to replicate.

      Maybe something is blocking access, and hence limiting the viewable elements of the disk?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • L
        lhovarter
        last edited by Nov 13, 2015, 8:22 PM

        Yeah it is strange, I looked at the permissions and it seems fine so I started poking around in the freespace.php file a bit. When I type in the page ( http://workingserver/fog/status/freespace.php?path=L2ltYWdlcw== ) I get {“free”:56375885824,“used”:15166595072} but on the one that is stuck (the apache log said it was suing the same path parameter in the code) I get {“free”:2147483647,“used”:2147483647}. I think that in that php file it is trying to get some sort of default path that is set wrong in my php config somewhere? I’ll do some more digging

        1 Reply Last reply Reply Quote 0
        • L
          lhovarter
          last edited by lhovarter Nov 13, 2015, 3:27 PM Nov 13, 2015, 9:00 PM

          Oh wait, duh, for some reason it is maxing out on how much memory is assigned to that number (2147483647 maximum for a 32 bit integer). So somewhere there is a memory setting in apache or php that is wrong (on my servers).

          1 Reply Last reply Reply Quote 0
          • L
            lhovarter
            last edited by lhovarter Nov 13, 2015, 3:52 PM Nov 13, 2015, 9:47 PM

            Ok, I found the reason. My old nodes are all 32-bit (we run fog on recycled hardware basically), my new node is 64-bit. In the freespace.php a recent change (somewhere within the last few months) made calculating $hdtotal and $hdused use intval(). This made them integers which is not a big deal on 64-bit systems in PHP but in 32-bit systems the harddrive space in bits is higher than the maximum size of an integer. If I restore the old freespace.php file it works fine.

            I don’t know a lot about coding in PHP but is there a way to cast the result of the calculation to a double or long for 32-bit compatibility?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              2/5
              Last post

            241

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project