Fog stuck on "Running post init script"
-
Hello! After I mount /images to a new disk, FOG is stuck on “Running post script”. Please help with advice what i can do.
What I’ve done:
chown -R fogproject:root /images
chmod +R 0777 /images
video of error: https://youtu.be/ngas2DM_TAg -
@theodddimension OK I think the problem isn’t with FOG here. From the video there is a very clear picture of at lease one issue. In short, the dhcp process is too slow. There is something wrong with it.
My intuition is telling me one of 2 things you need to look at before addressing the postinit script bit.
- You have standard spanning tree enabled on the network port where this device is connected.
- You have something wrong with your DHCP server. Either you have more than one dhcp server servicing your subnet or there is something broken with DHCP.
For spanning tree issues either check the network port to ensure that portfast, rstp, mstp, fast-STP or whatever your switch mfg calls it, is enabled. If you don’t have access to manage the network switch, a quick test to see if its a spanning tree issue is to place a dumb/unmanaged switch between the pxe booting computer and the building network switch. If this fixes the dhcp issues then its a spanning tree issue and you need to talk to your networking group about a solution.
If its not a spanning tree issue then we can dig deeper into the dhcp issue with wireshark.
-
But PC is get IP from DHCP at the end
FOG was worked fine before i change image location follow instructions in this topic: https://forums.fogproject.org/topic/12838/change-the-default-images-location
-
@theodddimension From your video the initial pxe boot at the DHCP process takes too long. This is before FOG even boot. Then in iPXE boot loader you see that ipxe asked for dhcp multiple times. Then when you select the register computer, this boots FOS Linux which again asks for dhcp address multiple times.
When I first saw the video with the PXE rom booting and it taking over 10 seconds to get an IP address I though, well this isn’t right. That was before I saw the rest of the video. When everything is working correctly you should be sitting at the iPXE menu in under 10 seconds from the time the PXE rom starts.
-
@theodddimension While you sure ask about a different issue I have to side with George that something is very wrong with the DHCP in your network. But I suggest you open a new topic for that problem. Keeping things separate helps to prevent from missunderstanding.
Hello! After I mount /images to a new disk, FOG is stuck on “Running post script”.
The video stops right where you say it hangs. So I need to ask, how long have you waited?
What I’ve done:
chown -R fogproject:root /images
chmod +R 0777 /imagesThe last command does not make sense. Should be
chmod -R 777 /images
.If that still does not solve your issue you need to provide more information. Run the following commands and post output here:
mount | grep images ls -al /images
-
@sebastian-roth said in Fog stuck on "Running post init script":
ommand does not make sense. Should be chmod -R 777 /images.
If that still does not solve your issue youthanks for all, problem was solved by reinstalling FOG Server