• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Kiweegie
    3. Posts
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 30
    • Posts 204
    • Best 18
    • Controversial 0
    • Groups 0

    Posts made by Kiweegie

    • Replication runaway on one storage node

      HI all

      apologies first of all - I’ve posted so many problems and questions lately I’m beginning to feel like a spammer 🙂

      Due to lots of help from Tom and co I have a fully functional FOG Server once more running on latest trunk. That one is now the single master node for our head office. What used to be the head office storage node I recently rebuilt (due issues with the storage node installer) as a master node serving our remote sites.

      I have set up the remote sites as storages nodes within this master server and limited the bandwidth on each storage node to 500kbps to avoid saturating the links.

      There is only a single image on this server of 6.9GB which has already been replicated successfully to all 8 remote storage nodes.

      I noticed this evening on our PRTG server that there was really high network utilisation from the remote master node to a single storage node which is eating up 50% of our head office link. Given that the image is already on the storage node should logic not kick in to stop replication from overwriting the image again? I’m assuming that’s what’s happening.

      I bounced the master server and no change then did same on the node and that seems to have done the trick. Curious to know how the replication code works so I can more accurately troubleshoot should this happen again. And how robust everyone is finding it to be?

      cheers, Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Creating snapin for.msi driver installer

      @Jbob ah nice one - not aware of that, thanks for the heads up.

      regards Kiweegie

      posted in FOG Problems
      K
      Kiweegie
    • RE: Creating snapin for.msi driver installer

      @Rusty Hi Rusty

      amend Snapin Run With field to

      c:\windows\system32\msiexec.exe
      

      Update and try deploying again,

      cheers, Kiweegie

      posted in FOG Problems
      K
      Kiweegie
    • RE: Snapin Questions

      @LJedi Hi there, snapins will make your life a lot easier. Once you get the hang of them (and they’re really not that hard) you’ll wonder how you managed without them. The pure joy to be had from deploying a new application to a group of 10’s or 100’s of machines in a couple of clicks and then just getting on with your day is pretty awesome 🙂

      I tend to forget things so I’ve created myself an idiots guide to most things I come across in FOG-land, snapins being no exception. I’ll outline the bits and pieces I’ve picked up, some of which you may already know.Jbobs answer was pretty succinct. I’m just going to dumb it down a little.

      While Jbobs description of snapins as files which get executed remotely is spot on, the real benefit of using snapins is in conjunction with silent switches so the installation happens without your users seeing anything going on. This avoids them having to call the Helpdesk because “some weird screen just popped up on my 'puter!”

      First off default FOG installation has a limit set on the size of snapins which can be uploaded to the server. This is configured in the php config file which in CentOS can be found at /etc/php.ini. You want to edit this file and locate these 3 sections and amend from 128M or 100M to 1900M

      memory_limit = 1900M
      post_max_size=1900M 
      upload_max_filesize=1900M
      

      Save the file and restart httpd service to have the changes kick in

      service httpd restart
      

      As far as actually creating snapins - the 2 biggest gotchas I found are:

      • snapin names can’t have spaces
      • uploaded files must be unique

      When naming the snapin in the UI either use CamelCase or throw in an underscore to split words up.

      The actual executable eg setup.exe is uploaded to FOG server in /opt/fog/snapins directory, not the name you give it in the web UI. The server won’t permit files of the same name in one directory. So if you have multiple versions of an installer for instance or need to create an uninstall snapin, make sure to rename the executable or MSI file so it’s unique. I add a version number or append _install, _uninstall depending on the situation.

      I have had greatest success with MSI files. To create a snapin from an MSI file you need to add in the following details.

      Snapin name - No spaces
      Snapin run with - c:\windows\system32\msiexec.exe
      Snapin run with argument use either /i or /x
      /i = install
      /x = uninstall
      Snapin file - upload in .MSI format. If doing an uninstaller as well, amend the file name prior to upload so its different on server.
      Snapin arguments - /qn - this is the the “no UI” switch for the MSI installer

      Some EXE files which come with well documented silent install switches also work well but you sometimes have to hunt high and low to find the switches or use a bit of trial and error,

      We use screenpresso screen capture tool at work and that has decently documented switches. Screenshot of this here. Note that screenpresso downloads always show as just screenpresso.exe - due to dupe file name mentioned earlier I rename this based on version before uploading to FOG.

      0_1452207146643_2016-01-07_22h51_16.png

      I’ve never had much joy with deploying .bat or .cmd files via FOG snapin but will be giving that a go again shortly based on Jbobs comment earlier. What I’ve used instead is create the .bat as normal then use BatToExe converter to convert to exe then just add a name and upload the .exe to FOG - all silent switches go in the .bat file so nothing needs added to FOG.

      TeraTerm is one such application I’ve deployed in this manner using this code. We have preconfigured keyboard, window and font settings using the keyboard.cnf and teraterm.ini files.

      @echo off
      
      :: script to copy teraterm.exe and config files to temp folder and install from there
      :: the /y switch tells xcopy to overwrite file at destination if it already exists.
      
      xcopy /y "\\server-share\TeraTerm\teraterm-4.89.exe" %TEMP%
      xcopy /y "\\server-share\TeraTerm\KEYBOARD.CNF" %TEMP%
      xcopy /y "\\server-share\TeraTerm\TERATERM.ini" %TEMP%
      
      :: install teraterm using the keyboard.cnf and teraterm.ini files specified
      %TEMP%\teraterm-4.89.exe /VERYSILENT
      
      :: lastly move the copied teraterm.ini and keyboard.cnf files into program files directory
      xcopy /y %TEMP%\KEYBOARD.CNF "C:\Program Files (x86)\TeraTerm\"
      xcopy /y %TEMP%\TERATERM.ini "C:\Program Files (x86)\TeraTerm\"
      

      Save as a bat file, run through BatToExe to output as .exe and upload to FOG and bam - done. Though you may not even need to save as a .exe. I shall test that myself tomorrow.

      Give it a go on a test machine and see how you get on - any questions feel free to ask.

      Other much more learned and savvy folks will no doubt chime in with even better suggestions or pointers should you need them.

      cheers, Kiweegie.

      posted in General
      K
      Kiweegie
    • RE: FOG forcing schema update post image upload

      Tom Elliot has resolved the installer not asking for any info issue but now fails with error:

      * Adding needed repository....................................Failed!
      

      I’ve checked the log at /var/log/fog_error_5893.log which shows

      Package epel-release-6-8.noarch already installed and latest version
      Nothing to do
      package http://rpms.remirepo.net/enterprise/remi-release-6.7.rpm is not installed
      Loaded plugins: fastestmirror
      Setting up Install Process
      Cannot open: http://rpms.remirepo.net/enterprise/remi-release-6.7.rpm. Skipping.
      Error: Nothing to do
      ../lib/common/functions.sh: line 439: yum-config-manager: command not found
      

      So the remi repo needed to be enabled, doing this alone was not sufficient to fix problem, Tom Elliot also had to enable yum-config-manager. Tom has updated this in git and i’m now running on trunk@4617

      Tom/Wayne, thanks again for your efforts, really do appreciate it.

      regards Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: FOG forcing schema update post image upload

      @Wayne-Workman HI Wayne

      while looking at the above I actually saw another alert on the box and have found one of the problems at least and the cause of the SQL crash etc - no blasted disk space!!!

      This is on a VM with 150GB assigned but the OS for some completely unknown reason was showing as only 50GB and by the time I’d re-added all my original images the space was hosed.

      I’ve nuked the VM and built from scratch to be on safe side and OS now sees the correct amount of space. Ran into a new hurdle with the very latest git version however during install.

      No prompt during installation for normal/storage node, IP address selection, DHCP or DNS etc.

      Just the following:

      ######################################################################
           #           ** Notice ** FOG is difficult to setup securely          #
           #        SELinux and IPTables are usually asked to be disabled       #
           #           There have been strides in adding capabilities           #
           #          The recommendations would now be more appropriate         #
           #    to set SELinux to permissive and to disable firewall for now.   #
           #  You can find some methods to enable SELinux and maintain firewall #
           #   settings and ports. If you feel comfortable doing so please do   #
           ######################################################################
           #            Please see our wiki for more information at:            #
           ######################################################################
           #             https://wiki.fogproject.org/wiki/index.php             #
           ######################################################################
      
                            Here are the settings FOG will use:
                                        Base Linux:
                            Detected Linux Distribution: CentOS
                                    Server IP Address:
                                        Interface:
      
      
       * Are you sure you wish to continue (Y/N) y
      
                                    Installation Started
      
                        Installing required packages, if this fails
                     make sure you have an active internet connection.
      
       * Adding needed repository....................................OK
       * Preparing Package Manager...................................OK
       * Packages to be installed:
      
      
      
      
       * Updating packages as needed.................................OK
      
                              Confirming package installation.
      
      
                                   Configuring services.
      
      
       * What is the storage location for your images directory? (/images)
      

      so while I’ve resolved the initial cause of the schema update page showing up I need some assistance looking at latest installer please (trunk@4613)

      cheers Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: FOG forcing schema update post image upload

      @Tom-Elliott Hi Tom, thanks for you efforts last night sorting this issue for me over teamviewer. I have been configuring the FOG server today, re importing hosts insstalling plugins and generally getting it back to where it was. I’ve encountered similar error/issue as before where the FOG server database decided to screw up.

      Initially was having problems logging in - checked status of mysqld and httpd both showed up ok. Bounced the box and on restart same issues - checked status and httpd had not started. Started manually and did chkconfig httpd on tried restarting again to check httpd works - both httpd and mysqld running.

      However. Isn’t there always one of them? Or a but? On launching Web GUI I’m once more presented with the Schema update page

      0_1452181260218_2016-01-07_15h38_48.png

      I’ve tried clicking the Export-Backujp DB button but nothing happens at all - opens URL http://My_Fog_Server/fog/management/export.php?node=schemaupdater and then hangs.

      Quick check of the MySQL docs shows --allowkeywords should actually be --allow-keywords - guess the button just calls the code written, perhaps needs an update.

      I’ve attached output of /var/log/fog_error_5866.log

      0_1452181730183_fog_error_5866.log

      Trying a service mysqld restart stops the server ok but now fails to start it so something is royally %(&^ here. Oddly on restarting the server completely mysqld starts but httpd is stopped. Starting manually now throws error.

      [root@my_fog_server ~]# service mysqld status
      mysqld (pid 3225) is running...
      [root@my_fog_server ~]# service httpd status
      httpd is stopped
      [root@my_fog_server ~]# service httpd start
      Starting httpd: [Thu Jan 07 15:55:28 2016] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
                                                                 [  OK  ]
      

      /etc/httpd/conf.d/fog.conf shows

      <VirtualHost *:80>
          KeepAlive Off
          ServerName My_FOG_IP
          DocumentRoot /var/www/html/
          #RewriteEngine On
          #RewriteRule /management/other/ca.cert.der$ - [L]
          #RewriteRule /management/ https://%{HTTP_HOST}%{REQUEST_URI}%{QUERY_STRING} [R,L]
      </VirtualHost>
      <VirtualHost *:443>
          KeepAlive Off
          Servername My_FOG_IP
          DocumentRoot /var/www/html/
          SSLEngine On
          SSLCertificateFile /var/www/html/fog//management/other/ssl/srvpublic.crt
          SSLCertificateKeyFile /opt/fog/snapins/ssl/.srvprivate.key
          SSLCertificateChainFile /var/www/html/fog//management/other/ca.cert.der
      </VirtualHost>
      

      There is also a <VirtualHost default:443> stanza in /etc/httpd/conf.d/ssl.conf

      To remind you this was on a clean minimal install of CentOS 6.5 upgraded to 6.7 via yum update and with only git installed pre FOG installation. Its a virtual machine running on VSphere 6.0 in case that has any bearing on things.

      cheers, Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: FOG forcing schema update post image upload

      @Wayne-Workman HI Wayne, must have been having a senior moment. Here’s what you’re after.

      /usr/bin/lsb_release
      grep: /opt/fog/.fogsettings: No such file or directory
      ../lib/common/functions.sh: line 397: epel-release: command not found
      curl: (22) The requested URL returned error: 404 Not Found
      error: skipping http://rpms.famillecollet.com/enterprise/remi-release-6.7.rpm - transfer failed
      Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.7.rpm
      New password: Retype new password: Changing password for user fog.
      passwd: all authentication tokens updated successfully.
      Stopping mysqld:  ESC[60G[ESC[0;32m  OK  ESC[0;39m]
      Starting mysqld:  ESC[60G[ESC[0;32m  OK  ESC[0;39m]
      mysqld (pid  15732) is running...
      Stopping httpd: ESC[60G[ESC[0;31mFAILEDESC[0;39m]
      php-fpm: unrecognized service
      

      So its falling over at the php-fpm piece again…

      I just tried installing php-fpm again manually and then running FOG installer again

      That gets a little further but fails here

       * Setting up and starting MySQL...............................OK
       * Backing up user reports.....................................OK
       * Stopping web service........................................OK
       * Is the MySQL password blank? (Y/n)
       * Setting up Apache and PHP files.............................Failed!
      

      Checking log file again I get this

      /usr/bin/lsb_release
      grep: /opt/fog/.fogsettings: No such file or directory
      ../lib/common/functions.sh: line 397: epel-release: command not found
      curl: (22) The requested URL returned error: 404 Not Found
      error: skipping http://rpms.famillecollet.com/enterprise/remi-release-6.7.rpm - transfer failed
      Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.7.rpm
      New password: Retype new password: Changing password for user fog.
      passwd: all authentication tokens updated successfully.
      Stopping mysqld:  ESC[60G[ESC[0;32m  OK  ESC[0;39m]
      Starting mysqld:  ESC[60G[ESC[0;32m  OK  ESC[0;39m]
      mysqld (pid  16225) is running...
      Stopping httpd: ESC[60G[ESC[0;31mFAILEDESC[0;39m]
      Stopping php-fpm: ESC[60G[ESC[0;31mFAILEDESC[0;39m]
      sed: no input files
      sed: no input files
      

      Not sure where to go from there.

      cheers Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: FOG forcing schema update post image upload

      @Wayne-Workman Just to rule out issues with my work environment I’ve spun up two local VMs at home one on CentOS 6.7, one on Cent0S 7.

      The Centos 6 failed in same manner as my work machine described earlier.

      CentOS 7 machine I noticed (to digress briefly again) that the DHCP part of the installer picks up the DHCP address (I’ve used DHCP instead of statics on tests so that may be reason, though CentOS 6 did not so this is more likely a 6 vs 7 thing)

        Would you like to setup a router address for the DHCP server? [Y/n]
        What is the IP address to be used for the router on
            the DHCP server? [192.168.245.2]
      

      However above is a moot point as CentOS 7 failed with same error

      * Setting up and starting MySQL...............................Failed!
      

      Again 2nd installation attempt displays fog user and password but subsequently fails with same error as above.

      regards Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: FOG forcing schema update post image upload

      @Wayne-Workman Thanks Wayne, checked /var/log/fog… and there were logs for replication etc but no MySQL logs.

      I was in a hurry so flattened the VM and built afresh however now faced with a new issue, similar to one I reported on a storage node on this post albeit this time its a Normal Node.

      Pulled latest git this evening 2000 GMT (git log shows trunk@4603)

      And install fails at this point:

       * Installing package: gcc.....................................OK
       * Installing package: gcc-c++.................................OK
       * Installing package: lftp....................................OK
       * Installing package: php-mysqlnd.............................Failed!
      

      This is on a fresh minimal install of CentOS 6.7 with all updates and nothing other than git installed.

      I recalled that on the other call (or possibly another, sorry its late here and its been a long fraught day…) you mentioned about installing twice. May also have been someone else completely 🙂

      So I tried installing again and this time got to the /images selection part of the install but failed here:

       * What is the storage location for your images directory? (/images)
       * Setting up fog user.........................................OK
      OK
       * Setting up and starting MySQL...............................OK
       * Backing up user reports.....................................OK
       * Stopping web service........................................Failed!
      

      What the heck, a third install attempt, this time failed same place as above but this time also added in a fog username and password

      * New password set for:
                      username: fog
                      password: LlmqulgCso1w5i0IjN4L/O3HjsJXU6kNDC94QElxopY=
      

      Also while I think of it been meaning to ask this for a while, is there a reason during the DHCP portion of the installer that it includes the (eth*) at the prompt? e.g.

      What is the IP address to be used for the router on
            the DHCP server? [eth0]10.***.******
      

      The very first time I saw this I was a little nonplussed as there was no obvious “prompt”. All other portions of the installer where they include options in brackets allow a simple enter key tap to accept the default entry within the brackets for example

      What type of installation would you like to do? [N/s (Normal/Storage)]
      

      New users may initially be thrown at this point is my only reason for raising this.

      Having typed all the above wondering if better to log on 2 separate new calls - let me know if thats preferred.

      cheers, Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • FOG forcing schema update post image upload

      Running trunk@:4542 version of FOG and had been running well. I uploaded a new (pre-sysprep) image for Windows 7 successfully this morning. Ran unattend.xml on the reference pc then ran image upload for a postsysprep image (this is on same box). That failed but due to syntax errors in the unatend.xml file however weirdly when I tried to access FOG server to redeploy the presysprep image back to that machine i was presented with the schema update page.

      Clicking the install/upgrade button takes me to an error page, beginning of which shows as follows. I’ve uploaded complete error log as text attachment.

      0_1452094345876_schema_update_error_06Jan16.txt

      ***Install/Upgrade Successful!

      The following errors occured

      Update ID: 1 - 0

      Database Error:

      Connection refused, Message: Check that database is running

      Database SQL:

      CREATE DATABASE fog

      Update ID: 1 - 1

      Database Error:

      Connection refused, Message: Check that database is running

      Database SQL:

      CREATE TABLE fog.groupMembers ( gmID int(11) NOT NULL auto_increment, gmHostID int(11) NOT NULL, gmGroupID int(11) NOT NULL, PRIMARY KEY (gmID),
      KEY new_index (gmHostID),
      KEY new_index1 (gmGroupID) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC***

      I tried running installer again as a “quick fix” but fails at:

       * Setting up and starting MySQL...............................Failed!
      

      I can’t see anything obvious in /var/log/mysqld.log either.

      Anyone else seen this or know where I can look to check for clues?

      cheers Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      @Wayne-Workman Hi Wayne, I had to give up on the Storage node set up and go with a separate Normal node as I need to get this back up and running sooner than later 🙂

      The node which is causing issue is the storage node for head office so I’m just going to set up that box as a normal node instead and split the roles so we have one node for head office and one for the remote sites. It may even make things simpler.

      I can spin up another Storage node at some point to aid in diagnosis of the original issue but for now my priority is getting our FOG solution back up and running again.

      regards Kiweegie

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      @george1421 Hi George

      not difficult at all based on those instructions let me give that a crack.

      Kiweegie

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      @George1421 Hi George thanks for the effort. I’d actually reinstalled FOG Storage Node again using Centos 6.5 before I saw your post. I’m seeing same error again but gratified its not just me…

      I thought about rebuilding this as a normal node instead and have one normal node to govern my remote sites and one for main office. I get a failure message on normal node set up too now.

       * Setting up storage..........................................Failed!
      

      GUI shows Storage nodes and Storage groups etc and seems to be editable so perhaps a red herring though I’ve found another post from yourself George with the same issue.

      I’m not going to throw too much more effort at new normal node setup for the time being and will sit tight hoping on resolutuion of the original storage node issue.

      regards Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      Well just for giggles I tried this on a vanilla install of Ubuntu 14.04.3 with only SSH installed and got this

           What is the storage location for your images directory? (/images)
       * Setting up fog user............................................OK
      OK
       * Stopping web service........................................OK
       * Setting up Apache and PHP files.............................OK
       * Testing and removing symbolic links if found................OK
       * Backing up old data.........................................OK
       * Copying new files to web folder.............................OK
       * Creating config file........................................OK
       * Downloading inits, kernels, and the fog client..............OK
       * Enabling apache and fpm services on boot....................Failed!
      

      Assuming the installer should still work with Ubuntu this would look to be an issue with the FOG installer.

      I’m going to try minimal Centos 6.5 install next then Centos 7 though from Waynes comments he had same issue on a Centos 7 Storage node installation. What is different in the Normal vs Storage node installation that could cause this?

      regards Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      @Wayne-Workman Hi Wayne, I’ve got Centos 6.5 on all the other FOG boxes (main server and 7 storage nodes plus this problem one). Would you recommend I upgrade to Centos 7 going forward? Good excuse to start playing with version 7 I guess but want to keep as close to FOG best practice as possible.

      Don’t expect to hear back from anyone til new year now. Go crack open a beverage of your choice (I’m leaning towards an 18 year old Balvennie myself) and have a great Christmas everyone… 🙂

      Cheers, Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      Ok I restarted server and tried again, no longer hanging at Adding needed repository… but still hangs at Stopping web service…Failed!

      So I tried installing php-fpm manually which fails due to dependency

      # yum install php-fpm
      Loaded plugins: fastestmirror
      Setting up Install Process
      Loading mirror speeds from cached hostfile
       * base: mirror.mhd.uk.as44574.net
       * elrepo: lon.mirror.rackspace.com
       * epel: epel.check-update.co.uk
       * extras: mirror.ukhost4u.com
       * remi-safe: remi.check-update.co.uk
       * rpmforge: ftp.nluug.nl
       * updates: mirror.ukhost4u.com
      Resolving Dependencies
      --> Running transaction check
      ---> Package php-fpm.x86_64 0:5.3.3-46.el6_6 will be installed
      --> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-fpm-5.3.3-46.el6_6.x86_64
      --> Finished Dependency Resolution
      Error: Package: php-fpm-5.3.3-46.el6_6.x86_64 (updates)
                 Requires: php-common(x86-64) = 5.3.3-46.el6_6
                 Installed: php-common-5.6.16-1.el6.remi.x86_64 (@remi-php56)
                     php-common(x86-64) = 5.6.16-1.el6.remi
                 Available: php-common-5.3.3-40.el6_6.x86_64 (base)
                     php-common(x86-64) = 5.3.3-40.el6_6
                 Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
                     php-common(x86-64) = 5.3.3-46.el6_6
       You could try using --skip-broken to work around the problem
       You could try running: rpm -Va --nofiles --nodigest
      
      

      So I tried installing php-common and got

      Package matching php-common-5.3.3-46.el6_6.x86_64 already installed. Checking for update.
      Nothing to do
      

      So it looks like the php-fpm FOG tries to install requires a lower version of php-common than is installed. So quick fix was to remove php-common then install php-fpm and let yum sort out dependencies.

      The install progresses further but again fails as follows.

       * Stopping web service........................................OK
       * Setting up Apache and PHP files.............................OK
       * Testing and removing symbolic links if found................OK
       * Backing up old data.........................................OK
       * Copying new files to web folder.............................OK
       * Creating config file........................................OK
       * Downloading inits, kernels, and the fog client..............OK
       * Enabling apache and fpm services on boot....................OK
       * Creating SSL CA.............................................OK
       * Creating SSL Private Key....................................OK
       * Creating SSL Certificate....................................OK
       * Creating auth pub key and cert..............................OK
       * Resetting SSL Permissions...................................OK
       * Setting up SSL FOG Server...................................OK
       * Restarting Apache2 for fog vhost............................OK
       * Changing permissions on apache log files....................chmod: cannot access `/var/log/httpd/error_log': No such file or directory
      chmod: cannot access `/var/log/httpd/access_log': No such file or directory
      OK
       * Setting up storage..........................................Failed!
      

      So I created the missing file - actually 2 files as it also failed asking for error_log too.

      touch /var/log/httpd/access_log
      touch /var/log/httpd/error_log
      

      Then re-ran installer which now runs all the way through but finally fails at this:

       * Setting up storage..........................................OK
       * Setting up and starting TFTP and PXE Servers................Failed!
      

      I found a couple of links on the forum with this error but neither had solutions which worked for me. Specifically this link and this one.

      Hopefully someone will see this post holidays and have a solution.

      regards Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Stopping web service... Failed! during Storage Node install

      Thanks Wayne

      Think systemctl is a systemd command so works on Centos 7 but not 6.5. I tried just running service httpd stop and service php-fpm stop but errored out saying httpd not running and php-fpm not installed.

      I’ve therefore removed the >/dev/null 2>&1 bits from lines 943, 946, 948, 949 in trunk/lib/common/functions.sh and re-ran installer but now just hangs at this.

        This script should be run by the root user on Fedora, or with sudo on Ubuntu.
      
      
        Here are the settings FOG will use:
               Base Linux: Redhat
               Detected Linux Distribution: CentOS
               Installation Type: Storage Node
               Server IP Address: <storage_node_IP>
               Interface: eth0
               MySql Database Host: <Main_FOG_Server_FQDN>
               MySql Database User: fogstorage
               MySql Database Password: [Protected]
      
      
        Are you sure you wish to continue (Y/N) y
      
        Installation Started...
      
        Installing required packages, if this fails
        make sure you have an active internet connection.
      
       * Adding needed repository....................................
      

      I have to do CTRL+C to terminate the installation at this point.

      regards Kiweegie

      posted in FOG Problems
      K
      Kiweegie
    • Stopping web service... Failed! during Storage Node install

      Good afternoon and Merry Christmas (when it comes) to one and all.

      I’ve just tried installing new storage node (git version 4542) and it fails at this stage:

       * Skipping package: httpd.....................................(Already Installed)
       * Skipping package: php-process...............................(Already Installed)
       * Updating packages as needed.................................OK
      
        Confirming package installation.
      
       * Checking package: httpd.....................................OK
       * Checking package: php-process...............................OK
      
        Configuring services.
      
      
           What is the storage location for your images directory? (/images)
       * Setting password for FOG User...............................OK
       * New password set for:
                      username: fog
                      password: *************
      
       * Stopping web service........................................Failed!
      
      

      I’ve seen this post reference Centos 7 but this is on Centos 6.5. Despite that I did try solution from Wayne in the other call re installing as normal node up to php-fpm install then cancelling and reinstalling as storage node, didn’t work for me unfortunately.

      Has anyone else seen this and have any other suggestions at all?

      regards, Kiweegie.

      posted in FOG Problems
      K
      Kiweegie
    • RE: Remove Legacy client and replace with latest new client?

      @Wayne-Workman Sorry Wayne ignore last re fog certificate. Issue was only on my laptop and has since been resolved.

      posted in FOG Problems
      K
      Kiweegie
    • 1 / 1