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

    FOG Deploy Image stuck at Running Post Init Scripts

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    6
    630
    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.
    • M
      mmethe
      last edited by

      I found a couple topics similar to this with no resolution

      You are currently running version: 1.5.5
      Latest stable version is 1.5.9
      Latest dev-branch version is 1.5.9.93
      Latest alpha-branch version is 1.6.0-alpha.1110

      I am unable to deploy an imiage as the process hangs at Running Post Init Scripts

      /images/dev/postinitscripts is mounted
      Permissions are 777

      I recreated the fog.postinit based on what the default file should look like
      I can create other files on the filesystem

      Thanks!

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

        @mmethe said in FOG Deploy Image stuck at Running Post Init Scripts:

        I am unable to deploy an imiage as the process hangs at Running Post Init Scripts

        Can you be more precise on what you mean by “hangs”? Does it return from that with “Failed” or does it sit there for a long time neither returning “Failed” nor “OK”?

        Do you have post init scripts in use? If so, please post the contents of the scripts you use.

        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

        M 1 Reply Last reply Reply Quote 0
        • M
          mmethe @Sebastian Roth
          last edited by Sebastian Roth

          @sebastian-roth It never gets to failed. Just sits at ‘running post init scripts…’

          I dont believe I ever have used post init scripts but the /images/dev/postinitscripts folder contains a script called ‘fog.postinit’ which contains:

          #!/bin/bash
          ## This file serves as a starting point to call your custom pre-imaging/post init loading scripts.
          ## <SCRIPTNAME> should be changed to the script you're planning to use.
          ## Syntax of post init scripts are
          #. ${postinitpath}<SCRIPTNAME>
          

          Thanks!

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

            @mmethe Please run the following commands and post the output here:

            ls -al /images/dev/postinitscripts
            mount | grep images
            

            By the way, is there a good reason you use an old version of FOG?

            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

            M 1 Reply Last reply Reply Quote 0
            • M
              mmethe @Sebastian Roth
              last edited by Sebastian Roth

              @sebastian-roth No good reason. I actually have git update ready to run install.sh from.

              [root@brt1-fog01 postinitscripts]# ls -al /images/dev/postinitscripts/
              total 12
              drwxrwxrwx 2 fog  root 4096 Jun 14 10:16 .
              drwxrwxrwx 5 fog  root 4096 Dec 13  2019 ..
              -rwxr-xr-x 1 root root  249 Jun 14 10:16 fog.postinit
              [root@brt1-fog01 postinitscripts]# mount | grep images
              /dev/sdb1 on /images type ext4 (rw,relatime,data=ordered)
              

              Thanks

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

                @mmethe Not sure what’s wrong but you might try setting the ownership: chown fog:root /images/dev/postinitscripts/fog.postinit (note: the user fog exists in older versions only. After the update to 1.5.9 it will be called fogproject)

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

                156

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project