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

Failed to set disk guid (sgdisk -U) restoreUUIDinformation

Scheduled Pinned Locked Moved Solved
FOG Problems
3
17
6.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.
  • A
    apathetic_admin
    last edited by Feb 1, 2016, 7:36 PM

    Some history:
    We wanted to upgrade from FOG 0.32 to current and move to a new server all at the same time, so we installed the OS (Ubuntu 14.04), installed FOG via git, and then I copied the mysql database over from the old server and ran the database upgrade via the web gui. We changed the IP address while we were at it, so I changed all occurrences of the IP address in the FOG database before I imported it into MySQL and did the upgrade. I have passwords synced up and everything is generally working the way I would expect except when an image has completed writing to a workstation, an error occurs:

    Failed to set disk guid (sgdisk -U) restoreUUIDinformation

    After that, it waits for 60 seconds, and then reboots. If I allow it to boot to Windows everything works as I would expect after a machine was reimaged, however the task is never ended on FOG and if I PXE boot it will write the image again. I have tested several hardware configurations and I get this error for all of them.

    I did a git pull about ten minutes ago, and I’m on FOG 6152 according to the version screen.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 1, 2016, 7:51 PM

      For the image that’s coming down what is the contents of the d1.original.uuids file?

      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

      A 1 Reply Last reply Feb 1, 2016, 8:15 PM Reply Quote 0
      • A
        apathetic_admin @Tom Elliott
        last edited by Feb 1, 2016, 8:15 PM

        @Tom-Elliott

        /dev/sda 372b02d9
        /dev/sda1 1:8C4A1EDF4A1EC63C 1:372b02d9-01
        /dev/sda2 2:06AC20B6AC20A263 2:372b02d9-02

        T 1 Reply Last reply Feb 1, 2016, 8:19 PM Reply Quote 0
        • T
          Tom Elliott @apathetic_admin
          last edited by Feb 1, 2016, 8:19 PM

          @apathetic_admin do me a favor, and yourself I suppose lol, delete the file and retry the image task.

          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

          A 1 Reply Last reply Feb 1, 2016, 10:04 PM Reply Quote 1
          • C
            clemens.g
            last edited by Feb 1, 2016, 8:20 PM

            I just wanted to start a new topic about the exact same error. Since this is my first setup, I cannot say if it was also present in earlier versions. Currently I’m running the latest trunk (6150), last update today… the only thing I can contribute ist that this happens with every image I captured (Win7, Win8.1, Win10, …) and on vastly different hardware.

            As mentioned before, the cloned machines actually work fine but the job never finishes and has to be cancelled manually.

            Best,
            Clemens

            T 1 Reply Last reply Feb 1, 2016, 8:26 PM Reply Quote 0
            • T
              Tom Elliott @clemens.g
              last edited by Feb 1, 2016, 8:26 PM

              @clemens.g the ultimate question when did the original uploads actually occur? My guess is they happened befor 6152.

              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

              C 1 Reply Last reply Feb 1, 2016, 9:08 PM Reply Quote 0
              • C
                clemens.g @Tom Elliott
                last edited by Feb 1, 2016, 9:08 PM

                @Tom-Elliott:
                Actually I did all of them today, every single one of them. So all on 6150… I might try to recapture the images in a few days from now, though.

                T 2 Replies Last reply Feb 2, 2016, 12:01 AM Reply Quote 0
                • A
                  apathetic_admin @Tom Elliott
                  last edited by Feb 1, 2016, 10:04 PM

                  @Tom-Elliott Cleared out, reimaged, and the same thing happened.

                  T 1 Reply Last reply Feb 1, 2016, 11:58 PM Reply Quote 0
                  • T
                    Tom Elliott @apathetic_admin
                    last edited by Feb 1, 2016, 11:58 PM

                    @apathetic_admin That is impossible.

                    Why?

                    Line 62 of the /usr/share/fog/lib/partition-funcs.sh contains the line:

                    [[ ! -r $file ]] && return

                    What this does, if the file (which in our case is the uuid filename) does not exist, it simply returns the call back to the area. This error would not show up if the file does not exist.

                    Can you put your system in debug, (the system you’re seeing this issue) and show me a screenshot of the file and particularly the function above for line 62?

                    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

                    A 1 Reply Last reply Feb 2, 2016, 1:57 AM Reply Quote 0
                    • T
                      Tom Elliott @clemens.g
                      last edited by Feb 2, 2016, 12:01 AM

                      @clemens.g This file should only be created if the partition layout is GPT vs. MBR. Can you get output of:

                      sfdisk -d /dev/sda from the system that uploaded the image (just one of them should be fine).

                      Also, if you are seeing this, if you delete the .uuid file, does everything 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! 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

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott @clemens.g
                        last edited by Feb 2, 2016, 12:41 AM

                        @clemens.g I just updated the inits.

                        The d{disknumber}.original.uuids file will now only be created if the partition layout is gpt.

                        While this was my intention originally, I had a spot where I was “touching” the file, but this creation of the file happened before the checks that actually store data to the file were being done. So it was possible for the uuids file to be created, albeit with no data actually in the file.

                        This would present the sgdisk -U error as described because there was no data to be found within it. So it was trying to set the uuid of the disk to blank which would fail as it expects a parameter to be set.

                        Hopefully this is all fixed now and new uploads of MBR disks will not have this issue.

                        As I stated earlier, if you’re running into the sgdisk -U error in restoreUUIDInformation, please delete the *.original.uuids file from the images you have.

                        @apathetic_admin it seems this either didn’t happen, or something else replicated the image with the uuids file back down. Just a guess.

                        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

                        C 1 Reply Last reply Feb 3, 2016, 8:43 AM Reply Quote 1
                        • A
                          apathetic_admin @Tom Elliott
                          last edited by Feb 2, 2016, 1:57 AM

                          @Tom-Elliott I read your post earlier, then I went and dealt with some other crap for a few hours, came back to my desk and deleted the contents of the file and then tried again. I re-read your post after I got home and realized that I did something stupid. Deleted the file, pushed an image, and it completed successfully.

                          T 1 Reply Last reply Feb 2, 2016, 10:32 PM Reply Quote 1
                          • T
                            Tom Elliott @apathetic_admin
                            last edited by Feb 2, 2016, 10:32 PM

                            @apathetic_admin So it is safe to solve this thread?

                            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

                            A C 2 Replies Last reply Feb 3, 2016, 3:22 PM Reply Quote 0
                            • C
                              clemens.g @Tom Elliott
                              last edited by Feb 3, 2016, 8:43 AM

                              @Tom-Elliott
                              I can only test it again tomorrow but I will do so and give you feedback. Thanks for now!

                              1 Reply Last reply Reply Quote 0
                              • A
                                apathetic_admin @Tom Elliott
                                last edited by Feb 3, 2016, 3:22 PM

                                @Tom-Elliott Yes my issue is resolved, thanks. On another thread I was able to mark it solved in Topic Tools but I didn’t have that option here.

                                T 1 Reply Last reply Feb 3, 2016, 5:30 PM Reply Quote 0
                                • T
                                  Tom Elliott @apathetic_admin
                                  last edited by Feb 3, 2016, 5:30 PM

                                  @apathetic_admin You can mark it as solved now. It first needed to be “asked as a question”.

                                  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

                                  1 Reply Last reply Reply Quote 2
                                  • C
                                    clemens.g @Tom Elliott
                                    last edited by Feb 5, 2016, 8:58 AM

                                    @Tom-Elliott
                                    Works perfectly now! Thank you very much!

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

                                    225

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project