Error on image upload



  • @Sebastian-Roth said in Error on image upload:

    @Zourous Thanks heaps for letting us know. Definitely something I wouldn’t have thought of!

    Would you do me a favor? Please run another debug upload task with the USB key plugged in and when you get to the shell run the following commands, take pictures and post here:

    parted -l /dev/sda
    parted -l /dev/sdb
    

    My guess is that the USB key is first in the list (sda) and therefor we run into an issue.

    @Quazz Maybe we should add a check for removable drives and warn the user about this.

    This is after the command parted -l /dev/sda. You see the USB stick at the bottom. If I run parted-l /dev/sdb I just get the USB information on it’s own.

    It looks like the USB stick was bootable at some point in a previous use (I didn’t realise this before) so maybe that it where the confusion is and Fog automatcially adds it to the image to upload?

    pic2.jpg


  • Senior Developer

    @Quazz I think there is a flag for removable devices in /proc or /sys… Will have to look that up though.


  • Moderator

    @Sebastian-Roth Good idea in general, though, not entirely sure how to go about that at the moment.


  • Senior Developer

    @Zourous Thanks heaps for letting us know. Definitely something I wouldn’t have thought of!

    Would you do me a favor? Please run another debug upload task with the USB key plugged in and when you get to the shell run the following commands, take pictures and post here:

    parted -l /dev/sda
    parted -l /dev/sdb
    

    My guess is that the USB key is first in the list (sda) and therefor we run into an issue.

    @Quazz Maybe we should add a check for removable drives and warn the user about this.



  • Hi Sebastian,

    Many thanks for your speedy reply at such short notice. Much appreciated as I’m on a short timescale to get a task completed. I think I might have solved it, but your post gave me a clue. Firstly I tried the fix in your follow up post about updating the init files and ramdisk size but this didn’t solve it. I then had a look at the partitions with the debug task. It showed up a USB stick I had connected as well as the fixed drive I wanted to image and this is where the issue is. I tried again with the USB out and it worked fine and as expected. I even ran the task again with the USB inserted just to prove it and yes the issue was back again. This is most strange as I swear I’ve uploaded before with a USB stick in and assumed the process would see it and just ignore it. I quite often use the USB stick just before upload to run my sysprep answer file from. Anyhow I’m happy I know the answer. Thanks again.


  • Senior Developer

    @Zourous Re-reading this I think we had this exact same issue a couple of weeks ago and it was fixed already. Please download the most current init files available here: 32 bit and 64 bit and put in /var/www/html/fog/service/ipxe/ on your FOG server. Best if you rename the original ones just to have a backup copy at hand.

    With the new init files you also have to manually change a setting in the FOG web UI: FOG Configuration -> FOG Settings -> FTP Server and increase KERNEL RAMDISK SIZE from 127000 to 275000.


  • Senior Developer

    @Zourous said in Error on image upload:

    I tried other previous good images and the same thing.

    What do you mean by that? Sounds like you tried deploying a different image. I suspect you don’t get the exact same error message as the process of deploy is different to upload. Just wondering what you meant here.

    but this just started happening out of the blue

    I suspect you have updated your FOG server or maybe the init files itself. But anyhow, let’s try to track this down.

    Please cancel the current upload task and schedule a new one as debug for the same host machine (as you would normally schedule a task but just click the checkbox for debug before you actually create the task). Boot it up and hit ENTER till you get to the shell. Now run parted -l /dev/sda, take a picture of the output on screen and post here.


Log in to reply
 

280
Online

7.1k
Users

14.3k
Topics

135.0k
Posts