Unable to install Fog on RHEL7 / CentOS7



  • I am getting an error below while installing Fog…

    • Checking package: mysql…OK
    • Checking package: mysql-server…Failed!

    Can anyone help? Thank you.


  • Moderator

    @dwithandelmo Great job, it would be interesting to know why RHEL7 is different then Cento7. But at the end of the day, as long as you have fog up and running with the least amount of extra headache then we’re good.

    As for 1.2.0 acting the same way on Centos7 I can kind of expect that too.



  • Thanks both of you for the help!

    I’ve just downloaded CentOS7 (3.10.0-327.el7.x86_64) and installed FOG 1.30 RC7 successfully without errors. I did tried to first install 1.20 on it and got the same error as on the RHEL, fyi


  • Moderator

    @george1421 I went through a complete install on cento7 without error.

    I did change selinux to disable and firewalld to disabled. Other than installing subversion and downloading rc7, and running the fog installer that is all I did. FOG installed correctly without error.


  • Moderator

    @dwithandelmo Do you have SELinux set to permissive?


  • Moderator

    @dwithandelmo So now you didn’t get as far as before, very strange.

    Let me spin up a new centos 7 vm and see if I get the same results.



  • @Wayne-Workman said in Unable to install Fog on RHEL7 / CentOS7:

    @dwithandelmo said in Unable to install Fog on RHEL7 / CentOS7:

    Where can I download 1.30-rc6?

    RC-7 is out now, follow instructions here:
    https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk

    I followed the instructions but getting this error

    • Stopping web service…Failed!

  • Moderator

    @dwithandelmo said in Unable to install Fog on RHEL7 / CentOS7:

    Where can I download 1.30-rc6?

    RC-7 is out now, follow instructions here:
    https://wiki.fogproject.org/wiki/index.php?title=Upgrade_to_trunk



  • @george1421

    yum install mysql tries to install mariadb but it’s already installed
    yum installmysql-server gives no package available

    Where can I download 1.30-rc6?


  • Moderator

    I guess two things come to mind

    1. Does you rhel computer have Internet access? If so is it by a proxy server?

    2. I would suggest that you install fog 1.30-rc6 instead of 1.2.0. 1.2.0 came out before rhel 7 was released. I might suspect some installer errors.

    On your rhel server, on the command line, what happens when you key in: yum install mysql mysql-server -y

    Do you get a more intellegent error?



  • Red Hat Enterprise Linux Server release 7.1 (Maipo)
    3.10.0-229.el7.x86_64

    fog_1.2.0

    There are no “bin/error_log” file. There is a foginstall.log though…

    ###########################################
    FOG
    Free Computer Imaging Solution
    http://www.fogproject.org/
    Developers:
    Chuck Syperski
    Jian Zhang
    Peter Gilchrist
    Tom Elliott
    GNU GPL Version 3
    
    ###########################################
    
    Version: 1.2.0 Installer/Updater
    
    What version of Linux would you like to run the installation for?
    
          1) Redhat Based Linux (Redhat, CentOS, Mageia)
          2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
    
    Choice: []1
    
    Staring Redhat / CentOS Installation.
    …/lib/redhat/functions.sh: line 1: n#: command not found
    
    FOG Server installation modes:
    * Normal Server: (Choice N)
    This is the typical installation type and
    will install all FOG components for you on this
    machine. Pick this option if you are unsure what to pick.
    
      * Storage Node: (Choice S)
          This install mode will only install the software required
          to make this server act as a node in a storage group
    
    More information:
    http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
    What type of installation would you like to do? [N]
    
    What is the IP address to be used by this FOG Server? [192.168.177.128]10.10.13.2
    
    Would you like to setup a router address for the DHCP server? [Y/n] n
    
    Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] n
    
    Would you like to change the default network interface from eth0?
    If you are not sure, select No. [y/N]y
    What network interface would you like to use? eno33554984
    
    Would you like to use the FOG server for DHCP service? [Y/n] n
    
    This version of FOG has internationalization support, would
    you like to install the additional language packs? [y/N]
    
    Would you like to donate computer resources to the FOG Project
    to mine cryptocurrency? This will only take place during active
    tasks and should NOT have any impact on performance of your
    imaging or other tasks. The currency will be used to pay for
    FOG Project expenses and to support the core developers working
    on the project. For more information see:
    
    http://fogproject.org/?q=cryptocurrency
    
    Would you like to donate computer resources to the FOG Project? [y/N]
    
    #####################################################################
    
    FOG now has everything it needs to setup your server, but please
    understand that this script will overwrite any setting you may
    have setup for services like DHCP, apache, pxe, tftp, and NFS.
    
    It is not recommended that you install this on a production system
    as this script modifies many of your system settings.
    
    This script should be run by the root user on Redhat or with sudo on Ubuntu.
    
    ** Notice ** Redhat users will need to disable SELinux and iptables in
    order to use FOG
    Please see our wiki for more information at http://www.fogproject.org/wiki
    
    Here are the settings FOG will use:
    Base Linux: Redhat
    Detected Linux Distribution: \S
    Installation Type: Normal Server
    Server IP Address: 10.10.13.2
    DHCP router Address:
    DHCP DNS Address:
    Interface: eno33554984
    Using FOG DHCP: 0
    Internationalization: 0
    Donate: 0
    
         DHCP will NOT be setup but you must setup your
         current DHCP server to use FOG for PXE services.
    
         On a Linux DHCP server you must set:
             next-server
    
         On a Windows DHCP server you must set:
             option 066 & 067
    
    	   Option 066 is the IP of the FOG Server: (e.g. 10.10.13.2)
    	   Option 067 is the undionly.kpxe file: (e.g. undionly.kpxe)
    
    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.
    
        Packages to be installed: httpd php php-cli php-common php-gd php-mysql mysql mysql-server tftp-server nfs-utils vsftpd net-tools wget xinetd tar gzip make m4 gcc gcc-c++ lftp
    
        Skipping package: httpd (Already installed)
    
        Installing package: php
        Warning: RPMDB altered outside of yum.
    
        Skipping package: php-cli (Already installed)
    
        Skipping package: php-common (Already installed)
    
        Installing package: php-gd
    
        Installing package: php-mysql
    
        Installing package: mysql
    
        Installing package: mysql-server
        Error: Nothing to do
    
        Installing package: tftp-server
    
        Skipping package: nfs-utils (Already installed)
    
        Skipping package: vsftpd (Already installed)
    
        Skipping package: net-tools (Already installed)
    
        Skipping package: wget (Already installed)
    
        Skipping package: xinetd (Already installed)
    
        Skipping package: tar (Already installed)
    
        Skipping package: gzip (Already installed)
    
        Skipping package: make (Already installed)
    
        Installing package: m4
    
        Skipping package: gcc (Already installed)
    
        Installing package: gcc-c++
    
        Installing package: lftp
    
    Confirming package installation.
    
        Checking package: httpd…OK
        Checking package: php…OK
        Checking package: php-cli…OK
        Checking package: php-common…OK
        Checking package: php-gd…OK
        Checking package: php-mysql…OK
        Checking package: mysql…OK
        Checking package: mysql-server…Failed!
    

    Script done on Sun 07 Aug 2016 06:19:48 AM PDT



  • Edit. Can’t delete



  • This post is deleted!

  • Moderator

    Wherever you put the fogproject repo, go into bin/error_log and you’ll find a file with the version number on it. This is all the redirected output from the installer. Please post the last 30 or so lines from that file here.

    Also, can you clarify what version of FOG you’re trying to install? And is this RHEL7 or CentOS 7?


Log in to reply
 

344
Online

38751
Users

10577
Topics

100136
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.