• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Greg Plamondon
    3. Posts
    • Profile
    • Following 1
    • Followers 0
    • Topics 75
    • Posts 403
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Extended fog variables problem.

      @tom-elliott said in Extended fog variables problem.:

      @greg-plamondon it’s preferred to use curl over wget. Curl doesn’t send a user afebt natively so your curl would look something like

      curl -Lkso /tmp/hinfo.sh ${web}/fog/service/hinfo.php -d “mac=$mac”

      I get the same result with the above.
      if I echo $web i get:

      http://192.168.10.238/fog/
      

      I changed what you had to:

      curl -Lkso /tmp/hinfo.sh ${web}fog/service/hostinfo.php -d "mac=$mac"
      

      I create a deploy debug task for a host.
      I type fog at the shell.
      i break out of the script after nfs is mounted.
      I cd to /images/postdownloadscripts
      ./fog.postdownload
      my fog.postdown;load looks like:

      #!/bin/bash
      . /usr/share/fog/lib/funcs.sh
      curl -Lkso /tmp/hinfo.sh ${web}fog/service/hostinfo.php -d "mac=$mac"
      . /tmp/hinfo.sh
      [[ -z $postdownpath ]] && postdownpath="/images/postdownloadscripts/"
      case $osid in
          5|6|7|9)
              clear
              [[ ! -d /ntfs ]] && mkdir -p /ntfs
              getHardDisk
              if [[ -z $hd ]]; then
                  handleError "Could not find hdd to use"
      
              fi
              getPartitions $hd
              for part in $parts; do
                  true
              done
              dots "Mounting partition $part"
              ntfs-3g -o force,rw $part /ntfs >/dev/null 2>&1
              if [[ ! $? -eq 0 ]]; then
                  echo "Failed"
                  debugPause
                  handleError "Failed to mount $part ($0)\n    Args: $*"
              fi
              echo "Done"
              debugPause
              pccompany=${hostname:2:1}
              case $pccompany in
                              2)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.bay_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                              5)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.canada_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                              7)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.jet_replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
                              *)
                      . ${postdownpath}fog.log
                      . ${postdownpath}fog.replace-files
                      . ${postdownpath}fog.drivers
                      . ${postdownpath}fog.ad
                      ;;
              esac
                  umount /ntfs
              ;;
          *)
              echo "Invalid OS"
              debugPause
              return
              ;;
      esac
      
      

      I then type echo $location and i get nothing…
      I verified that the /tmp/hinfo.sh exists.
      If i cat /tmp/hinfo.sh i get:

      Cannot view from browser
      
      posted in General
      Greg PlamondonG
      Greg Plamondon
    • RE: Extended fog variables problem.

      @george1421 said in Extended fog variables problem.:

      @george1421 I don’t have access to the exact code at the moment, but it should be something like this:

      wget -q --user-agent="" -O /tmp/hinfo.txt "$web/service/hostinfo.php?mac=$mac" 
      

      and that’s just for testing and i should leave it the other way when using in post init scripts?

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • RE: Extended fog variables problem.

      @george1421 said in Extended fog variables problem.:

      It depends on how/where you execute that script. The proper URL for testing is

      http://<fog_server_ip>/fog/service/hostinfo.php?mac=$mac
      

      The bad port makes me thing the parameter ${web} is not being expanded correctly.

      The command echo $web returned the proper server url so I changed it to:

      wget -q -O /tmp/hinfo.txt "$web/service/hostinfo.php?mac=$mac" 
      

      The file hinfo.txt is created in /tmp but if you cat the file you get:

      Cannot view from browser
      
      posted in General
      Greg PlamondonG
      Greg Plamondon
    • Extended fog variables problem.

      I have used this in the past to get additional information on a host but it doesn’t work any longer.
      https://forums.fogproject.org/topic/7740/the-magical-mystical-fog-post-download-script/3
      the /tmp/hinfo.txt file isn’t created and after executing the wget command from debug i get this:

      wget -q -O /tmp/hinfo.txt "http://${web}service/hostinfo.php?mac=$mac"
      wget: bad port spec 'http:'
      

      any help would be greatly appreciated.

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • Fog 1.5.2 Plugin system broken.

      You cannot remove plugins using the GUI once they are installed.
      Here is a VIDEO.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: Add Wipe disk to the PXE Menu

      @wayne-workman I searched for some time and couldn’t find anything. I will give those links a try.
      Thanks!

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • Add Wipe disk to the PXE Menu

      I was wondering if someone could help me add the Wipe Disk feature to the PXE menu with login required.
      Thanks.

      posted in General
      Greg PlamondonG
      Greg Plamondon
    • RE: Fog 1.5.2 Host module settings don't save

      @tom-elliott said in Fog 1.5.2 Host module settings don't save:

      Mind runnning:
      Select * from moduleStatusByHost where msHostID='0' or msModuleID='0'\G

      Here you go:
      alt text

      posted in Bug Reports
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421 said in 503 Service Unavailable Error:

      @greg-plamondon Thank you for the feedback, please keep (ab)using the FOG server. I’m interested in the durability of the configuration over time.

      I am interested in what Troye’s experiences with just the timeout adjustment and to see if he does run into a memory exhaustion issue. I did see one other post from the github side that ran into the memory exhaustion issue and if I remember correctly he bumped his config to 3GB and still had the issue.

      I am impressed with the speed of the GUI with these changes. Nice work guys keep up the good Work @george1421 @Tom-Elliott

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • Fog 1.5.2 Host module settings don't save

      I am having an issue with the host module settings not saving.
      Here is a VIDEO of the problem.

      Thanks!

      posted in Bug Reports
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421 said in 503 Service Unavailable Error:

      @greg-plamondon Ok then you are using/still have my config in place. That is fine, change the line from 500 to 2000, save and restart both services. Hopefully the 500 value did address your memory exhaustion issue. This value is commented out in the FOG installed version.

      Just make sure you don’t have two configuration files in the directory www.conf and fog.conf, you should be OK.

      That worked, I didn’t get the 503 error that time when imaging a PC!
      Thanks! I will submit a new ticket for my other issues…

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421 said in 503 Service Unavailable Error:

      /etc/php-fpm.d/www.conf

      I dont have a /etc/php-fpm.d/www.conf
      The only file in the php-fpm.d directory is fog.conf

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @tom-elliott said in 503 Service Unavailable Error:

      @greg-plamondon Can you grab a video or pic of the error as it’s trying to get into a deploy task?
      Sure thing:
      alt text

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @tom-elliott said in 503 Service Unavailable Error:

      @greg-plamondon You said your 503 stuff went away after following the guide? Is this true, or the 503 returned?

      it went away for the most part, now I only get it when deploying an image.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421 said in 503 Service Unavailable Error:

      /var/log/php-fpm/www-error.log

      There are no new entries in /var/log/php-fpm/www-error.log

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      ok, I thought it was fixed for me but I still get the 503 when doploying an image.
      If i refresh and look in tasks the task was created.

      here is my httpd error.log

      [Wed Apr 11 15:44:33.208616 2018] [proxy_fcgi:error] [pid 31003:tid 140654097147648] (70007)The timeout specified has expired: [client 192.168.10.170:50376] AH01075: Error dispatching request to :, referer: http://10fogserver.mtstrans.com/fog/management/index.php?node=host&sub=deploy&id=698&type=1
      

      I dont want to Hijack @Troye-Johnson thread… Should a create a new one?

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421 said in 503 Service Unavailable Error:

      @george1421 said in 503 Service Unavailable Error:
      For those with the error can you review this log file to see if it gives us any clue to why /var/log/php-fpm/www-error.log

      Its great we have php-fpm running, it does make quite a difference, but we need to understand why. I can’t seem to make it fail on my side, but I only have a handful of systems on my dev box.

      this is my log:

      [11-Apr-2018 14:53:04 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 35258 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 14:53:14 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 35258 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 14:53:27 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 35258 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 15:30:55 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 15:33:22 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:00:49 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:08:10 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:13:25 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:13:46 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:14:03 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:14:28 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:14:31 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:16:21 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:17:13 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:17:30 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:17:51 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:21:05 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:21:28 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:22:15 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:24:21 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:24:57 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:25:19 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:25:45 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 16:26:28 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:44:16 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:44:39 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:44:54 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:45:19 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:46:00 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:46:58 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:47:54 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:48:13 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:48:23 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:48:52 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:49:06 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      [11-Apr-2018 17:49:30 UTC] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260
      
      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @wayne-workman Yes, as we have more than one.

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421
      I followed your FPM/FastCGI howto you linked and the problem seems to be gone and considerably faster now.
      Thanks!

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • RE: 503 Service Unavailable Error

      @george1421 I am running Centos 7.4 x64

      posted in FOG Problems
      Greg PlamondonG
      Greg Plamondon
    • 1 / 1