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

    Fog Server 1.20 Images in Server not reporting in GUI

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    11
    3.9k
    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.
    • K
      KGreene
      last edited by

      Hi:

      I am running Fog 1.2 on a Linux laptop and have put two images in the /images directory.
      The permissions are set to fog:fog
      The images are Oracle Linux 6.6 and 7.1

      If I look at the directory, I see the image files:

      [root@x61 images]# ls -la
      total 7956508
      drwxr-xr-x. 5 fog fog 4096 Jun 4 09:24 .
      dr-xr-xr-x. 29 root root 4096 Jun 4 06:17 …
      drwxr-xr-x. 3 fog fog 4096 Jun 4 10:56 dev
      -rwxr-xr-x. 1 fog fog 0 May 31 06:52 .mntcheck
      drwxr-xr-x 12 fog fog 4096 Jun 4 06:28 OLE6.6
      -rwxr-xr-x 2 fog fog 3853516800 Nov 6 2014 OLE6.6.iso
      -rwxr-xr-x. 1 fog fog 4293918720 Jun 2 15:03 OracleLinux7.1.iso
      drwxr-xr-x. 2 fog fog 4096 May 31 06:52 postdownloadscripts

      However, if I look on the web GUI, under the “Image Management - List all images”, the files names are reported however the reported file size is O bytes.

      OLE6.6.iso
      default:Linux
      Multiple Partition Image - Single Disk (Not Resizable) 0.00 iB 0.00 iB No Data
      Oracle 7.1
      default:Linux
      Multiple Partition Image - Single Disk (Not Resizable) 0.00 iB 0.00 iB No Data

      In addition, if I go to the guest host and look at the attached monitor, it goes through the boot process and then stops saying the download file is 0 bytes. It does see the right file name however. It waits a minute and then reboots and starts again to try to download the right image.

      Just in case it is needed, the guest host for this project is a Oracle (Sun) SunFire X-4500 (2x2 CPU and 48 SATA drives - sort of an unusual host).

      Have played with a number of settings with no luck as well as a few fresh installs of Fog to make sure all the initial settings are right. At this point, I am thinking it may be a small bug or misconfiguration that I did.

      My working assumption is that the FTP process used to access the image files is not looking at the right place or that the FTP module is not reading file sizes. However — if I use Firefox to look at the image directory, all is well.

      Index of ftp://x.x.x.195/../../images/

      Up to higher level directory
      Name Size Last Modified
      OLE6.6
      6/4/2015 1:28:00 PM
      File:OLE6.6.iso
      3763200 KB 11/6/2014 12:00:00 AM
      File:OracleLinux7.1.iso
      4193280 KB 6/2/2015 10:03:00 PM
      dev
      6/4/2015 6:15:00 PM
      postdownloadscripts
      5/31/2015 1:52:00 PM

      Any help would be very helpful.

      Thanks.

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

        I’m fairly sure it’s FTP and/or permissions.

        You should set your /images directory to 777 recursively.
        [CODE]sudo chmod -R 777 /images[/CODE]
        See if that fixes it, first.

        If it doesn’t, check this out:

        https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

        Let us know if you need help.

        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/

        1 Reply Last reply Reply Quote 0
        • K
          KGreene
          last edited by

          Hi:

          Thank you for a quick reply. I did change the permissions as you suggested.
          I then used a ftp client to look at the permissions assuming the Fog application uses FTP to check file sizes.

          [root@x61 images]# ftp localhost
          Trying ::1…
          ftp: connect to address ::1Connection refused
          Trying 127.0.0.1…
          Connected to localhost (127.0.0.1).
          220 (vsFTPd 2.2.2)
          Name (localhost:root): fog
          331 Please specify the password.
          Password:
          230 Login successful.
          Remote system type is UNIX.
          Using binary mode to transfer files.
          ftp> cd /images
          250 Directory successfully changed.
          ftp> ls
          227 Entering Passive Mode (127,0,0,1,242,170).
          150 Here comes the directory listing.
          drwxrwxrwx 12 501 501 4096 Jun 04 13:28 OLE6.6
          -rwxrwxrwx 2 501 501 3853516800 Nov 06 2014 OLE6.6.iso
          -rwxrwxrwx 1 501 501 4293918720 Jun 02 22:03 OracleLinux7.1.iso
          drwxrwxrwx 3 501 501 4096 Jun 04 18:48 dev
          drwxrwxrwx 2 501 501 4096 May 31 13:52 postdownloadscripts
          226 Directory send OK.

          So the permissions are set to 0777 as you suggested. It measures the file sizes as expected. However the Fog application is still reporting the file size as “0”. It sees the file names but not the size of the file. In addition, the guest host sees the name but reports it as “0” in size.

          Bit weird.

          Kevin

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • K
            KGreene
            last edited by

            Update 2:

            I went through the Wiki page you sent and checked all of the settings.
            Nice page and a lot of good things to check.

            Sadly - in my case, no luck.

            But I will admit the project has very good documentation.

            Thanks.

            Kevin

            Wayne WorkmanW 1 Reply Last reply Reply Quote 2
            • Tom ElliottT
              Tom Elliott @KGreene
              last edited by Tom Elliott

              @KGreene is there actually files in the image directory? By that I mean in the actual image you’re trying I’m guessing the olel 6.6

              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
              • K
                KGreene
                last edited by

                Yes. There are two images.
                An Oracle Linux 6.6 version and an Oracle Linux 7.1 version.
                One is about 3.8 GB and the other is about 4.2 GB.
                These were .iso files that were downloaded this week from Oracle.
                The 6.6 was tested directly on another host without problems.
                It installed well using a CD drive in the host.

                Thanks again for responding.

                Kevin

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

                  FOG doesn’t image systems using iso files. The directory you have called OLE6.6, should contain files in it.

                  This means, and how fog operates, You put OS on the host/client. You upload that to the fog server. When it completes, it creates the directory of OLE6.6 and copies the “images” of the server into the new folder.

                  Downloads check this directory existence to start imaging. So if the directory exists, you can create the task, but the size actually checks the files in the directory. If nothing is there, there’s nothing to print.

                  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
                  • K
                    KGreene
                    last edited by

                    Thanks.
                    Now I understand a lot more.

                    What I need to do now is upload a copy of a current (running) system image into the Fog Server.
                    Fog is more of a replication system than an first boot system.

                    The reason I started with Fog was that the X-4500 I have will only do a network boot (the hard coded limitation within the system BIOS) does not allow the use of CD/DVD drives to boot the system. Has to do with system security.

                    That said, I do have a stand alone host (DL-360/G5) that is running OLE 6.6 on it. I can try to upload it to the Fog system.

                    I also have a non .iso file on the /images directory that is a conventional boot disk for OLE6.6 (has a lot of files in it). That also is not bootable.

                    Thank you again for all your help!!!

                    Kevin

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

                      @KGreene said:

                      But I will admit the project has very good documentation.

                      Had to take a moment to bask in the glory. 🙂

                      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/

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

                        @KGreene said:

                        Thanks.
                        Now I understand a lot more.

                        What I need to do now is upload a copy of a current (running) system image into the Fog Server.
                        Fog is more of a replication system than an first boot system.

                        The reason I started with Fog was that the X-4500 I have will only do a network boot (the hard coded limitation within the system BIOS) does not allow the use of CD/DVD drives to boot the system. Has to do with system security.

                        That said, I do have a stand alone host (DL-360/G5) that is running OLE 6.6 on it. I can try to upload it to the Fog system.

                        I also have a non .iso file on the /images directory that is a conventional boot disk for OLE6.6 (has a lot of files in it). That also is not bootable.

                        Thank you again for all your help!!!

                        Kevin

                        Ok. Weird setup, but workable.

                        Please search the WiKi and Forums about loading ISO from the boot menu, and chain loading. Vary your terms, the Forums search feature isn’t… my favorite. Try chain-loading, chain loading, ISO, .ISO, Boot ISO, etc.

                        Implementing booting from an ISO via FOG is A LOT easier using FOG Trunk… and since your setup is new and not system-critical at the moment, why not?

                        I’ve never done this, but my understanding is:
                        You’ll need to put the ISO in the web root folder, add an item in the Boot Menu to point to that ISO.

                        You might ought to look at this article for installing FOG Trunk:
                        https://wiki.fogproject.org/wiki/index.php/SVN

                        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/

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

                          @KGreene I’m solving this post. Mostly because it was just user mis-understanding. Hopefully you understand, and if you need any help, don’t hesitate to let us know.

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

                          139

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.3k

                          Posts
                          Copyright © 2012-2024 FOG Project