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

Fog download image fails

Scheduled Pinned Locked Moved Unsolved
FOG Problems
4
20
3.0k
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.
  • W
    wlsnfmly
    last edited by Feb 14, 2017, 9:31 PM

    Server
    • FOG Version: * OS: 1.3.4
    Client
    • Service Version:
    • OS: centos 7
    Description

    After recently upgrading to the latest stable release, our imaging services no longer work. The system attempts to image after host registration, and fails at downloading image. The error received is states a permissions error for /bin/fog.download, but the system was fully operational before the upgrade, and no credentials have changed.

    1 Reply Last reply Reply Quote 0
    • J
      Jaymes Driver Developer
      last edited by Feb 15, 2017, 12:56 PM

      Have you tried a chmod command to change the permissions on that folder?

      WARNING TO USERS: My comments are written completely devoid of emotion, do not mistake my concise to the point manner as a personal insult or attack.

      W 1 Reply Last reply Feb 15, 2017, 5:00 PM Reply Quote 0
      • W
        wlsnfmly
        last edited by Feb 15, 2017, 4:58 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • W
          wlsnfmly @Jaymes Driver
          last edited by Feb 15, 2017, 5:00 PM

          @Jaymes-Driver The problem is that the file doesn’t exist. In checking the /bin folder for a file called fog.download, there is nothing there. nor is there a fog.upload folder either.

          T G 2 Replies Last reply Feb 15, 2017, 5:05 PM Reply Quote 0
          • T
            Tom Elliott @wlsnfmly
            last edited by Feb 15, 2017, 5:05 PM

            @wlsnfmly The fog.* scripts exist in the init’s not on your physical fog server.

            He’s referring to your images directory though in regards to permissions.

            Please run (on the fog server):

            sudo touch /images/.mntcheck
            sudo touch /images/dev/.mntcheck
            sudo chmod -R 777 /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! 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

            W 1 Reply Last reply Feb 15, 2017, 5:12 PM Reply Quote 0
            • W
              wlsnfmly @Tom Elliott
              last edited by Feb 15, 2017, 5:12 PM

              @Tom-Elliott Did that, no luck, here is a screen shot of the error we are receiving. 0_1487178729208_image2.png

              1 Reply Last reply Reply Quote 0
              • G
                george1421 Moderator @wlsnfmly
                last edited by george1421 Feb 15, 2017, 11:13 AM Feb 15, 2017, 5:12 PM

                @wlsnfmly In addition to what Tom posted. From the fog server I would run the following command to confirm the nfs shares are in place showmount -e 127.0.0.1 The output should show you both /images and /images/dev

                <edit>Based on your last post, I’m more interested in seeing the output of the showmount command than before</edit>

                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!

                W 1 Reply Last reply Feb 15, 2017, 5:15 PM Reply Quote 0
                • W
                  wlsnfmly @george1421
                  last edited by Feb 15, 2017, 5:15 PM

                  @george1421 It does show both directories. 0_1487178955240_Capture.PNG

                  G 1 Reply Last reply Feb 15, 2017, 5:17 PM Reply Quote 0
                  • G
                    george1421 Moderator @wlsnfmly
                    last edited by george1421 Feb 15, 2017, 11:18 AM Feb 15, 2017, 5:17 PM

                    @wlsnfmly Well that explains a bit more of what is going on.

                    On your FOG server you have /images and /images/dev shared.

                    But your error message says the client computer can’t connect to 10.1.20.127:/storage1 (you are trying to connect to the /storage1 share on the device 10.1.20.127)

                    What is the host 10.1.20.127?

                    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!

                    W 1 Reply Last reply Feb 15, 2017, 5:28 PM Reply Quote 1
                    • W
                      wlsnfmly @george1421
                      last edited by Feb 15, 2017, 5:28 PM

                      @george1421 that is my fog servers ip address

                      G 1 Reply Last reply Feb 15, 2017, 5:30 PM Reply Quote 0
                      • G
                        george1421 Moderator @wlsnfmly
                        last edited by george1421 Feb 15, 2017, 11:31 AM Feb 15, 2017, 5:30 PM

                        @wlsnfmly Ok then, please tell me why the client wants to connect to <fog_server_ip>:/storage1 but you only are sharing <fog_server_ip>:/images and <fog_server_ip>:/images/dev from your fog server?

                        It sounds like you made a change to the fog server’s storage node settings. What were you trying to accomplish. (your answer will help us pick the best path for you).

                        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!

                        W 1 Reply Last reply Feb 15, 2017, 5:32 PM Reply Quote 0
                        • W
                          wlsnfmly @george1421
                          last edited by Feb 15, 2017, 5:32 PM

                          @george1421 I didn’t personally make any changes during the upgrade. However, I did upgrade from 1.2.0 to 1.3.4, would that have caused the issue? is there a quick fix? the permissions on storage1 show 777 and images are the same

                          G 1 Reply Last reply Feb 15, 2017, 5:33 PM Reply Quote 0
                          • G
                            george1421 Moderator @wlsnfmly
                            last edited by george1421 Feb 15, 2017, 11:34 AM Feb 15, 2017, 5:33 PM

                            @wlsnfmly So you have a directory off the root of your fog server with /storage1 and /storage1/dev names?

                            Could you post s screen shot of these commands?
                            ls -la /
                            ls -ls /storage1

                            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!

                            W 1 Reply Last reply Feb 15, 2017, 5:39 PM Reply Quote 0
                            • W
                              wlsnfmly @george1421
                              last edited by Feb 15, 2017, 5:39 PM

                              @george1421 Here are two images to check. One shows why it is looking for those files, from the fog config page. The second is the one you have requested. 0_1487180296194_Capture.PNG 0_1487180345448_Capture.PNG

                              G 1 Reply Last reply Feb 15, 2017, 5:42 PM Reply Quote 0
                              • G
                                george1421 Moderator @wlsnfmly
                                last edited by Feb 15, 2017, 5:42 PM

                                @wlsnfmly Switching to chat, look at the little speech bubble up by the FOG tool tray at the top of the browser window.

                                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!

                                G 1 Reply Last reply Feb 15, 2017, 5:44 PM Reply Quote 0
                                • G
                                  george1421 Moderator @george1421
                                  last edited by Feb 15, 2017, 5:44 PM

                                  @george1421 Might I ask you to post the output of this command too?
                                  df -h I want to make sure that /storage1 share isn’t being used for something else.

                                  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!

                                  W 1 Reply Last reply Feb 15, 2017, 5:44 PM Reply Quote 0
                                  • W
                                    wlsnfmly @george1421
                                    last edited by Feb 15, 2017, 5:44 PM

                                    @george1421 0_1487180685990_Capture.PNG

                                    G 1 Reply Last reply Feb 15, 2017, 5:48 PM Reply Quote 0
                                    • G
                                      george1421 Moderator @wlsnfmly
                                      last edited by Feb 15, 2017, 5:48 PM

                                      @wlsnfmly Ah ok, just a suspected. You have your images on a different drive than where the OS is stored (that is a good thing).

                                      To fix your issue then: edit this file /etc/exports

                                      Change the 2 lines in there from /images to /storage1

                                      So your lines should look like this:

                                      /storage1 *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)
                                      /storage1/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)
                                      

                                      Save the file then run this command: sudo exportfs -a
                                      Then confirm that the shares have been changed with: showmount -e 127.0.0.1

                                      The shares should have now changes from /images to /storage1

                                      If that is the case then restart imaging your target computer.

                                      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!

                                      W G 2 Replies Last reply Feb 15, 2017, 5:53 PM Reply Quote 0
                                      • W
                                        wlsnfmly @george1421
                                        last edited by Feb 15, 2017, 5:53 PM

                                        @george1421 This has fixed the issue at hand. Thank you for your assistance.

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          george1421 Moderator @george1421
                                          last edited by Feb 15, 2017, 5:55 PM

                                          @george1421 If this all proves out to work there are two last things you need to to.

                                          1. Edit the file /opt/fog/.fogsettings There is a line in there called listed as
                                          storageLocation='/images'
                                          

                                          You need to change it to:

                                          storageLocation='/storage1'
                                          

                                          Then run the installer program again (once your imaging is complete). That will just realign everything for you. When the update is done, reboot the fog server. When the fog server comes up reconfirm that showmount -e 127.0.0.1 still shows your /storage1 share as being shared.

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

                                          212

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project