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

    Could Not Mount Image

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    8
    27
    27.2k
    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.
    • B
      bberrelez
      last edited by

      I am unable to get an image to upload. I’ve tried this from two machines and I get the same results.

      I’m running on CentOS 7
      Version: 6132
      bzImage Version: 4.4.0
      bzImage32 Version: 4.4.0

      All it says is:

      An error has been detected!
      Could not mount images folder (/bin/fog.upload)
      Computer will reboot in 1 minute.

      The host register just fine. I’ve attached a screenshot of the error and the task that is running

      0_1454023603518_Capture.PNG

      ![1_1454023576157_image1.JPG](Uploading 100%) ![0_1454023576157_Capture.PNG](Uploading 100%)
      0_1454023650122_image1.JPG

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

        As you’re in debug, I’m going to guess you’re current working directory (found with pwd) is in /images on the client machine.

        Run:

        cd
        fog
        

        You should be good.

        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

        B 1 Reply Last reply Reply Quote 0
        • B
          bberrelez @Tom Elliott
          last edited by

          @Tom-Elliott
          I run that from the machine connecting to the FOG server?

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

            @bberrelez Yes.

            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/

            B 1 Reply Last reply Reply Quote 0
            • B
              bberrelez @Wayne Workman
              last edited by

              @Wayne-Workman
              Tried that. Nothing happened.

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

                @bberrelez Teamveiwer maybe?
                Hit me on chat.

                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

                B 1 Reply Last reply Reply Quote 0
                • B
                  bberrelez @Tom Elliott
                  last edited by

                  @Tom-Elliott said:

                  Teamveiwer

                  That would be awesome! Thanks! I could do a teamviewer session. Are you just wanting to see the management console or are you wanting to actually get on the linux box?

                  1 Reply Last reply Reply Quote 0
                  • J
                    jgurka
                    last edited by jgurka

                    I ran into this before too. Check that nfs-server is running by running:

                    systemctl status nfs-server
                    

                    If it’s not, you can manually start it with:

                    systemctl start nfs-server
                    

                    This enables the service to start automatically on next boot, but it should already be enabled…

                    systemctl enable nfs-server
                    

                    Which brings me to telling you to follow this guide on delaying the FOG services to fix the problem:
                    https://wiki.fogproject.org/wiki/index.php/Fedora_21_Server#Set_the_FOG_services_to_start_30_seconds_after_boot

                    I needed to also add “systemctl start FOGPingHosts” to the rc.local on my CentOS 7 installation.

                    Two commands you can use to easily see what is/isn’t running on your CentOS 7 installation are:

                    pstree
                    

                    &

                    systemctl list-units --type=service
                    
                    B 1 Reply Last reply Reply Quote 2
                    • V
                      Vasahond
                      last edited by

                      Hello – I’m having a similar issue. I don’t want to hijack the thread, but I have checked to make sure the NFS server service has been started, and it has. If I boot into debug mode and check the current working directory, I am in the root directory – there seems to be no /images path. Again, not sure if it’s related, but I’m having the same problem.

                      J Wayne WorkmanW 2 Replies Last reply Reply Quote 0
                      • J
                        jgurka @Vasahond
                        last edited by

                        @Vasahond

                        Also ensure that all of the FOG services are running by entering:

                        systemctl list-units --type=service
                        

                        You should see see all five Fog services in my screenshot as loaded, active, and running:

                        alt text

                        Another issue I’ve seen is the nfs-server service will show that it is running, but will be inactive and exited. Also double check that isn’t the case, because it will at a glance look as though it is loaded when you check status.

                        To verify the Images directory exists, try the following:

                        cd
                        cd /images
                        ls
                        

                        You should be within the directory and able to see at least a directory called dev and postdownloadscripts.

                        V 1 Reply Last reply Reply Quote 1
                        • V
                          Vasahond @jgurka
                          last edited by

                          @jgurka, here is a list of my running services. A few are stopped; do you suppose these are crucial processes?
                          0_1454444404023_Capture3.PNG

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jgurka @Vasahond
                            last edited by

                            @Vasahond

                            It looks like you’re on CentOS 6 – I was assuming you were on 7 earlier. Is this the latest trunk build of FOG, btw?

                            I don’t think the stopped FOG services are crucial for what your problem is, but I’d start them back up anyway:

                            service FOGPingHosts start
                            service FOGSnapinReplicator start
                            

                            It looks like you have the IPv6 firewall still enabled…this might potentially be causing the problem? I’d go ahead and disable it:

                            service ip6tables stop
                            chkconfig ip6tables off
                            

                            Try it again and see if it made any difference.

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

                              @Vasahond said:

                              I am in the root directory – there seems to be no /images path.

                              Really? If that’s the case, that’s almost surely the problem. Can you please post the output of find / | grep /dev/.mntcheck

                              Also, what output/errors do you get when you re-run the installer? You’ve also not specifically stated what version of FOG you’re using, we need this information as well.

                              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/

                              J 1 Reply Last reply Reply Quote 1
                              • J
                                jgurka @Wayne Workman
                                last edited by

                                @Wayne-Workman

                                Vasahond’s running services output seems to show it as existing and being mounted via NFS:

                                Configured NFS mountpoints:
                                /images
                                /images/dev
                                Active NFS mountpoints:
                                /images
                                /images/dev
                                
                                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                • Wayne WorkmanW
                                  Wayne Workman @jgurka
                                  last edited by Wayne Workman

                                  @jgurka Yeah I saw that, but the directory could still be missing. I’m most concerned with him not seeing a /images directory on his server.

                                  As a test, I just created a directory called /image and exported it in /etc/exports, and restarted rpcbind and nfs-server and saw that NFS was running fine, I then deleted the /image directory and then again checked NFS… still running fine. 😕 You’ll also hopefully understand that I have been bitten many times by making assumptions about things. No telling what the guy has copy/pasted into his server trying to get it to work.

                                  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/

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    jgurka @Wayne Workman
                                    last edited by

                                    @Wayne-Workman

                                    I definitely get where you’re coming from. 🙂

                                    @Vasahond

                                    You can try running this to see whether or not /images actually exists:

                                    [ -d /images ] && echo 'Directory Found' || echo 'Directory /images not found'
                                    

                                    You should see "Directory Found’ if it does in fact exist.

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

                                      @jgurka People like @george1421 suggest to put the images in /opt/fog/images, which is why I suggested searching for /dev/.mntcheck 😉

                                      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
                                      • P
                                        plegrand
                                        last edited by

                                        Hello, i think i’ve got the same problem except i made modification on the web interface :
                                        i didnt want the “images” directory be at the root (/images)
                                        then i copy the images directory into /home/images.

                                        Then i modify the image path on the web interface, i thought it would modify the export file also but it seems not.

                                        then i had to modify manualy the export file. Now it works fine.
                                        Could it be the problem ?

                                        J 1 Reply Last reply Reply Quote 1
                                        • J
                                          jgurka @plegrand
                                          last edited by

                                          @plegrand

                                          The images directory needs to have full r/w/x permissions in order for FOG to use it – did you make sure to change the permissions when you created the new directory and copied the contents of the old /images?

                                          To check the directory permissions, run the following:

                                          cd /home
                                          ls -la
                                          #You want permissions on the new images directory to be drwxrwxrwx and also on sub-directories
                                          

                                          To enable full r/w/x permissions on the folder, run the following:

                                          chmod -R 777 /home/images
                                          #-R will run it recursively to apply the permission changes to sub-directories as well as the top directory
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • B
                                            bberrelez @jgurka
                                            last edited by

                                            @jgurka

                                            I tried this and still nothing. I did find that I had an incorrect path list on the the image path under Storage management. I created a directory here: /home/fog/Images, applied the appropriate permissions and corrected the path under the storage management.

                                            Still have the same message appearing.
                                            Could not mount images folder (/bin/fog.upload)

                                            Wayne WorkmanW Tom ElliottT 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            213

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project