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

Development FOG not capturing image - PartClone update

Scheduled Pinned Locked Moved Solved
FOG Problems
5
36
5.5k
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.
  • T
    ty900000 @Tom Elliott
    last edited by Jan 13, 2020, 3:54 PM

    @Tom-Elliott

    I pulled the latest init and got a different error this time

    FOG.PNG

    T 1 Reply Last reply Jan 13, 2020, 4:00 PM Reply Quote 0
    • T
      Tom Elliott @ty900000
      last edited by Jan 13, 2020, 4:00 PM

      @ty900000 Okay, do you mind running the capture using Debug? Cancel the task, and go to create it like you normally would, but before submitting it, there’s a checkbox that says Schedule as Debug.

      It does mean a little extra work for you in that you will need to press enter twice to get to the shell.

      At the shell type:
      fog

      Then you will need to press enter until the image completes. This method should at least allow you to capture the image. This is why I was adding the sleeps between. I see, now, that it’s not anything to do with that. I can’t imagine it’s the -a0 though. (I suppose maybe but I’m not quite sure right now).

      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

      Q 1 Reply Last reply Jan 13, 2020, 4:07 PM Reply Quote 0
      • Q
        Quazz Moderator @Tom Elliott
        last edited by Jan 13, 2020, 4:07 PM

        @Tom-Elliott I think it’s more likely to be caused by partclone.imager being broken in current 0.3.12

        Note how the detected size of the partition is 0 by partclone.

        T 1 Reply Last reply Jan 13, 2020, 4:08 PM Reply Quote 0
        • T
          Tom Elliott @Quazz
          last edited by Tom Elliott Jan 13, 2020, 10:10 AM Jan 13, 2020, 4:08 PM

          @Quazz Yeah, but it’s broke to the -a0 and quite possibly the -c option I think.

          It’s strange as the -c seems almost redundant here.

          Though, when I ran into the issue (which prompted me to try running in debug so I could more directly narrow down the issue), from debug everything worked without an issue.

          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

          Q 1 Reply Last reply Jan 13, 2020, 4:09 PM Reply Quote 0
          • Q
            Quazz Moderator @Tom Elliott
            last edited by Quazz Jan 13, 2020, 10:11 AM Jan 13, 2020, 4:09 PM

            @Tom-Elliott I am fairly confident the -a0 is a bug, since it is listed in its options, but isn’t picked up for use.

            -c was removed for dd (it’s implied I guess??)

            Interesting you should mention it not occuring in debug. I have seen this problem before, but that was on… unreliable devices so didn’t think much of it when I couldn’t replicate it on other devices.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Jan 13, 2020, 4:11 PM

              @ty900000 said in FOG/Apache PKI/Certificate Authentication:

              I pulled the latest init and got a different error this time

              Wait a second. Where did you pull it from? Did you use these ones? https://dev.fogproject.org/blue/organizations/jenkins/fos/detail/master/113/artifacts

              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

              T 1 Reply Last reply Jan 13, 2020, 4:11 PM Reply Quote 0
              • T
                Tom Elliott @Sebastian Roth
                last edited by Jan 13, 2020, 4:11 PM

                @Sebastian-Roth He did, I can see the changes I created in the output.

                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

                T 1 Reply Last reply Jan 13, 2020, 4:23 PM Reply Quote 0
                • T
                  ty900000 @Tom Elliott
                  last edited by Jan 13, 2020, 4:23 PM

                  @Tom-Elliott

                  I stepped through everything until it halted. Pressing [Enter] here doesn’t do anything.

                  FOG.PNG

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth Jan 13, 2020, 12:15 PM Jan 13, 2020, 6:13 PM

                    @Tom-Elliott I really wonder why we don’t see other people report this error. Were you actually able to replicate this? Maybe this is just some RAM issue that causes binaries to fail on this particular machine!?

                    By the way, @ty900000 would you mind opening a new topic for this? Better to keep things sorted. I can move all the related messages over…

                    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

                    T T 2 Replies Last reply Jan 13, 2020, 6:21 PM Reply Quote 0
                    • T
                      Tom Elliott @Sebastian Roth
                      last edited by Jan 14, 2020, 3:49 PM

                      @Sebastian-Roth @ty900000

                      Would you mind trying the latest inits from: https://dev.fogproject.org/job/fos/job/master/lastSuccessfulBuild/

                      The init.xz and init_32.xz should be good.

                      Essentially I’m having a check on the partclone to be used and removing a couple of arguments as they are not built during the configuration and build of partclone.

                      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

                      T 1 Reply Last reply Jan 14, 2020, 5:02 PM Reply Quote 0
                      • T
                        ty900000 @Tom Elliott
                        last edited by Jan 14, 2020, 5:02 PM

                        @Tom-Elliott

                        Yes! It worked perfectly. I’ve tested it a bunch of times and it works great. I do get this output after one of the partitions. It doesn’t affect anything it seems, but I’ve just noticed it.

                        FOG.PNG

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Jan 14, 2020, 5:06 PM

                          @Tom-Elliott Are you able to replicate the issue as seen in the pictures?
                          @ty900000 Does this happen on several machines? All the same model or different ones?

                          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

                          T 1 Reply Last reply Jan 14, 2020, 5:55 PM Reply Quote 0
                          • T
                            ty900000 @Sebastian Roth
                            last edited by Jan 14, 2020, 5:55 PM

                            @Sebastian-Roth

                            To start, I am using Hyper-V for everything. Yes, I do get that above image when I try to capture other images - either Windows or Linux. When I attempt to deploy the Windows image (the original image I’ve been trying to take), I get this error. But it does seem to complete. It does something similar for the the Linux image.

                            FOG.PNG

                            FOG.PNG

                            T 1 Reply Last reply Jan 14, 2020, 7:30 PM Reply Quote 0
                            • T
                              Tom Elliott @ty900000
                              last edited by Jan 14, 2020, 7:30 PM

                              @ty900000 @Sebastian-Roth
                              I haven’t replicated, but to be fair I also haven’t watched that closely. We did image one machine yesterday and all seemed fine.

                              Looking at my images folder, however, I do notice that I’m missing the “imager” partition from my image. Luckily I had another image of the machine that did have the missing partition.

                              I pushed another fix and believe the issue was as @Quazz noted is the -c argument was missing. Strange as that is, as the -c argument doesn’t appear to be a part of the spec list (unless somebody already added that to the patch for partclone and I didn’t know it?)

                              This will take a while to build of course as I only just pushed it.

                              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

                              S 1 Reply Last reply Jan 14, 2020, 8:25 PM Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Jan 14, 2020, 8:11 PM

                                @Tom-Elliott said in Development FOG not capturing image - PartClone update:

                                Strange as that is, as the -c argument doesn’t appear to be a part of the spec list

                                I think the -c is important to make partclone.imager actually use the parclone image format.

                                I haven’t replicated.

                                My guess is that this is something specific to Hyper-V or maybe even just @ty900000’s setup. Not saying we shouldn’t try to figure this out and eventually fix if it’s in the inits. My feeling is that this is not about partclone command line parameters or anything.

                                @ty900000 Please do me a favor and play with the the image’s setting Image Manager. Try Partclone Zstd if you have used Gzip since and even more so try out Partclone Uncompressed! Capture the image with these changed settings once more and let us know if it makes any difference.

                                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

                                T 1 Reply Last reply Jan 14, 2020, 11:35 PM Reply Quote 0
                                • S
                                  shruggy @Tom Elliott
                                  last edited by Jan 14, 2020, 8:25 PM

                                  @Tom-Elliott said in Development FOG not capturing image - PartClone update:

                                  I pushed another fix and believe the issue was as @Quazz noted is the -c argument was missing. Strange as that is, as the -c argument doesn’t appear to be a part of the spec list (unless somebody already added that to the patch for partclone and I didn’t know it?)

                                  My understanding of it is this:

                                  • images captured with partclone.imager -c need to be restored with partclone.restore, raw images captured with partclone.dd or with partclone.imager without -c need to be restored with partclone.dd
                                  • the options for partclone.imager are basically the same as for any partclone.$ftype (including -c and -a), it’s partclone.dd that is a special case. The symbol DD only pertains to partclone.dd, the symbol IMG is specifically defined in Makefile for partclone.imager, but never gets used in upstream Partclone code.
                                  Q 1 Reply Last reply Jan 15, 2020, 8:43 AM Reply Quote 0
                                  • T
                                    ty900000 @Sebastian Roth
                                    last edited by Jan 14, 2020, 11:35 PM

                                    @Sebastian-Roth

                                    I did test with several of the other compression types. As far as I can figure the Partclone Uncompressed is the only one that throws the above error with the 1 minute time out. And I also noticed it is not capturing sda3 - which is the raw partition on my particular Windows image. I think when it gets done with sda2 and attempts to move to sda3, it throws the Usage: unset_name [OPTIONS] error from farther above.

                                    The only reason I am using Uncompressed is because the Gzip and Zstd image captures with 6 compression were slower than I remember them being in older (much older) versions of FOG - about 3 GB/min capture and deploy whereas the uncompressed was 6+GB/min, which I know is about line speed. We had a server at my last job and we were getting 6+GB/min when we captured and deployed a machine with Zstd level 6 compression. I need to do some testing tomorrow with a physical machine capture and deploy to see what’s going on with my network…

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      ty900000
                                      last edited by ty900000 Jan 14, 2020, 5:42 PM Jan 14, 2020, 11:42 PM

                                      I pulled the latest init just now, too. Using both uncompressed and Zstd

                                      FOG.PNG

                                      1 Reply Last reply Reply Quote 0
                                      • Q
                                        Quazz Moderator @shruggy
                                        last edited by Jan 15, 2020, 8:43 AM

                                        @shruggy said in Development FOG not capturing image - PartClone update:

                                        @Tom-Elliott said in Development FOG not capturing image - PartClone update:

                                        I pushed another fix and believe the issue was as @Quazz noted is the -c argument was missing. Strange as that is, as the -c argument doesn’t appear to be a part of the spec list (unless somebody already added that to the patch for partclone and I didn’t know it?)

                                        My understanding of it is this:

                                        • images captured with partclone.imager -c need to be restored with partclone.restore, raw images captured with partclone.dd or with partclone.imager without -c need to be restored with partclone.dd
                                        • the options for partclone.imager are basically the same as for any partclone.$ftype (including -c and -a), it’s partclone.dd that is a special case. The symbol DD only pertains to partclone.dd, the symbol IMG is specifically defined in Makefile for partclone.imager, but never gets used in upstream Partclone code.

                                        Adding on to this, partclone.imager is generated using partclone.dd source files.

                                        As per the makefile: https://github.com/Thomas-Tsai/partclone/blob/master/src/Makefile.am#L56

                                        Making this commit: https://github.com/Thomas-Tsai/partclone/commit/2d1ee7c94139f390453ea8cb8675f67173bde33b problematic.

                                        The special code for RAW is then locked to partclone.dd while partclone.imager is stuck using the “normal” code, which doesn’t work properly for its scenario.

                                        Restoring the old code for partclone.imager should work. (there is no option to change the if condition main.c since there is no opt for imager…)

                                        The stuff in https://forums.fogproject.org/topic/14078/1-5-7-89-partclone-doesn-t-capture-an-image-in-dd-mode-wrong-options-in-fog-upload/17 should work.

                                        We just need to create a patch for it imo.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          shruggy
                                          last edited by Jan 15, 2020, 10:52 AM

                                          @ty900000 Could you please try my init.xz with patched Partclone and say if it works for you?

                                          T 1 Reply Last reply Jan 15, 2020, 2:03 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            15/36
                                            Last post

                                          125

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project