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

Image Path Change

Scheduled Pinned Locked Moved Solved
FOG Problems
3
23
4.7k
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.
  • P
    pnwbsi
    last edited by Aug 14, 2019, 6:58 PM

    I have an issue where I have to change the image path to get fog to work.

    If I am deploying an image I change the image path to /images/dev. If I am capturing an image I have to change the image path to /images/.

    What can I do to avoid editing the storage path everytime?

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by Aug 14, 2019, 7:13 PM

      ?? Where are you changing the path value. You should NEVER need to change path

      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!

      1 Reply Last reply Reply Quote 0
      • P
        pnwbsi
        last edited by Aug 15, 2019, 11:10 AM

        Under Storage Management > Storage Node > Image Path.

        Capture worked fine with /Images as the path. But I could not figure out why deploy did not work. I changed the Image path to /Images/Dev and it worked.

        G 1 Reply Last reply Aug 15, 2019, 12:23 PM Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Aug 15, 2019, 12:20 PM

          @pnwbsi said in Image Path Change:

          Capture worked fine with /Images as the path. But I could not figure out why deploy did not work. I changed the Image path to /Images/Dev and it worked.

          You have things mixed up here! Capture should go to /images/dev and deploy comes from /images! Please run cat /etc/exports on your FOG server and post output here.

          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

          P 1 Reply Last reply Aug 15, 2019, 12:30 PM Reply Quote 0
          • G
            george1421 Moderator @pnwbsi
            last edited by Aug 15, 2019, 12:23 PM

            @pnwbsi Unless someone changed the exports command, /images/dev is exported as read-write and /images is read-only. It should not be possible to upload an image to /images.

            Would you also include a snapshot of the configuration page where the image path is defined?

            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!

            1 Reply Last reply Reply Quote 0
            • P
              pnwbsi @Sebastian Roth
              last edited by Aug 15, 2019, 12:30 PM

              @Sebastian-Roth
              /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)

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Aug 15, 2019, 12:48 PM

                @pnwbsi said in Image Path Change:

                I have an issue where I have to change the image path to get fog to work.

                Maybe you want to share more information on why you got the impression you had to change the path in the first place. Please post a picture of the error you see/saw.

                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
                • P
                  pnwbsi
                  last edited by Aug 15, 2019, 1:27 PM

                  Yes, sorry about that.

                  Updated with pictures:
                  Capturing image with image path as /images/dev/ — I receive the could not mount images folder error. PICTURE1.jpg

                  Deploying image with image path as /images/ ---- I receive the unable to locate image store.
                  PICTURE2.jpg

                  Early on in troubleshooting I discovered that if I change the storage node image path it would work. So now I have come to find a solution to avoid changing the image path because I know I have a setting wrong somewhere in fog.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Aug 15, 2019, 1:38 PM

                    @pnwbsi What happens if you set it to /images without the trailing slash?

                    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
                    • P
                      pnwbsi
                      last edited by Aug 15, 2019, 1:51 PM

                      That does not change anything. Same issues occur with /images or /images/

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Aug 15, 2019, 5:23 PM

                        @pnwbsi Please run ls -al /images on your FOG server and post the full output you get here!

                        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

                        G 1 Reply Last reply Aug 15, 2019, 7:28 PM Reply Quote 0
                        • P
                          pnwbsi
                          last edited by Aug 15, 2019, 6:51 PM

                          20190815_144933.jpg

                          1 Reply Last reply Reply Quote 0
                          • G
                            george1421 Moderator @Sebastian Roth
                            last edited by Aug 15, 2019, 7:28 PM

                            @Sebastian-Roth Are we running into the mount timeout issue we’ve tried to debug before? I also wonder if we could add a bit more debugging information in that unable to find image store message, similar to the when the path was set incorrectly.

                            Let me see if I can come up with a patched fog.upload

                            @pnwbsi if you are willing to help us test this, hopefully we can squash this issue once and for all.

                            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!

                            P 1 Reply Last reply Aug 16, 2019, 12:22 PM Reply Quote 1
                            • S
                              Sebastian Roth Moderator
                              last edited by Aug 16, 2019, 4:16 AM

                              @george1421 Definitely a good idea.

                              @pnwbsi Which version of FOG do you currently run?

                              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

                              P 2 Replies Last reply Aug 16, 2019, 12:25 PM Reply Quote 0
                              • P
                                pnwbsi @george1421
                                last edited by Aug 16, 2019, 12:22 PM

                                @george1421 I am willing to help in anyway!

                                G 1 Reply Last reply Aug 16, 2019, 2:05 PM Reply Quote 0
                                • P
                                  pnwbsi @Sebastian Roth
                                  last edited by Aug 16, 2019, 12:25 PM

                                  @Sebastian-Roth I am running Fog 1.5.4

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    pnwbsi @Sebastian Roth
                                    last edited by Aug 16, 2019, 1:36 PM

                                    @Sebastian-Roth @george1421 An important thing to add. I just saw that if I have the image path as /Images/Dev/ and I capture (which fails) it claims it can not find the image folder /Images/Dev/Dev. So it is adding an extra /Dev/ in there.

                                    G 1 Reply Last reply Aug 18, 2019, 11:31 PM Reply Quote 0
                                    • G
                                      george1421 Moderator @pnwbsi
                                      last edited by Aug 16, 2019, 2:05 PM

                                      @pnwbsi said in Image Path Change:

                                      I am willing to help in anyway!

                                      OK I’m going to work on a patched upload file to hopefully give us a bit more details and I’m going to add in a mount delay timeout just to be sure. I should have a little time later this AM to work on it. I’ll follow up with instructions later.

                                      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!

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        george1421 Moderator @pnwbsi
                                        last edited by george1421 Aug 18, 2019, 6:02 PM Aug 18, 2019, 11:31 PM

                                        @pnwbsi I think we have a new fog.download file with some additional debugging output. This file will not fix the issue, but hopefully it will give us an idea what’s happening. We’ve identified the point in the code where it could be failing.

                                        I have this debug mode fog.download file here:
                                        https://drive.google.com/open?id=1yppCONpwr6zCOXA541rhOfiQNb-LoTYS

                                        What I want you to do is download this new fog.download file. Then I want you to follow these instructions to setup a postinit patch. What we are going to do is dynamically replace the current fog.download in FOS Linux with the debug patched version.

                                        https://forums.fogproject.org/topic/13500/dynamically-patching-fos-using-a-postinit-script

                                        You will follow the instructions but replace the top lines to this

                                        # Current File in FOS Linux to be replaced
                                        currfile="/bin/fog.download"
                                        
                                        #Patch file to send to FOS Linux virtual hard drive
                                        newfile="${postinitpath}fog.download"
                                        
                                        

                                        So the testing protocol I want you to use is this:

                                        1. Confirm you are still getting the error in the picture about unable to mount images folder. Then power off the target computer. Don’t touch the web ui, just power off the target computer.
                                        2. Setup the patching environment per the tutorial
                                        3. Download the fog.download file from my google drive and move it into the postinit directory on the fog server.
                                        4. reboot the target computer
                                        5. When the target computer throws the error again, snap a clear picture of the debugging information. This output will help us understand why…

                                        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!

                                        P 1 Reply Last reply Aug 19, 2019, 2:28 PM Reply Quote 0
                                        • P
                                          pnwbsi @george1421
                                          last edited by Aug 19, 2019, 2:28 PM

                                          @george1421 I followed your instructions but I am still getting the same error page, not a different debug one. Here is the postinit script I made. I did notice that I do not have a fog.download in my bin and I saw that the script replaces that.

                                          #Current File in FOS Linux to be replaced
                                          currfile="/bin/fog.download"
                                          
                                          #Patch file to send to FOS Linux virtual hard drive
                                          newfile="${postinitpath}fog.download"
                                          
                                          # ---------------------------------------------
                                          # DO NOT edit any text below this line
                                          # ---------------------------------------------
                                          . /usr/share/fog/lib/funcs.sh
                                          
                                          echo "Testing path for our fixed file at ${newfile}"
                                          debugPause
                                          
                                          # Test path and run copy if found and matched.
                                          if [[ -r $newfile ]]; then
                                              echo "Found source file preparing to copy"
                                              debugPause
                                              cp -f $newfile $currfile >/dev/null 2>&1
                                              [[ ! $? -eq 0 ]] && echo "Copy Failed" || echo "Copy Succeeded"
                                              debugPause
                                          else
                                              echo "Failed to find file [${newfile}] sorry. Copy Failed"
                                              debugPause
                                          fi
                                          
                                          . ${postinitpath}fog.patch.man.reg
                                          
                                          G 2 Replies Last reply Aug 19, 2019, 4:18 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            6/23
                                            Last post

                                          147

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project