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

    GIT 5676 Disk Information in web UI is incorrect

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    web ui disk informati
    5
    13
    4.1k
    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.
    • M
      mrdally204 @ch3i
      last edited by mrdally204

      @ch3i The TB drive also houses the Ubuntu Server OS. I’m not really sure how to answer your question unless my response does 🙂

      Is there a way to force a refresh of this information? Would log files help in troubleshooting?

      EDIT: I tried disabling the graph in Storage Management > Edit and it screws up the home page badly 🙂

      0_1449842358068_2015-12-11_0857.png

      ch3iC Tom ElliottT 2 Replies Last reply Reply Quote 1
      • ch3iC
        ch3i Moderator @mrdally204
        last edited by

        @mrdally204 lol nice home page 😉

        Have you a 4Gb partition ? can you post the result of df -h ?

        M 1 Reply Last reply Reply Quote 0
        • M
          mrdally204 @ch3i
          last edited by

          @ch3i Thanks for the quick reply. here is the output

          Filesystem      Size  Used Avail Use% Mounted on
          /dev/sda1       909G   48G  815G   6% /
          none            4.0K     0  4.0K   0% /sys/fs/cgroup
          udev            3.9G  4.0K  3.9G   1% /dev
          tmpfs           800M  676K  799M   1% /run
          none            5.0M     0  5.0M   0% /run/lock
          none            4.0G     0  4.0G   0% /run/shm
          none            100M     0  100M   0% /run/user
          
          1 Reply Last reply Reply Quote 0
          • JJ FullmerJ
            JJ Fullmer Testers
            last edited by

            In the storage management of the fog gui is everything set correctly? IP address, interface, user/password and all that?
            on the server what does your /etc/exports look like?

            cat /etc/exports
            

            What does fog say about your hard drive in the gui?
            https://{fogip}/fog/management/index.php?node=hwinfo&id=1

            I’ve seen mine mess up before and one of those configurations was just messed up. Maybe your ip isn’t static and it changed on you?
            Other times a quick restart of apache refreshed and fixed the issue

            sudo service apache2 restart
            

            or

            sudo /etc/init.d/apache2 restart
            

            Or just a good old fashioned restart of the whole server can fix it to if it’s an odd bug in your server.
            Though it’s most likely a simple configuration issue in the ui based on when this has happened to me a few times and since your nfs server is probably working since you were able to upload an image.
            How big does the gui say your image is? You will need to enable “FOG_FTP_IMAGE_SIZE” under “General Settings” in the FOG Configuration then go to image management and list all images.

            Hopefully one of those ideas helps.

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            M 1 Reply Last reply Reply Quote 1
            • M
              mrdally204 @JJ Fullmer
              last edited by mrdally204

              @Arrowhead-IT

              fog@FogServer:~$ cat /etc/exports
              /images *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
              /images/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
              

              My HD info looks accurate in the gui, see the screen shot below. I looked into the user/password of the storage management section and it looks to be correct. I have also tried rebooting the machine and restarting apache with no success unfortunately. This is not a show stopping issue by any means but the tinkerer in me is annoyed 😉0_1449849719184_2015-12-11_1057.png

              1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman
                last edited by

                Can you tell us more about the 1TB drive?

                Is it external? USB? What filesystem does it use? What are the permissions on /images ?

                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!
                Daily Clean Installation Results:
                https://fogtesting.fogproject.us/
                FOG Reporting:
                https://fog-external-reporting-results.fogproject.us/

                M 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  Could you also grab a screen shot of the home page? Maybe there is an indicator on that? Seeing as we have a screenshot of the home page when it’s broken and a screenshot of the underlying hardware information, I think the only one we’re missing is the home page showing up as 4gb.

                  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
                  • Tom ElliottT
                    Tom Elliott @mrdally204
                    last edited by

                    @mrdally204 I’ve now fixed the weird display issues that were presented.

                    This is because of the checks to build the selector. It would only clean the contents if there was data. This now has been corrected with a two fold approach.

                    First I fixed the panes by removing the check to see if there was indeed data to present. This allowed the page to display properly with all the panes, though the usage pane had an unidentified id passed. This undefined ID would still be clickable, but at least the page looked proper and operated more properly, minus the big blank white spots.

                    Second, I check if there are nodes for the page to look at. The elements that auto update will only display if there is at least one “graph enabled” node. If there are 0 graph enabled nodes, the Client Count, Disk Usage, and bandwidth elements will not even be printed.

                    It may take a bit to get used to, but I also imagine not too many people run with fog’s graph’s on all nodes disabled.

                    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 1
                    • M
                      mrdally204 @Wayne Workman
                      last edited by

                      @Wayne-Workman The 1tb drive is internal and also used to run the OS.

                      fog@FogServer:~$ sudo file -sL /dev/sda1
                      /dev/sda1: Linux rev 1.0 ext4 filesystem data, UUID=546a8cba-febc-48e5-87da-a4c6ea712a5e (needs journal recovery) (extents) (large files) (huge files)
                      

                      permission on /images

                      fog@FogServer:~$ ls -ld /images
                      drwxrwxrwx 5 root root 4096 Dec 14 11:11 /images
                      

                      Anything I missed?

                      @TOM ELLIOTT ask and you shall receive 🙂

                      0_1450111216176_home.png

                      JJ FullmerJ 1 Reply Last reply Reply Quote 0
                      • JJ FullmerJ
                        JJ Fullmer Testers @mrdally204
                        last edited by

                        @mrdally204 I usually set the owner and group of images to fog

                        sudo chown -R fog.fog /images
                        

                        And I set the permissions to 775

                        sudo chmod -R 775 /images
                        

                        Whether or not that’s the best security practice is arguable, and since your permissions are already 777 the owner being root probably doesn’t matter. But changing the owner might be worth a shot.

                        Have you tried the FogApi powershell module? It's pretty cool IMHO
                        https://github.com/darksidemilk/FogApi
                        https://fogapi.readthedocs.io/en/latest/
                        https://www.powershellgallery.com/packages/FogApi
                        https://forums.fogproject.org/topic/12026/powershell-api-module

                        1 Reply Last reply Reply Quote 1
                        • Tom ElliottT
                          Tom Elliott
                          last edited by

                          Remoted in, and found that he is using a 32 bit OS. The value I was using to do the math was a function called intval which cannot do math beyond 32 bit scope (if the OS is 32 bit).

                          To fix, I just removed the intval function around the free/used space.

                          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 2
                          • 1 / 1
                          • First post
                            Last post

                          188

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.3k

                          Posts
                          Copyright © 2012-2024 FOG Project