• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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
655
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 Jun 11, 2021, 5:08 PM

    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 Jun 11, 2021, 5:43 PM

      @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 Jun 14, 2021, 10:11 AM Reply Quote 0
      • M
        mmethe @Sebastian Roth
        last edited by Sebastian Roth Jun 14, 2021, 5:24 AM Jun 14, 2021, 10:11 AM

        @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 Jun 14, 2021, 5:31 AM Jun 14, 2021, 11:29 AM

          @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 Jun 14, 2021, 2:17 PM Reply Quote 0
          • M
            mmethe @Sebastian Roth
            last edited by Sebastian Roth Jun 14, 2021, 11:16 AM Jun 14, 2021, 2:17 PM

            @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 Jun 14, 2021, 7:12 PM

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

              201

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project