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

Fog stuck on "Running post init script"

Scheduled Pinned Locked Moved
FOG Problems
3
6
975
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
    TheOddDimension
    last edited by Jan 27, 2022, 6:23 AM

    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

    G 1 Reply Last reply Jan 27, 2022, 12:45 PM Reply Quote 0
    • G
      george1421 Moderator @TheOddDimension
      last edited by Jan 27, 2022, 12:45 PM

      @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.

      1. You have standard spanning tree enabled on the network port where this device is connected.
      2. 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.

      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!

      1 Reply Last reply Reply Quote 0
      • T
        TheOddDimension
        last edited by TheOddDimension Jan 27, 2022, 7:55 AM Jan 27, 2022, 1:33 PM

        But PC is get IP from DHCP at the end 72f32b1f-fbc2-4048-ae04-3dcf7602e176-image.png

        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

        G 1 Reply Last reply Jan 27, 2022, 2:22 PM Reply Quote 0
        • G
          george1421 Moderator @TheOddDimension
          last edited by Jan 27, 2022, 2:22 PM

          @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.

          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!

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Jan 28, 2022, 3:26 PM

            @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 /images

            The 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
            

            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
              TheOddDimension
              last edited by Jan 31, 2022, 6:44 AM

              @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 you

              thanks for all, problem was solved by reinstalling FOG Server

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

              131

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project