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

Ubuntu 14.04 Fog Server 1.20 - Download (Deploy) image issue

Scheduled Pinned Locked Moved
FOG Problems
5
33
11.6k
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
    Keifer
    last edited by Aug 14, 2014, 10:41 PM

    Hello,

    I have a Ubuntu 14.04 Fog 1.20 server and I have work through the directory rights issue and corrected my FTP login to download a image. Now I am getting a error soon as the image tries to download. It tells me “Image is a directory”. I tried to change the image type and it doesn’t help. I am working with this server in a virtualbox environment and vista virtualbox on a inside network.

    Any help you guys can give me would be great!

    1 Reply Last reply Reply Quote 0
    • C
      cadyfish
      last edited by Aug 15, 2014, 1:09 AM

      Here are a couple things to check:

      -Are the images stored or mounted under /images?
      -Verify on the website Image Management tab the image location is exactly the same as the image path on the server
      -Run the following commands if not done so already:
      sudo chown -R fog /images
      sudo chmod -R 755 /images
      sudo chmod -R 777 /images/dev

      How were the images uploaded via 1.20 or .32 or earlier?

      1 Reply Last reply Reply Quote 0
      • K
        Keifer
        last edited by Aug 15, 2014, 1:26 AM

        I have the images stored in the default directory “images” on the / of the drive. I have verified the path is the exact same. It actual list the image folder correctly on start of the pxe download. I have verified the is full rights to the image directory. This is a brand new install, all images were uploaded under 1.20.

        1 Reply Last reply Reply Quote 0
        • C
          cadyfish
          last edited by Aug 15, 2014, 5:08 AM

          Could you open up terminal and reply back with what shows up after the following to commands:
          ls -la /images/{image your trying to deploy/

          Also verify that the storage management page has the same settings for image location as in LN87 in /lib/fog/Config.class.php.

          If you changed these settings after a host was already registered I would also remove it and re-add

          1 Reply Last reply Reply Quote 0
          • J
            Junkhacker Developer
            last edited by Aug 15, 2014, 2:21 PM

            the settings in [SIZE=2]/lib/fog/Config.class.php are not [/SIZE]relevant[SIZE=2] here, as the storage management section of that data has been moved to the database. the relevant settings to this are now found on the storage management page[/SIZE]

            [SIZE=2]there should be no need to re-register the host either[/SIZE]

            [SIZE=2]but i too would like to see the output of [/SIZE]ls -la /images/{image your trying to deploy}/[SIZE=2] [/SIZE]
            [SIZE=2]and[/SIZE]
            ls -la /images/

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • C
              cadyfish
              last edited by Aug 15, 2014, 11:31 PM

              [quote=“Junkhacker, post: 35308, member: 21583”]the settings in [SIZE=2]/lib/fog/Config.class.php are not [/SIZE]relevant[SIZE=2] here, as the storage management section of that data has been moved to the database. the relevant settings to this are now found on the storage management page[/SIZE]

              [SIZE=2]there should be no need to re-register the host either[/SIZE]

              [SIZE=2]but i too would like to see the output of [/SIZE]ls -la /images/{image your trying to deploy}/
              [SIZE=2]and[/SIZE]
              ls -la /images/[/quote]

              Sorry for the miss information… Thank you for correcting me

              1 Reply Last reply Reply Quote 0
              • K
                Keifer
                last edited by Aug 15, 2014, 11:58 PM

                Here is the results.

                foguser@fogserver:/$ ls -la /images/
                total 20
                drwxrwxrwx 5 root root 4096 Aug 13 20:50 .
                drwxr-xr-x 26 root root 4096 Aug 9 16:37 …
                drwxrwxrwx 2 root root 4096 Aug 13 20:50 dev
                -rwxrwxrwx 1 root root 0 Aug 9 16:18 .mntcheck
                drwxrwxrwx 2 root root 4096 Aug 9 16:18 postdownloadscripts
                drwxrwxrwx 2 root root 4096 Aug 13 20:28 vistatest2

                foguser@fogserver:/images$ ls -la vistatest2
                total 2718156
                drwxrwxrwx 2 root root 4096 Aug 13 20:28 .
                drwxrwxrwx 5 root root 4096 Aug 13 20:50 …
                -rwxrwxrwx 1 root root 2783365986 Aug 13 20:43 0800276c12c4.000
                -rwxrwxrwx 1 root root 1 Aug 13 20:28 d1.fixed_size_partitions
                -rwxrwxrwx 1 root root 15 Aug 13 20:28 d1.original.fstypes
                -rwxrwxrwx 1 root root 259 Aug 13 20:28 d1.original.partitions
                -rwxrwxrwx 1 root root 0 Aug 13 20:28 d1.original.swapuuids
                foguser@fogserver:/images$

                1 Reply Last reply Reply Quote 0
                • K
                  Keifer
                  last edited by Aug 16, 2014, 12:06 AM

                  [ATTACH=full]1295[/ATTACH] [ATTACH]1295[/ATTACH]

                  [url=“/_imported_xf_attachments/1/1295_FOG Server.png?:”]FOG Server.png[/url]

                  1 Reply Last reply Reply Quote 0
                  • C
                    cadyfish
                    last edited by Aug 16, 2014, 12:24 AM

                    [quote=“Keifer, post: 35350, member: 25622”]Here is the results.

                    foguser@fogserver:/$ ls -la /images/
                    total 20
                    drwxrwxrwx 5 root root 4096 Aug 13 20:50 .
                    drwxr-xr-x 26 root root 4096 Aug 9 16:37 …
                    drwxrwxrwx 2 root root 4096 Aug 13 20:50 dev
                    -rwxrwxrwx 1 root root 0 Aug 9 16:18 .mntcheck
                    drwxrwxrwx 2 root root 4096 Aug 9 16:18 postdownloadscripts
                    drwxrwxrwx 2 root root 4096 Aug 13 20:28 vistatest2

                    foguser@fogserver:/images$ ls -la vistatest2
                    total 2718156
                    drwxrwxrwx 2 root root 4096 Aug 13 20:28 .
                    drwxrwxrwx 5 root root 4096 Aug 13 20:50 …
                    -rwxrwxrwx 1 root root 2783365986 Aug 13 20:43 0800276c12c4.000
                    -rwxrwxrwx 1 root root 1 Aug 13 20:28 d1.fixed_size_partitions
                    -rwxrwxrwx 1 root root 15 Aug 13 20:28 d1.original.fstypes
                    -rwxrwxrwx 1 root root 259 Aug 13 20:28 d1.original.partitions
                    -rwxrwxrwx 1 root root 0 Aug 13 20:28 d1.original.swapuuids
                    [EMAIL]foguser@fogserver:/images$[/EMAIL][/quote]

                    Based on the .swapuuids it looks like your vistatest2 image operating system is set to linux instead of Windows Vista. Go into image management and change this and then re-upload. For a windows image you should see a d1.mbr file

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Aug 16, 2014, 12:34 AM

                      1.2.0 had a known issue with Vista images in specifics. The extra files are to be expected but I forgot about vista when recoding all of the things. I’m sorry. I believe it was fixed in 2096 or 2097 of the svn trunk though.

                      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
                        Keifer
                        last edited by Aug 16, 2014, 12:39 AM

                        I know it was set to vista when I uploaded it. I will try changing the settings to see if it will change how it uploads. thanks

                        1 Reply Last reply Reply Quote 0
                        • K
                          Keifer
                          last edited by Aug 16, 2014, 1:05 AM

                          I set it to “Windows Vista” it still uploaded the same way. If it is just something with vista then I will go a head and try windows 7 at work. I am testing it for a windows 7 environment anyway. Hope that works better! 🙂

                          1 Reply Last reply Reply Quote 0
                          • C
                            cadyfish
                            last edited by Aug 16, 2014, 1:53 AM

                            Or you could install the fog latest version from code according to Tom this has been resolved:

                            sudo apt-get install subversion
                            svn checkout [url]http://svn.code.sf.net/p/freeghost/code/trunk[/url] freeghost-code
                            cd freeghost-code/bin
                            sudo ./installfog.sh

                            I have been using one with version 2196 and a couple of others with 1.2

                            1 Reply Last reply Reply Quote 0
                            • K
                              Keifer
                              last edited by Aug 16, 2014, 2:05 AM

                              Thanks 🙂

                              1 Reply Last reply Reply Quote 0
                              • K
                                Keifer
                                last edited by Aug 16, 2014, 3:29 PM

                                I tried the commands.

                                apt-get install subversion
                                svn checkout

                                Do I need to link up a different source or repository?

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cadyfish
                                  last edited by Aug 16, 2014, 3:51 PM

                                  Each line needs to be entered together
                                  [QUOTE]
                                  [CODE]sudo apt-get install subversion
                                  svn checkout http://svn.code.sf.net/p/freeghost/code/trunk freeghost-code
                                  cd freeghost-code/bin
                                  sudo ./installfog.sh[/CODE]
                                  [/QUOTE]

                                  Otherwise go to [url]http://sourceforge.net/p/freeghost/code/HEAD/tree/[/url] and click on Download Snapshot and navigate to the bin folder and run the last command

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    Keifer
                                    last edited by Aug 17, 2014, 12:48 AM

                                    I updated to the latest release of the server. (Version 2201) It created the image into one file. When I try to do a download. It comes up with a deployment screen, then says “error” at the bottom then reboots.

                                    foguser@fogserver:/images$ ls -la
                                    total 2718152
                                    drwxrwxrwx 4 root root 4096 Aug 16 20:36 .
                                    drwxr-xr-x 26 root root 4096 Aug 16 19:21 …
                                    drwxrwxrwx 2 root root 4096 Aug 16 20:36 dev
                                    -rwxrwxrwx 1 root root 0 Aug 9 16:18 .mntcheck
                                    drwxrwxrwx 2 root root 4096 Aug 9 16:18 postdownloadscripts
                                    -rwxrwxrwx 1 root root 2783365995 Aug 16 20:36 vistatest4
                                    foguser@fogserver:/images$

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      cadyfish
                                      last edited by Aug 17, 2014, 3:26 PM

                                      What is the output of
                                      [CODE]ls -la /images/vistatest4[/CODE]

                                      Have you tried a different OS yet? Maybe vista issue was not resolved I am not sure I have not used it with fog.

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        Tom Elliott
                                        last edited by Aug 18, 2014, 2:36 AM

                                        Can you try running the upload task in “Download - Debug” mode? To create the “debug” task, cancel the current download task if it’s not already been done. Go to host, list or search for the host you want to upload the task from. Click on the host and go to Basic tasks, choose Advanced, then click and schedule the Download - Debug task. Then boot the host.

                                        When you start the host, the task will not automatically start. At the “command” prompt type fog and hit enter. Then the task will start as normal. There will likely be pauses to help in the debugging process and where things are failing. Can you provide more information using this method?

                                        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
                                        • J
                                          Josh Scoville
                                          last edited by Aug 19, 2014, 1:45 PM

                                          I am having a similar issue here in that I upload an image, but I can’t download/deploy it. Last Friday when I tried, I attempted download, but teh old image deployed, even after deleting the files (I thought_ in the web portal. Today, I deleted the image and checked the box to delete files, so I could reupload. When I console into the server, I still see the files in /images/LatitudeE5510 which is where it says the image should be. This time I deleted through the web portal, then went in via SSH and removed the files and the directory inside /images. I double checked using ls command and the directory was gone. So I reuploaded my syspreped image after creating it again. Now when I go to deploy the image, it says it can’t find the image store. The LatitudeE5510 directory has not been created inside /images.

                                          I did not previously know about the /images/dev directory and when I look inside there, I see several MAC addresses, one being my upload machine.

                                          Is something not moving these files where they should be or something? I had previously looked at the permissions and /images had group and owner and everyone having read/write acccess.

                                          Just wondering where my images are and why I can’t deploy? I am running version 1.2 on Ubuntu server.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            9/33
                                            Last post

                                          238

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project