• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. JGallo
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 1
    • Topics 13
    • Posts 168
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: FOG 1.5.0 RC2 Host Delete Problem

      @Tom-Elliott
      I tried to test this as well. I’m on SVN 6080 and when creating a group and hitting create, it takes me to a separate page with this message

      {“msg”:“Successfully added selected hosts to the group!”}

      When I hit the back button, then go to groups, the group is there along with random clients I did not check to add into this group. Really strange. Also forgot to mention that when I tried to delete the group, it also does not delete the clients in that group.

      posted in Bug Reports
      J
      JGallo
    • RE: Unable to delete hosts as a group nor as multiple selections

      I just read another post regarding this same issue. I will follow that posts under the bug forums.

      posted in FOG Problems
      J
      JGallo
    • Unable to delete hosts as a group nor as multiple selections
      Server
      • FOG Version: 1.5.0-RC-2
      • OS: Ubuntu 16
      Client
      • Service Version:
      • OS:
      Description

      Hello everyone,

      I have updated my fog server to 1.5.0 RC 2 from 1.4.0 There were clients in the database that existed prior to the upgrade. I had a group of clients that I wanted to delete that as a group that I created some time ago but when i went ahead and deleted the group then selected the option to delete hosts within the resulting the screen just went to no hosts found. I tried again and exact result occurred again. So I then made a search within the host search so that only the hosts that i want to delete are there. I selected the top box to select all and then at the bottom clicked on delete. Upon confirmation of deletion, exact thing happened as before. So I tried individually and it worked.

      Not sure if it makes a difference but those hosts were imported from the template when I migrated from physical server to a VM. Any ideas what this may be? I have tried Google Chrome and Firefox with the same results.

      Thank you again for all your hard work on this and the new web UI is killer!!!

      posted in FOG Problems
      J
      JGallo
    • Invalid Plugin Passed message
      Server
      • FOG Version: 1.4.0RC3
      • OS: Ubuntu Server 16.04.2 LTS
      Client
      • Service Version:
      • OS:
      Description

      Awkward observation I have here. I have been experimenting with Ubuntu Server 16.04.2 LTS since we are moving towards VM’s and I have noticed something weird going on with the plugins. Here is what I have:

      • Installed Ubuntu Server 16.04.2 LTS from scratch. Install mysql-server and mysql-client and created a FOG database. Ran updates and upgrades.

      • Installed FOG Trunk per wiki with git and got to 1.4.0RC3 and everything installs correctly. I then try to install a plugin like the location and LDAP plugin and I get a invalid plugin passed. So I went ahead and started from scratch again.

      • Installed normal FOG 1.3.5 per wiki and everything works again. Installed location and LDAP plugins with no problems. With this working now, I went ahead and upgraded to Trunk with 1.4.0RC3 and plugins still work.

      • WIth 1.3.5 updated to 1.4.0RC3 and the plugins from 1.3.5 working, I tried again to install another plugin like slack. Once again I am prompted with a invalid plugin passed.

      This is what I got from the apache error log:

      [Fri Apr 07 14:34:03.107139 2017] [mpm_event:notice] [pid 4167:tid 140090175522688] AH00489: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
      [Fri Apr 07 14:34:03.107673 2017] [core:notice] [pid 4167:tid 140090175522688] AH00094: Command line: '/usr/sbin/apache2'
      [Fri Apr 07 14:38:55.903436 2017] [mpm_event:notice] [pid 4167:tid 140090175522688] AH00491: caught SIGTERM, shutting down
      [Fri Apr 07 14:38:56.104457 2017] [mpm_prefork:notice] [pid 17075] AH00163: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
      [Fri Apr 07 14:38:56.104941 2017] [core:notice] [pid 17075] AH00094: Command line: '/usr/sbin/apache2'
      [Fri Apr 07 14:38:57.112931 2017] [mpm_prefork:notice] [pid 17075] AH00169: caught SIGTERM, shutting down
      [Fri Apr 07 14:38:57.526826 2017] [mpm_prefork:notice] [pid 17150] AH00163: Apache/2.4.25 (Ubuntu) configured -- resuming normal operations
      [Fri Apr 07 14:38:57.527111 2017] [core:notice] [pid 17150] AH00094: Command line: '/usr/sbin/apache2'
      [Fri Apr 07 14:44:52.696193 2017] [mpm_prefork:notice] [pid 17150] AH00169: caught SIGTERM, shutting down
      [Fri Apr 07 14:47:50.768601 2017] [mpm_prefork:notice] [pid 33930] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k configured -- resuming normal operations
      [Fri Apr 07 14:47:50.768954 2017] [core:notice] [pid 33930] AH00094: Command line: '/usr/sbin/apache2'
      [Fri Apr 07 15:10:36.377463 2017] [mpm_prefork:notice] [pid 33930] AH00169: caught SIGTERM, shutting down
      [Fri Apr 07 15:11:00.480108 2017] [mpm_prefork:notice] [pid 39492] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k configured -- resuming normal operations
      [Fri Apr 07 15:11:00.484603 2017] [core:notice] [pid 39492] AH00094: Command line: '/usr/sbin/apache2'
      
      

      Any ideas what this could be? Thank you guys.

      posted in Bug Reports
      J
      JGallo
    • Custom Full Host Registration Menu for 1.4.0.rc2 and later

      Custom FOG Full host registration

      This guide is to allow you remove questions asked during the full host registration process. In previous versions of FOG, the only way to customize this was to modify the /bin/fog.man.reg manually. The instructions on this link are for FOG versions 1.2.0 and below:

      https://wiki.fogproject.org/wiki/index.php?title=Create_Custom_Fog_Registration_menu

      In FOG 1.4.0rc2 and higher, we must use post init scripts. Once a major update is released, this tutorial can be modified to reflect those changes.

      Let’s start by creating a few scripts. Secondly we will modify the fog.postinit script to call our custom scripts. Our first script that we will create will be called fog.man.reg.fix which will be a modified version of the script in /bin/fog.man.reg This script is actually everything that is performed when selecting the full host registration option when you boot into FOG but this tutorial utilizes post init scripts to “copy” our customized script and replaces /bin/fog.man.reg script. So let’s go to our steps and begin:

      Step 1
      Obtain a copy of /bin/fog.man.reg so we can modify it to our needs.
      Here is the link on github:

      https://github.com/FOGProject/fogproject/blob/master/src/buildroot/package/fog/scripts/bin/fog.man.reg

      We can go ahead and place this file under /images/dev/postinitscripts/ and rename it to fog.man.reg.fix so we can reference it later.

      As in the Wiki link earlier above, we will now modify the fog.man.reg.fix script using the same concepts. A good rule of thumb is for every question you want to remove during the full host registration process, you will have to delete the variable towards the bottom of the code.

      ex:

      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like to associate this host with groups? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  setIDs "groupid" "group" "true" "" 20
                  group64=$groupid
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      

      So if you don’t want to be asked this question above, you must delete everything between askme=“” and done. Then towards the bottom of the code, you will see the following:

      while [[ -z $res ]]; do
          res=$(curl -ks --data "mac=$mac&advanced=$(echo -n 1 | base64)&host=$host&imageid=$imageid&primaryuser=$primaryuser&other1=$other1&other2=$other2&doimage=$realdoimage&doad=$blDoAD&location=$location64&username=$user64&groupid=$group64&snapinid=$snapin64&productKey=$productKey" http://${web}service/auto.register.php 2>/dev/null)
          echo "$res"
          usleep 2000000
      done
      

      Look for the section where it says groupid because that is the variable we no longer need. So from there delete the following: &groupid=$group64 The & must be in the front of the variable being removed in case another variable must follow.

      By following the steps on the Wiki link

      https://wiki.fogproject.org/wiki/index.php?title=Create_Custom_Fog_Registration_menu

      We can follow the same concepts. Now we can just really skip any modifications to the inits.

      Step 2
      Now that we have a customized fog.man.reg.fix script and placed it in the proper directory, we can now create the script that fog.postinit will call. We will call this script patch.fullreg and use the following code:

      #!/bin/bash
      
      echo "Installing Patch"
      debugPause
      
      cp -f ${postinitpath}fog.man.reg.fix /bin/fog.man.reg
      
      echo "Done Patching stuff"
      debugPause
      

      We then save that file also in the same directory that fog.man.reg.fix and fog.postinit which is /images/dev/postinitscripts/ As you can see, we are really just copying our custom fog.man.reg.fix script to fog.man.reg This allows us to basically simplify our full host registration process. Through this process, we can now remove questions like product key, user1, user2, primary user, active directory, etc.

      Notes: This will not work if using fog 1.3.0 - 1.4.0 rc 1 from my understanding. I’m sure I will be updating this post and making changes to improve the language and references. Hopefully with this, we can update the Wiki page to reflect the newer version of FOG and utilizing post init scripts in the future.

      posted in Tutorials
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 @Tom-Elliott With the changes in 1.4.0-rc-2 that made us able to use the fog.postinit script with full host registration, those changes will be in the next release of FOG correct? I’m planning this summer to upgrade from 1.2.0 Definitely looking forward to this upgrade especially with the LDAP plug in.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 @Tom-Elliott I will go ahead and restore the fog.postinit script back to its intended use. Call the patch.fullreg script to reflect exactly what we are trying to do, that is to copy our custom script and replace /bin/fog.man.reg That way as @george1421 has said to prevent any updates from replacing the script by accident.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 LOL wow and of course it works now. I’m glad this was figured out. Making the changes and testing the scripts I can confirm that it works.

      With that said, taking a step further, is the fog.postinit script suppose to have anything other than calling our custom scripts? Or should we skip the additional scripts (as you recommended earlier in the post ex - patch.fullreg, fog.postselect)? Once again thank you for taking a look at that. I’m glad there were some discoveries along the way that I’m sure will be useful for many others.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 I will wait. While in debug mode, I typed

      df -h
      

      and got

      filesystem             Mounted on
      /dev/root                 /
      
      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 So placed the debug flags back. Once the patching was done, I hit control-c and inspected /bin/fog.man.reg and looks like the original file because my changes aren’t there. I also echoed the postinitpath and it returned a blank line.

      Could I theoretically set the postinit path prior to cp the custom fog script? Or instead of using the variable postinit to manually enter the postinitpath?

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 Yes. It is successful in echoing those words. I went as far as actually echoing “Installing my patch” and it works. LOL. So we know the script is being called but not too sure on the file copy. If I place the debug flags back, can I pull the fog.man.reg file to inspect it and confirm the file copy?

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @Tom-Elliott @george1421 This is what I have as far as post init scripts:

      code for fog.postinit

      #!/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}fog.postselect
      

      code for fog.postselect

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      # place script commands here that should execute every time for every FOS action
      # I added some additional check here just in case you wanted to highly customize the postinit script's actions. This section is not mandatory.
      if [[ -n $mode && $mode != +(*debug*) && -z $type ]]; then
          case $mode in
              wipe)
                  # fog wipe disk
                  ;;
              checkdisk)
                  # fog check disk
                  ;;
              badblocks)
                  # fog disk surface test
                  ;;
              autoreg)
                  # fog quick registration
                  ;;
              manreg)
                  # fog full registration
                  . ${postinitpath}patch.fullreg
                  ;;
              inventory)
                  # fog full inventory
                  ;;
              quickimage)
                  # fog quick image
                  ;;
              *)
                  # all other generic operations
                  ;;
          esac
          # place script commands here that should be run for any of the utility functions
      else
          case $type in
              down)
                  # fog image deploy
                  ;;
              up)
                  # fog image capture
                  ;;
              *)
                  # the code should never get here, we'll just add so the script doesn't break
                  ;;
          esac
          # place script commands here that should be run for either image capture or deploy
      fi
      

      code for patch.fullreg

      #!/bin/bash
      
      dots "Patching Registration files"
      debugPause
      
      cp -f ${postinitpath}fog.reg.man.fix /bin/fog.reg.man
      
      dots "Done Patching Registration files"
      debugPause
      

      and finally the custom code I modified that removed questions we don’t need to be asked during full host registration

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      . /bin/fog.donate
      clearScreen
      displayBanner
      disks=""
      disk=""
      hd=""
      getHardDisk
      sysman=""
      sysman64=""
      sysproduct=""
      sysproduct64=""
      sysversion=""
      sysversion64=""
      sysserial=""
      systype=""
      biosversion=""
      biosvendor=""
      biosdate=""
      mbman=""
      mbproductname=""
      mbversion=""
      mbserial=""
      mbasset=""
      cpuman=""
      cpuversion=""
      cpucurrent=""
      cpumax=""
      mem=""
      hdinfo=""
      caseman=""
      casever=""
      caseserial=""
      casesasset=""
      sysserial64=""
      systype64=""
      biosversion64=""
      biosvendor64=""
      biosdate64=""
      mbman64=""
      mbproductname64=""
      mbversion64=""
      mbserial64=""
      mbasset64=""
      cpuman64=""
      cpuversion64=""
      cpucurrent64=""
      cpumax64=""
      mem64=""
      hdinfo64=""
      caseman64=""
      casever64=""
      caseserial64=""
      casesasset64=""
      dots "Using disk device"
      echo $hd
      echo " * Starting host registration"
      mac=$(getMACAddresses | base64)
      exists=$(curl -ks --data "mac=$mac" http://${web}service/man.hostexists.php 2>/dev/null)
      checkAndSet() {
          local testvar="$1"
          local onlynum="$2"
          [[ -z $testvar ]] && return
          if [[ $onlynum =~ [Tt][Rr][Uu][Ee] && $testvar =~ ^[0-9]+$ ]]; then
              echo $testvar | base64
          elif [[ $testvar =~ ^[0-9,]+$ ]]; then
              echo $testvar | base64
          else
              return
          fi
      }
      setIDs() {
          local varVar="$1"
          local str="$2"
          local csvstyle="$3"
          local dummy="$4"
          local max="$5"
          local res=""
          local url=""
          local oIFS=$IFS
          local line=""
          while [[ -z ${!varVar} ]]; do
              [[ $csvstyle =~ [Tt][Rr][Uu][Ee] ]] && echo -n "    Enter the $str IDs separated with , to associate with computer (? for listing): " || echo -n "    Enter the $str ID to associate with computer (? for listing): "
              read dummy
              dummy=$(echo $dummy | sed -e 's/^,//' -e 's/,$//')
              case $dummy in
                  [?])
                      url="http://${web}service/${str}listing.php"
                      clearScreen
                      res=$(echo -e $(curl -ks $url 2>/dev/null))
                      i=0
                      IFS=$'\n'
                      for line in $res; do
                          let i+=1
                          echo $line
                          if [[ $i -eq $max ]]; then
                              [[ $csvstyle =~ [Tt][Rr][Uu][Ee] ]] && echo -n "    Press [Enter] to proceed or enter the $str IDs separated with , to associate with computer: " || echo -n "    Press [Enter] to proceed or enter the $str ID to associate with computer: "
                              read dummy
                              case $dummy in
                                  [?]|"")
                                      i=0
                                      clearScreen
                                      continue
                                      ;;
                              esac
                              case $csvstyle in
                                  [Tt][Rr][Uu][Ee])
                                      [[ $dummy =~ ^[0-9,]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy) || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                                      break
                                      ;;
                                  *)
                                      [[ $dummy =~ ^[0-9]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy "true") || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                                      break
                                      ;;
                              esac
                              i=0
                              dummy=$(echo $dummy | sed -e 's/^,//' -e 's/,$//')
                              clearScreen
                          fi
                      done
                      ;;
                  ""|0)
                      printf -v "$varVar" 0
                      ;;
                  *)
                      dummy=$(echo $dummy | sed -e 's/^,//' -e 's/,$//')
                      [[ -z $dummy ]] && setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                      case $csvstyle in
                          [Tt][Rr][Uu][Ee])
                              [[ $dummy =~ ^[0-9,]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy) || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                              ;;
                          *)
                              [[ $dummy =~ ^[0-9]+$ ]] && printf -v "$varVar" $(checkAndSet $dummy "true") || setIDs "$varVar" "$str" "$csvstyle" "$dummy" "$max"
                              ;;
                      esac
                      ;;
              esac
          done
          IFS=$oIFS
      }
      [[ $exists != "#!ok" ]] && handleError "Unable to register host: $exists ($0)\n   Args Passed: $*"
      host=""
      imageid=""
      blImage=""
      keyEnter=""
      res=""
      while [[ $res != "#!ok" ]]; do
          echo -n " * Enter hostname for this computer: "
          read host
          if [[ ${#host} -gt 15 ]]; then
              host=${host:0:15}
              echo " | Truncated to 15 characters: $host"
              usleep 2000000
          fi
          host=$(echo $host | base64)
          res=$(curl -ks --data "host=$host" http://${web}service/hostnameloop.php 2>/dev/null)
          [[ $res != "#!ok" ]] && echo "$res"
      done
      imageid=""
      setIDs "imageid" "image" "" "" 20
      if [[ $(curl -ks http://${web}service/locationcheck.php 2>/dev/null) == "##" ]]; then
          while [[ -z $askme ]]; do
              echo -n "    Would you like to assign a location for this host? (y/N) "
              read askme
              case $askme in
                  [Nn]|[Nn][Oo]|"")
                      askme="N"
                      ;;
                  [Yy]|[Yy][Ee][Ss])
                      setIDs "locationid" "location" "" "" 20
                      location64=$locationid
                      ;;
                  *)
                      askme=""
                      echo " * Invalid input, please try again"
                      ;;
              esac
          done
      fi
      echo " * You entered all required information, "
      askme=""
      while [[ -z $askme ]]; do
          echo -n "    Would you like to deploy image to this computer now? (y/N) "
          read askme
          case $askme in
              [Nn]|[Nn][Oo]|"")
                  askme="N"
                  ;;
              [Yy]|[Yy][Ee][Ss])
                  tmp=""
                  ret=""
                  retry=3
                  while [[ $ret != "#!ok" && ! $retry -eq 0 ]]; do
                      echo " * Enter FOG GUI Username and Password"
                      echo -n "    Username: "
                      read username
                      echo -n "    Password: "
                      read -s password
                      user64=$(echo $username | tr -d '\012' | base64)
                      pass64=$(echo $password | tr -d '\012' | base64)
                      ret=$(curl -ks --data "mac=$mac&username=$user64&password=$pass64" http://${web}service/checkcredentials.php 2>/dev/null)
                      case $ret in
                          '#!ok')
                              echo
                              echo " * This host will reboot and deployment will start!"
                              ret=$tmp
                              realdoimage=$(echo -n 1 | base64)
                              break
                              ;;
                          '#!il')
                              echo
                              echo " * Error: Invalid Login! ($retry remaining)"
                              let retry-=1
                              ;;
                      esac
                  done
                  askme="Y"
                  ;;
              *)
                  askme=""
                  echo " * Invalid input, please try again"
                  ;;
          esac
      done
      dots "Attempting to register host"
      res=""
      while [[ -z $res ]]; do
          res=$(curl -ks --data "mac=$mac&advanced=$(echo -n 1 | base64)&host=$host&imageid=$imageid&doimage=$realdoimage&location=$location64&username=$user64" http://${web}service/auto.register.php 2>/dev/null)
          echo "$res"
          usleep 2000000
      done
      . /bin/fog.inventory
      usleep 2000000
      
      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @Tom-Elliott Thank you. I went ahead and updated to 1.4.0-rc-2 and it seems like like post init scripts are running because I get a message that says Patching registration files and eventually states that it’s Done Patching Registration files. Unfortunately it’s not copying the file I have set up to copy. So we know that the post init scripts are running. Not sure if the copy script is working because when testing a host by trying to do a full register of a host I still get asked questions I removed from my custom fog.man.reg

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 Here is what I got from the Apache2 error logs:

      Mon Apr 03 07:35:02.274680 2017] [mpm_prefork:notice] [pid 29017] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k configured – resuming normal operations
      [Mon Apr 03 07:35:02.274758 2017] [core:notice] [pid 29017] AH00094: Command line: ‘/usr/sbin/apache2’
      [Mon Apr 03 07:53:37.005326 2017] [php7:error] [pid 32151] [client 10.170.75.39:54182] PHP Fatal error: Uncaught Error: Call to undefined method BootMenu::attemptLogin() in /var/www/fog/lib/fog/bootmenu.class.php:1168\nStack trace:\n#0 /var/www/fog/lib/fog/bootmenu.class.php(398): BootMenu->verifyCreds()\n#1 /var/www/fog/service/ipxe/boot.php(35): BootMenu->__construct(Object(Host))\n#2 {main}\n thrown in /var/www/fog/lib/fog/bootmenu.class.php on line 1168
      [Mon Apr 03 08:04:43.824595 2017] [php7:error] [pid 32177] [client 10.170.75.145:9807] PHP Fatal error: Uncaught Error: Call to undefined method BootMenu::attemptLogin() in /var/www/fog/lib/fog/bootmenu.class.php:1168\nStack trace:\n#0 /var/www/fog/lib/fog/bootmenu.class.php(398): BootMenu->verifyCreds()\n#1 /var/www/fog/service/ipxe/boot.php(35): BootMenu->__construct(Object(Host))\n#2 {main}\n thrown in /var/www/fog/lib/fog/bootmenu.class.php on line 1168
      [Mon Apr 03 08:05:16.450267 2017] [php7:error] [pid 32148] [client 10.170.75.145:49460] PHP Fatal error: Uncaught Error: Call to undefined method BootMenu::attemptLogin() in /var/www/fog/lib/fog/bootmenu.class.php:1168\nStack trace:\n#0 /var/www/fog/lib/fog/bootmenu.class.php(398): BootMenu->verifyCreds()\n#1 /var/www/fog/service/ipxe/boot.php(35): BootMenu->__construct(Object(Host))\n#2 {main}\n thrown in /var/www/fog/lib/fog/bootmenu.class.php on line 1168
      [Mon Apr 03 08:07:51.285042 2017] [php7:error] [pid 32147] [client 10.170.75.39:22602] PHP Fatal error: Uncaught Error: Call to undefined method BootMenu::attemptLogin() in /var/www/fog/lib/fog/bootmenu.class.php:1168\nStack trace:\n#0 /var/www/fog/lib/fog/bootmenu.class.php(398): BootMenu->verifyCreds()\n#1 /var/www/fog/service/ipxe/boot.php(35): BootMenu->__construct(Object(Host))\n#2 {main}\n thrown in /var/www/fog/lib/fog/bootmenu.class.php on line 1168
      [Mon Apr 03 08:08:12.152556 2017] [mpm_prefork:notice] [pid 29017] AH00169: caught SIGTERM, shutting down
      [Mon Apr 03 08:08:24.966309 2017] [mpm_prefork:notice] [pid 1000] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k configured – resuming normal operations
      [Mon Apr 03 08:08:24.966502 2017] [core:notice] [pid 1000] AH00094: Command line: ‘/usr/sbin/apache2’
      [Mon Apr 03 08:09:45.609312 2017] [php7:error] [pid 1021] [client 10.170.75.39:5052] PHP Fatal error: Uncaught Error: Call to undefined method BootMenu::attemptLogin() in /var/www/fog/lib/fog/bootmenu.class.php:1168\nStack trace:\n#0 /var/www/fog/lib/fog/bootmenu.class.php(398): BootMenu->verifyCreds()\n#1 /var/www/fog/service/ipxe/boot.php(35): BootMenu->__construct(Object(Host))\n#2 {main}\n thrown in /var/www/fog/lib/fog/bootmenu.class.php on line 1168
      [Mon Apr 03 08:25:26.514047 2017] [php7:error] [pid 2705] [client 10.170.75.159:18805] PHP Fatal error: Uncaught Error: Call to undefined method BootMenu::attemptLogin() in /var/www/fog/lib/fog/bootmenu.class.php:1168\nStack trace:\n#0 /var/www/fog/lib/fog/bootmenu.class.php(398): BootMenu->verifyCreds()\n#1 /var/www/fog/service/ipxe/boot.php(35): BootMenu->__construct(Object(Host))\n#2 {main}\n thrown in /var/www/fog/lib/fog/bootmenu.class.php on line 1168
      [Mon Apr 03 08:31:42.110324 2017] [mpm_prefork:notice] [pid 1000] AH00169: caught SIGTERM, shutting down
      [Mon Apr 03 08:31:54.914304 2017] [mpm_prefork:notice] [pid 1032] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2k configured – resuming normal operations
      [Mon Apr 03 08:31:54.914503 2017] [core:notice] [pid 1032] AH00094: Command line: ‘/usr/sbin/apache2’
      
      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 That is what I get. I will try to tail the apache logs and see if anything I can get there. If I restore the the original boot.php file, should expect different results when calling the boot.php file with the mac address: 00:00:00:00:00:00?

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421
      #!ipxe
      set fog-ip 10.170.200.20
      set fog-webroot fog
      set boot-url http://${fog-ip}/${fog-webroot}
      cpuid --ext 29 && set arch x86_64 || set arch i386
      iseq ${platform} efi && set key 0x1b || set key 0x1b
      iseq ${platform} efi && set keyName ESC || set keyName Escape
      prompt --key ${key} --timeout 3000 Booting… (Press ${keyName} to access the menu) && goto menuAccess || sanboot --no-describe --drive 0x80
      :menuAccess
      login
      params
      param mac0 ${net0/mac}
      param arch ${arch}
      param platform ${platform}
      param username ${username}
      param password ${password}
      param menuaccess 1
      param debug 1
      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
      :bootme
      chain -ar http://10.170.200.20/fog/service/ipxe/boot.php##params

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @Tom-Elliott So I got a chance to try the bootmenu link you posted and I get a chainlink error and could not boot: input/output error followed by the ipxe.org link. This is fixed by re-running the fog installer and then the ipxe booted normally. Not sure if I did that correctly but all I did was run that wget and it seemed like it downloaded the bootmenu.class.php.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 After I type in:

      df -h

      I get:

      Filesystem
      /dev/root

      along with size, space used, etc. I assume this part must be in debug mode correct? I see Tom recommended something so I will give that a try as well.

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 So what I need to figure out is why my fog.postinit script is not working. There is literally nothing in the postinit script other than the comments of what to change and basically the following:

      . ${postinitpath}fog.postselect

      I went ahead and tested a dots “Testing postinit scripts” and still the post init scripts are being skipped.

      I get the following everytime:

      *Running post init scripts…Skipped
      *Press [Enter] key to continue

      I do have the debug flags. So something is causing my postinitscript to be skipped. LOL

      posted in FOG Problems
      J
      JGallo
    • RE: Custom Full Host Registration for 1.3.4

      @george1421 I will take a look in there as well. I’m very curious now myself diving this deep in the Rabbit hole.

      posted in FOG Problems
      J
      JGallo
    • 1
    • 2
    • 5
    • 6
    • 7
    • 8
    • 9
    • 8 / 9