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

    Stuck on "running post init scripts

    Scheduled Pinned Locked Moved Solved
    Linux Problems
    3
    12
    1.4k
    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.
    • N
      Numa09
      last edited by

      Hi again, I add 2 screenshorts to see if someone can gide me in the right direction:
      alt text
      alt text

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Numa09 I am not sure how this is related to post init scripts. Can you please give some more context and also post this contents of the scripts if you have those in place?

        The error on mount points to an issue with NFS not being possible to connect in your network. Are the client machine and the FOG server on the same subnet? Can’t be sure from the IPs seen in the screenshot because we are missing the subnet mask used.

        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

        N 1 Reply Last reply Reply Quote 0
        • N
          Numa09 @Sebastian Roth
          last edited by

          Hi @Sebastian-Roth In first place thanks for your help
          They are in the same network 172.16.0.0/27
          Server IP is 172.16.5.1 and clients are 172.16.0.x
          I enable the DHCP serve during Fog instalation so PXE-DHCP setting should be correct.
          My school has many small building and each one has a switch (all of them are the same model-firmware, ect.) all of them conneted to a main one where the server is .
          Installation work in some building but not in others.
          Logic sais that it must be a network issue but i’ve compared switch configurations and i can’t find any diference.
          I´m completly lost

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @Numa09 said in Stuck on "running post init scripts:

            They are in the same network 172.16.0.0/27

            According to what I know about subnet masks this is a pretty narrow one separating the server from the clients and making it necessary to have a router/gateway in between. You need to look at those to see if network traffic is being filtered.

            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

            N 1 Reply Last reply Reply Quote 0
            • N
              Numa09 @Sebastian Roth
              last edited by

              @Sebastian-Roth
              Sorry my mistake… it’s a /19… Mask is 255.255.224.0
              Subnet goes from 172.16.0.1 to 172.16.31.254
              As I told you other computers in the same network are working fine.
              I’m now going to move a non working cpu to a working building to see what happen.
              Let see if is a pc harware issue or a network one.
              I keep you updated
              Regards

              1 Reply Last reply Reply Quote 1
              • N
                Numa09
                last edited by

                Finally if i move the computer to another building it work so it must be a switch issue.
                Let see now if i find what it is

                N 1 Reply Last reply Reply Quote 0
                • N
                  Numa09 @Numa09
                  last edited by

                  Hi @Sebastian-Roth were can i find logs to see what is failing? I’ve check every thing and every where and can’t find config difereces between locations that work and the ones that doesn’t.

                  george1421G 1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @Numa09 Unfortunately there aren’t any logs for the NFS mount part of FOG. But it’s surely a network filtering issue I guess as other network traffic is going through no problem. The whole PXE bootup uses several different protocols and they all seem to work fine up to that point where NFS comes into play. So you might want to search the web for NFS and your switch model.

                    Other than that you could search this forum for an extensive post by @george1421 about using NFSv4 on a single port which is more network friendly. Be aware this is bleeding edge testing and not officially supported.

                    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 1
                    • george1421G
                      george1421 Moderator @Numa09
                      last edited by

                      @Numa09 said in Stuck on "running post init scripts:

                      ’ve check every thing and every where and can’t find config difereces between locations that work and the ones that doesn’t

                      If you want we can try to debug this.

                      1. Manually register this computer with FOG server if it is not already.
                      2. Schedule a capture/deploy doesn’t matter, but before you press the schedule task button tick the debug checkbox.
                      3. Now pxe boot the target computer from the failing location.
                      4. After several screens of text that you must clear with the enter key you will be dropped to the FOS Linux command prompt on the target computer.
                      5. Now we are going to see if you can first ping the fog server’s IP address. (This should succeed because you were able to pxe boot into FOS Linux.
                      6. Next lets create a directory so we can see if we can mount the fog server via NFS.
                        mkdir /test
                      7. Now lets see if we can connect to the fog server via NFS (this command might/should show you the true error here.
                        mount -o nolock,proto=tcp,intr,noatime "<fog_server_ip>:/images" /test Replace “<fog_server_ip>” with the IP address of the fog server. Don’t leave the greater than and less than symbols behind.

                      Lets see if you can mount that directory.
                      Also post the output of these commands after you try the mount.

                      uname -a
                      ip a s
                      df -h
                      

                      On the fog server make sure you are not running any kind of firewall to block nfs traffic.

                      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
                      • N
                        Numa09
                        last edited by

                        I think I have it:
                        link text
                        Confirmed this on a 1810G-24 GE, using the last firmware (P.2.22 at this time). The “Auto DoS” feature blocks NFS : ip packets come in, but never come out from the switch.

                        And to notice : disabling the feature is not sufficient to make it work again. I had to do a hard factory reset (factory reset from the web gui did nothing) to make it work again.

                        It seems that this option is stickying somewhere in the configuration, even after disabling it !

                        1 Reply Last reply Reply Quote 1
                        • S
                          Sebastian Roth Moderator
                          last edited by

                          @Numa09 Nice find, well done!

                          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
                          • [[undefined-on, S Sebastian Roth, ]]
                          • 1 / 1
                          • First post
                            Last post

                          188

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project