• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Installer fails on Fedora 23 - 5864

Scheduled Pinned Locked Moved Solved
Bug Reports
2
5
2.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    Wayne Workman
    last edited by Wayne Workman Jan 5, 2016, 11:11 PM Jan 6, 2016, 5:10 AM

    FOG 5864 (cloud number)
    Fedora 23 Server fully updated.

    It may or may not be noteworthy to say that I deleted the /opt/fog/.fogsettings file prior to running the installer… to test out some changes I made to the installer (The install scripts don’t even get to my changes, they fail prior to them).

    Here is the output of cat /var/log/foginstall.log

    
                      +------------------------------------------+
                      |     ..#######:.    ..,#,..     .::##::.  |
                      |.:######          .:;####:......;#;..     |
                      |...##...        ...##;,;##::::.##...      |
                      |   ,#          ...##.....##:::##     ..:: |
                      |   ##    .::###,,##.   . ##.::#.:######::.|
                      |...##:::###::....#. ..  .#...#. #...#:::. |
                      |..:####:..    ..##......##::##  ..  #     |
                      |    #  .      ...##:,;##;:::#: ... ##..   |
                      |   .#  .       .:;####;::::.##:::;#:..    |
                      |    #                     ..:;###..       |
                      |                                          |
                      +------------------------------------------+
                      |      Free Computer Imaging Solution      |
                      +------------------------------------------+
                      |  Credits: http://fogproject.org/Credits  |
                      |       http://fogproject.org/Credits      |
                      |       Released under GPL Version 3       |
                      +------------------------------------------+
    
    
                            Version: 5864 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)
              3) Arch Linux
    
      Choice: [1]   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/s (Normal/Storage)] 
      What is the IP address to be used by this FOG Server? [192.168.1.7]
      Would you like to change the default network interface from ens3?
      If you are not sure, select No. [y/N] 
      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.1.1]
      Would you like to setup a DNS address for
          the DHCP server and client boot image? [Y/n]   What is the IP address to be used for DNS on
          the DHCP server and client boot image? [209.222.18.222] 
      Would you like to use the FOG server for DHCP service? [y/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 for this setup, 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.            #
         #      It will prepend the running with sudo if root is not set      #
         ######################################################################
         #           ** 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: Fedora
                             Server IP Address: 192.168.1.7
                                    Interface: ens3
                            Installation Type: Normal Server
                                       Donate: 0
                                Internationalization: 0
                                Image Storage Location: 
                                  Using FOG DHCP: Yes
                            DHCP router Address: 192.168.1.1
                            DHCP DNS Address: 209.222.18.222
    
    
     * Are you sure you wish to continue (Y/N) 
                                  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)  * Setting password for FOG User...............................OK
     * New password set for:
                    username: fog
                    password: H9+ifm9grK6fHxoutvJrn9qJ/cV4MBWJaLW6FDgqtr4=
    
     * 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!
    

    Here is the output of cat /var/log/fog_error_5864.log

    /usr/bin/lsb_release
    /usr/bin/systemctl
    grep: /opt/fog/.fogsettings: No such file or directory
    ../lib/common/functions.sh: line 426: epel-release: command not found
    New password: Retype new password: Changing password for user fog.
    passwd: all authentication tokens updated successfully.
    Failed to execute operation: No such file or directory
    ● mariadb.service - MariaDB 10.0 database server
       Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
       Active: active (running) since Tue 2016-01-05 22:47:52 CST; 2s ago
      Process: 21611 ExecStopPost=/usr/libexec/mysql-wait-stop (code=exited, status=0/SUCCESS)
      Process: 21836 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS)
      Process: 21697 ExecStartPost=/usr/libexec/mysql-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
      Process: 21661 ExecStartPre=/usr/libexec/mysql-prepare-db-dir %n (code=exited, status=0/SUCCESS)
      Process: 21638 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
     Main PID: 21695 (mysqld_safe)
       CGroup: /system.slice/mariadb.service
               ├─21695 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
               └─21806 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/var/lib/mysql/mysql.sock
    
    Jan 05 22:47:50 fog-server systemd[1]: Starting MariaDB 10.0 database server...
    Jan 05 22:47:50 fog-server mysqld_safe[21695]: 160105 22:47:50 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
    Jan 05 22:47:50 fog-server mysqld_safe[21695]: 160105 22:47:50 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    Jan 05 22:47:52 fog-server systemd[1]: Started MariaDB 10.0 database server.
    sed: no input files
    sed: no input files
    

    I took a look at the sed statements in lib/common/functions.sh but I couldn’t see any syntax errors… I’m not all that great with sed TBH. I also looked at the redhat config and found out what $phpini is supposed to be set to, which is /etc/php.ini and that file does exist on my FOG server…

    not sure about this one… 😕

    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
    Daily Clean Installation Results:
    https://fogtesting.fogproject.us/
    FOG Reporting:
    https://fog-external-reporting-results.fogproject.us/

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jan 6, 2016, 10:30 AM

      What’s the output of systemctl status -l httpd?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      W 2 Replies Last reply Jan 6, 2016, 11:33 PM Reply Quote 0
      • W
        Wayne Workman @Tom Elliott
        last edited by Jan 6, 2016, 11:33 PM

        @Tom-Elliott said:

        systemctl status -l httpd

        [root@fog-server bin]# systemctl status -l httpd
        ● httpd.service - The Apache HTTP Server
           Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
           Active: inactive (dead) since Tue 2016-01-05 22:40:31 CST; 18h ago
          Process: 10331 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
         Main PID: 21280 (code=exited, status=0/SUCCESS)
           Status: "Total requests: 187; Idle/Busy workers 100/0;Requests/sec: 0.000659; Bytes served/sec:  94 B/sec"
        
        Jan 02 15:48:42 fog-server systemd[1]: Starting The Apache HTTP Server...
        Jan 02 15:48:42 fog-server httpd[21280]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::5054:ff:feb4:8867. Set the 'ServerName' directive globally to suppress this message
        Jan 02 15:48:43 fog-server systemd[1]: Started The Apache HTTP Server.
        Jan 03 03:31:02 fog-server httpd[10331]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::5054:ff:feb4:8867. Set the 'ServerName' directive globally to suppress this message
        Jan 03 03:31:02 fog-server systemd[1]: Reloaded The Apache HTTP Server.
        Jan 05 22:40:30 fog-server systemd[1]: Stopping The Apache HTTP Server...
        Jan 05 22:40:31 fog-server systemd[1]: Stopped The Apache HTTP Server.
        Jan 05 22:47:54 fog-server systemd[1]: Stopped The Apache HTTP Server.
        Jan 06 17:32:57 fog-server systemd[1]: Stopped The Apache HTTP Server.
        [root@fog-server bin]# 
        
        

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • W
          Wayne Workman @Tom Elliott
          last edited by Jan 7, 2016, 12:50 AM

          @Tom-Elliott ok this is because in lib/common/functions.sh the variable $phpini is empty for these two lines:

          `sed -i 's/post_max_size\ \=\ 8M/post_max_size\ \=\ 100M/g' $phpini
          sed -i 's/upload_max_filesize\ \=\ 2M/upload_max_filesize\ \=\ 100M/g' $phpini
          

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          T 1 Reply Last reply Jan 7, 2016, 1:06 AM Reply Quote 0
          • T
            Tom Elliott @Wayne Workman
            last edited by Jan 7, 2016, 1:06 AM

            @Wayne-Workman Already confirmed and should now be fixed.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              4/5
              Last post

            189

            Online

            12.1k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project