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

Error on image upload

Scheduled Pinned Locked Moved Solved
FOG Problems
3
27
5.8k
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.
  • S
    Sebastian Roth Moderator
    last edited by Sebastian Roth Jul 5, 2019, 2:37 PM Jul 5, 2019, 8:33 PM

    @Zourous I am fairly sure I found why you ran into this issue. I was absolutely sure I had seen something very similar some weeks ago but just have not had the time in the last days to sit down and play with this stuff to figure it out.

    @Quazz You might remember this last fix. We had a very similar if not the same error message in situations with single drives that have the same flag set on different partitions. In both cases the problem is caused because a variable is being set with a multiline result and that causes the if clause to fail with syntax error.

    The problem here is that parted -l /dev/sda does not return the information for sda only but sda and sdb as stated in the parted man page: “-l, --list lists partition layout on all block devices”.

    So I have pushed out a fix for this. Inits are building. You can manually download the latest init files when they are done in 3-4 hours: https://dev.fogproject.org/blue/organizations/jenkins/fos/detail/master/90/artifacts/ (init.xz and init_32.xz)

    Put those in /var/www/html/fog/service/ipxe/ - rename the original ones to have a backup copy of those. As well go to the FOG web UI -> FOG Configuration -> FOG Settings -> FTP Server and increase KERNEL RAMDISK SIZE from 127000 to 275000 if you haven’t done that already.

    @Zourous said:

    I noticed this and used a tool to take the extra USB partition away again from the image

    I am not sure I get this. Which tool did you use to “take away” the USB partition? Do you mean you removed the partition from the USB key before actually uploading or after upload finished?

    About the “doesn’t resize”… We need more information on this! Partition layout (d1.partitions from the image directory) and so on.

    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 Z 2 Replies Last reply Jul 8, 2019, 7:34 AM Reply Quote 1
    • Q
      Quazz Moderator @Sebastian Roth
      last edited by Jul 8, 2019, 7:34 AM

      @Sebastian-Roth Ahhh, that makes sense, good find!

      1 Reply Last reply Reply Quote 0
      • Z
        Zourous @Sebastian Roth
        last edited by Zourous Jul 8, 2019, 6:42 AM Jul 8, 2019, 12:39 PM

        @Zourous said:

        I noticed this and used a tool to take the extra USB partition away again from the image

        I am not sure I get this. Which tool did you use to “take away” the USB partition? Do you mean you removed the partition from the USB key before actually uploading or after upload finished?

        About the “doesn’t resize”… We need more information on this! Partition layout (d1.partitions from the image directory) and so on.

        I just used a tool outside of Windows to remove the inserted USB partition that had made it’s way onto the main image. By doing this I assume it has messed something up and that the partitions are not recalculated when I try to upload the image again because it seems to not shrink the image to the size of the data before upload or then resize it after deployment. Here is the d1.partitions file

        label: dos
        label-id: 0x86308630
        device: /dev/sda
        unit: sectors
        
        /dev/sda1 : start=        2048, size=     1024000, type=7, bootable
        /dev/sda2 : start=     1026048, size=   249043631, type=7
        

        I noticed there is a d1.fixed_size_partitions file and I tried taking the :2 out of this, but this didn’t solve it.

        Z 1 Reply Last reply Jul 8, 2019, 2:22 PM Reply Quote 0
        • Z
          Zourous @Zourous
          last edited by Zourous Jul 8, 2019, 8:22 AM Jul 8, 2019, 2:22 PM

          @Zourous said in Error on image upload:

          @Zourous said:

          I noticed this and used a tool to take the extra USB partition away again from the image

          I am not sure I get this. Which tool did you use to “take away” the USB partition? Do you mean you removed the partition from the USB key before actually uploading or after upload finished?

          About the “doesn’t resize”… We need more information on this! Partition layout (d1.partitions from the image directory) and so on.

          I just used a tool outside of Windows to remove the inserted USB partition that had made it’s way onto the main image. By doing this I assume it has messed something up and that the partitions are not recalculated when I try to upload the image again because it seems to not shrink the image to the size of the data before upload or then resize it after deployment. Here is the d1.partitions file

          label: dos
          label-id: 0x86308630
          device: /dev/sda
          unit: sectors
          
          /dev/sda1 : start=        2048, size=     1024000, type=7, bootable
          /dev/sda2 : start=     1026048, size=   249043631, type=7
          

          I noticed there is a d1.fixed_size_partitions file and I tried taking the :2 out of this, but this didn’t solve it.

          I think I found the fix on another thread. I just need to run chkdsk / f and it corrects it for the next upload

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Jul 8, 2019, 2:26 PM

            @Zourous Did you notice the fixed init files I posted yesterday? See below.

            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 Jul 9, 2019, 3:15 PM Reply Quote 0
            • Z
              Zourous @Sebastian Roth
              last edited by Jul 9, 2019, 3:15 PM

              @Sebastian-Roth said in Error on image upload:

              @Zourous Did you notice the fixed init files I posted yesterday? See below.

              Yes, I’ve just tried them. On a debug test it still shows as before when you type in parted -l /dev/sda, but on the upload I can’t see any issues like in the original screenshot I posted. Thanks for all your efforts.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Jul 10, 2019, 5:56 AM

                I just updated the official init files on the webserver. Marking as fixed.

                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
                • 1
                • 2
                • 2 / 2
                2 / 2
                • First post
                  26/27
                  Last post

                278

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project