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

    Image Deployment Failure

    Scheduled Pinned Locked Moved
    General Problems
    3
    18
    2.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.
    • george1421G
      george1421 Moderator @zfeng
      last edited by

      @zfeng said in Image Deployment Failure:

      That means I cannot revert the version of fog like 1.5.6 or earlier to resolve the issue?

      Correct, its a change that microsoft did to the file system. Only the newer version addresses this change.

      For the next release, do you have a timeline for this?

      Right now we were hoping before the summer break but it might not happen because the active developers have other projects in the works and then on holiday over the summer. So fall 2022 is probably realistic. Switching to the dev branch is the recommended solution.

      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
      • george1421G
        george1421 Moderator @zfeng
        last edited by

        @zfeng said in Image Deployment Failure:

        must follow what Microsoft changes, right

        Yes Microsoft is the driving force in the computer industry. Where they move the vendors will follow if they want to sell computers.

        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!

        Z 1 Reply Last reply Reply Quote 0
        • Z
          zfeng @george1421
          last edited by

          @george1421 when you say the dev branch, I believe you mean in this link.

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @zfeng
            last edited by george1421

            @zfeng The easiest way to upgrade is if you installed fog using the git method. If yes then do the following.

            Change into the directory where the fogproject folder is. Depending on the instructions you followed it may be in /root or /opt. You will need to be root to run the following commands.

            Lets assume the fogproject folder is in the /root directory.

            cd /root/fogproject
            git pull
            git checkout dev-branch
            git pull
            cd bin
            ./installfog.sh
            

            The fog installer will use all of the previous answers you provided when fog was installed so it will just upgrade FOG. Once the update is done confirm that FOG is at version 1.5.9.110 or later.

            Then I strongly recommend you do the following to bring your fog environment up to get the latest hardware support.

            1. Upgrade the FOS Linux kernel to the 5.15.x version by using the Web UI -> FOG Configuration -> Kernel update. Download both the 32 bit and 64 bit versions of 5.15.x latest version.
            2. Upgrade iPXE to the latest release: https://forums.fogproject.org/topic/15826/updating-compiling-the-latest-version-of-ipxe

            That will put your fog install in the best position to see new (contemporary) hardware.

            Now when FOG 1.5.10 is released you will need to revert your fogproject folder back to the master branch. You simply do the same as before but select the master branch.

            cd /root/fogproject
            git pull
            git checkout master
            git pull
            cd bin
            ./installfog.sh
            

            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!

            Z 1 Reply Last reply Reply Quote 0
            • Z
              zfeng @george1421
              last edited by

              @george1421 the dev ranch seems not solving the image deployment issue.

              1 Reply Last reply Reply Quote 0
              • Z
                zfeng @george1421
                last edited by

                @george1421 when you have a moment, can you look at my previous comment? thanks

                george1421G 1 Reply Last reply Reply Quote 0
                • george1421G
                  george1421 Moderator @zfeng
                  last edited by

                  @zfeng well if you are still getting the error in your initial post and you have the latest version of FOG and the FOS Linux kernel then lets do what the error messages tells you because it appears your disk structure seems inconsistent.

                  Schedule a new capture task, but before you hit the schedule task button, tick the debug checkbox. Now pxe boot the target computer. After a few screens of text you need to clear with the enter key. Now you will be dropped to the linux command prompt. Now run that command e2fsck -f /dev/sda2 that is roughly the same as chkdsk is to Windows. Report the results here. According to the error there is something wrong with partition 2 on that disk.

                  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!

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    zfeng @george1421
                    last edited by zfeng

                    @george1421 Sorry for this late message. Just want to rephrase what we discuss little. The capturing task works fine that it allows me to capture the image properly. The problem is the deployment of image.I just tried deploying image and used the instruction u provided on both computer that works and computer that does not. The outputs from both computers are:

                    Computer that does not work with image deployment:
                    Pass 1: Checking inodes, blocks, and sises
                    Pass 2: Checking directory structure
                    Pass 3: Checking directory connectivity
                    Pass 4: Checking reference counts
                    Pass 5: Checking group summary information
                    /dev/sda2: {certain number}/{certain number} files (0.3% non-contiguous)

                    Computer that works with image deployment:
                    Pass 1: Checking inodes, blocks, and sises
                    Pass 2: Checking directory structure
                    Pass 3: Checking directory connectivity
                    Pass 4: Checking reference counts
                    Pass 5: Checking group summary information
                    /dev/sda2: {certain number}/{certain number} files (0.2% non-contiguous)

                    Basically, the outputs are the same except that percentage of non-contiguous

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by Sebastian Roth

                      @zfeng Probably best if you can provide a picture of the actual error on screen. More often than not we get valuable information from the picture that is missing if you just type the error message from memory.

                      From what you posted initially I would imagine this is happening within the expandPartition function in funcs.sh (line 242). But as you see in the code a e2fsck is done right before it tries to expand the filesystem using resize2fs. So the error message “please run e2fsck -f /dev/sda2 first” actually comes from the resize2fs tool itself and is not something being proposed by the FOS script code.

                      I can’t give you an answer on why this fails on one of your systems but not on the other. Though I can imagine a picture with the error on screen might shed a light on this.

                      @zfeng said:

                      … used the instruction u provided on both computer that works and computer that does not.

                      As well you might give us some more details on those two computers. Are those very similar or do they have totally different specs like different size disk?

                      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

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zfeng @Sebastian Roth
                        last edited by

                        @sebastian-roth I cannot update the image here as the platform keeps saying it is too large. Here is the link for it

                        https://drive.google.com/file/d/1J8FarpqD-0dhHdWd0BCSairqnL84e5Wa/view?usp=sharing

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Sebastian Roth

                          @zfeng Thanks for the picture. Unfortunately there is no obvious explaination jumping at me.

                          You said one PC deploys fine but the other one runs into this problem. Can you please tell us about those two PCs. Are they exactly the same hardware/disk drive or do the have different hardware?

                          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

                          Z 1 Reply Last reply Reply Quote 0
                          • Z
                            zfeng @Sebastian Roth
                            last edited by

                            @sebastian-roth I successfully built image from the type of computer that don’t work on image deployment. It seems to me that there must be some kind of hardware config that prevents the image deployment to expand the disk properly

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post

                            208

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project