FOG Deploy Image stuck at Running Post Init Scripts


  • 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!

  • Senior Developer

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


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

  • Senior Developer

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


  • @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!

  • Senior Developer

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

296
Online

8.5k
Users

15.3k
Topics

143.3k
Posts