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

    Fog installation and cofiguration on ubuntu 18.04 / 19.04 No DHCP Option

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    49
    6.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.
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth

      @chasosnature said in Fog installation and cofiguration on ubuntu 18.04:

      i descided to upgraded 1.4.4 to 1.5.7 instead of fresh install…why?..in a production environment we might not have that luxury of trashing and re-installing, an upgrade from one version to another without loss of data would be ideal.

      Over the weekend I have done a fair amount of upgrade testing to make sure a major change I have been working on is not causing any trouble for people who upgrade. Tested 1.4.4 as well as other versions and all upgraded perfectly fine! This is not to say that things cannot go wrong. The more customized an install is the less chance we have. There is no guarantee the installer works perfectly right in all situations.

      from today i am dealing with 1.5.7 fog version.
      i will only get back to the 1.4.4 version on 18.04 …

      Good choice. There is absolutely no point in using the very dated 1.4.4. We put a lot of our time and effort into improving FOG and helping people to get it up. We simply can’t afford the time to backport all the fixes to older version on top of that.

      i have watched multiple youtube videos , all i see these guys doing is install the fog server pxe a live system and fog picks up.

      I think you just got Tom’s message the wrong way. What we was trying to say is that you need to have an installed client system to capture an image from before you can deploy it to other machines. It’s correct that you just need to setup FOG server and if your network setup is right you can just PXE boot clients and they’ll boot to the FOG menu for registration and things!

      Now about the database issue:

      /var/lib/mysql-5.7:
      total 110672
      drwx------  6 mysql mysql     4096 Nov 25 12:45 .
      drwxr-xr-x 76 root  root      4096 Nov 25 12:46 ..
      -rw-r-----  1 mysql mysql       56 Nov 23 12:07 auto.cnf
      -rw-------  1 mysql mysql     1680 Nov 23 12:07 ca-key.pem
      -rw-r--r--  1 mysql mysql     1112 Nov 23 12:07 ca.pem
      -rw-r--r--  1 mysql mysql     1112 Nov 23 12:07 client-cert.pem
      -rw-------  1 mysql mysql     1680 Nov 23 12:07 client-key.pem
      -rw-r--r--  1 root  root         0 Nov 23 12:08 debian-5.7.flag
      drwxr-x---  2 mysql mysql    12288 Nov 23 14:29 fog
      -rw-r-----  1 mysql mysql      289 Nov 25 12:45 ib_buffer_pool
      -rw-r-----  1 mysql mysql 12582912 Nov 25 12:45 ibdata1
      ...
      

      The output you posted clearly shows what has happened. You should be able to fix this using the following commands:

      sudo -i
      mv /var/lib/mysql /var/lib/mysql-backup
      apt-get remove mariadb-client mariadb-server
      cp -a /var/lib/mysql-5.7 /var/lib/mysql
      rm /var/lib/mysql/debian-5.7.flag
      chown -R mysql:mysql /var/lib/mysql/
      apt-get install mysql-client mysql-server
      systemctl start mysql
      

      IMPORTANT: This is a known issue and documented in the forums. Whenever you re-run the 1.5.7 installer on Ubuntu 18.04 you need to pay attention and say NO when asked if Apache and PHP should be re-installed!

      PS: I do wonder about some of the files you have in that directory. auto.cnf, ca-key.pem, ca.pem and so on. Seems like you are playing with things here. As I said, the more custom things you do the more chance things will break because the scripts can’t handle it.

      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

      C 2 Replies Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @chasosnature Just one more thing. You are very welcome to test FOG and let us know about bugs as you find them. But be aware that the team of developers is sparsely populated at the moment and we can’t promise to fix it all in a rush. The more you help by describing problems in a way that we can replicate and fix those the more quickly we can add fixes. As you said, it’s open source and therefore needs people (not just officials developers!) to put in time and effort. You are very welcome to join in and help.

        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
        • C
          chasosnature @Sebastian Roth
          last edited by

          @Sebastian-Roth

          look at your dedications : its priceless…thanks for your response.

          Now lets deal with this:

          1. based on your sudo -i …work around i have revisted that snapshot and i will try it and see what happens and update you. (i only just realized no that i have been answering y to the very first installation question, this time i try N)

          2. there is another snapshot which also has Database connection unavailable, and i have founf that the msql service is refusing to start up
            after 1. i will revisit 2. and follw the below steps and update you.

          apt-get remove --purge mysql*
          apt-get remove --purge mysql
          apt-get remove --purge mariadb
          apt-get remove --purge mariadb*
          apt-get --purge remove mariadb-server
          apt-get --purge remove python-software-properties
          Note: When prompted if you want to dump your current Databases, say no. But you can deconfigure the phpmyadmin database easily.

          Install everything from fresh: Add the following to your /etc/apt/sources.list file:

          deb [arch=amd64,i386] http://ftp.utexas.edu/mariadb/repo/10.1/debian jessie main
          deb-src http://ftp.utexas.edu/mariadb/repo/10.1/debian jessie main
          Then,

          apt-get install python-software-properties
          apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
          apt-get install software-properties-common
          apt-get install mariadb-server mariadb-client

          Once your are done you should be able to run mysql -V and see something like:

          mysql Ver 15.1 Distrib 10.1.9-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

          The reason for my effort on this method is this:
          The scenerio would be:
          you have a production environment already running 16.04 with 1.4.4 Fog (fog seem to be very compatible with this version of ubuntu)
          you wish to upgrade your OS to 18.04 ubuntu
          then upgrade your Fog to 1.5.7
          You use phpmyadmin or some other method to backup your database.

          it would be nice to have an update package that can be applied to 18.04 to bring fog 1.4.4 to 1.5.7 using these experiences gathered.

          @Tom-Elliott

          lol…i wasnt trying to image a system with no OS.
          so now that we are clear , i can say forget clonzilla.

          i will update my progress here.

          1 Reply Last reply Reply Quote 0
          • C
            chasosnature @Sebastian Roth
            last edited by

            @Sebastian-Roth

            answering no to the first question will result in:

            • Setting up and starting MySQL…Done

            • Backing up user reports…Done

            • Stopping web service…Failed!
              OK

            • Removing vhost file…OK

            • Setting up Apache and PHP files…Failed
              ###########################################

              PHP Failed to install properly

              ###########################################

              Could not find /etc/php//fpm/php.ini!
              root@FogServerKubuntu:/opt/fogproject-1.5.7/bin#

            i have not run your fix yet…

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @chasosnature said in Fog installation and cofiguration on ubuntu 18.04:

              dd the following to your /etc/apt/sources.list file:
              deb [arch=amd64,i386] http://ftp.utexas.edu/mariadb/repo/10.1/debian jessie main
              deb-src http://ftp.utexas.edu/mariadb/repo/10.1/debian jessie main

              As I said, the more custom modifications you make the higher the chance things go wrong!!

              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

              C 1 Reply Last reply Reply Quote 0
              • C
                chasosnature @Sebastian Roth
                last edited by

                @Sebastian-Roth

                oh yeah, you just reminded me now…

                in regards to the custom mod business…those files you mentioned earlier where copied over , it was customisation to get dnsmasq functioning as tftpboot…it was the only way i could get 1.4.4 installed on ubuntu 18.04 successfully to the point of that initial error i started the post with. (but i believe we all agree now that 1.4.4 might never function on ubuntu 1.4.4 so i am doing an upgrade from that)

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth

                  @chasosnature Please run grep php /opt/fog/.fogsettings and dpkg -l | grep php - post results of both commands here.

                  I remember the switch from PHP 5.x to 7.x was a really ugly situation with every distro doing things differently we had to work around to many things.

                  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

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    chasosnature @Sebastian Roth
                    last edited by

                    @Sebastian-Roth said in Fog installation and cofiguration on ubuntu 18.04:

                    grep php /opt/fog/.fogsettings

                    O.k update…

                    trying to update a “working” 1.4.4 (ubuntu 18.04) with 1.5.7 (ubuntu 18.04)

                    last portion:

                     * Configuring services
                    
                     * Setting up fogproject user..................................OK
                     * Locking fogproject as a system account......................OK
                     * Setting up fogproject password..............................OK
                     * Stopping FOGMulticastManager.service Service................OK
                     * Stopping FOGImageReplicator.service Service.................OK
                     * Stopping FOGSnapinReplicator.service Service................OK
                     * Stopping FOGScheduler.service Service.......................OK
                     * Stopping FOGPingHosts.service Service.......................OK
                     * Stopping FOGSnapinHash.service Service......................OK
                     * Stopping FOGImageSize.service Service.......................OK
                     * Is the MySQL password blank? (Y/n) y
                     * Setting up and starting MySQL...............................Done
                     * Backing up user reports.....................................Done
                     * Stopping web service........................................Failed!
                    OK
                     * Removing vhost file.........................................OK
                     * Setting up Apache and PHP files.............................Failed
                       ###########################################
                       #                                         #
                       #      PHP Failed to install properly     #
                       #                                         #
                       ###########################################
                    
                       Could not find /etc/php//fpm/php.ini!
                    root@FogServerKubuntu:/opt/fogproject-1.5.7/bin#
                    

                    running: grep php /opt/fog/.fogsettings

                    root@FogServerKubuntu:/opt/fogproject-1.5.7/bin# grep php /opt/fog/.fogsettings
                    grep: /opt/fog/.fogsettings: No such file or directory
                    root@FogServerKubuntu:/opt/fogproject-1.5.7/bin#
                    

                    running: dpkg -l | grep php

                    root@FogServerKubuntu:/opt/fogproject-1.5.7/bin# dpkg -l | grep php
                    ii  libapache2-mod-php                              1:7.2+60ubuntu1                                          all          server-side, HTML-embedded scripting language (Apache 2 module) (default)
                    ii  libapache2-mod-php7.1                           7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        server-side, HTML-embedded scripting language (Apache 2 module)
                    ii  libapache2-mod-php7.2                           7.2.24-0ubuntu0.18.04.1                                  amd64        server-side, HTML-embedded scripting language (Apache 2 module)
                    ii  php                                             1:7.2+60ubuntu1                                          all          server-side, HTML-embedded scripting language (default)
                    ii  php-bcmath                                      1:7.2+60ubuntu1                                          all          Bcmath module for PHP [default]
                    ii  php-cli                                         1:7.2+60ubuntu1                                          all          command-line interpreter for the PHP scripting language (default)
                    ii  php-common                                      2:70+ubuntu18.04.1+deb.sury.org+6                        all          Common files for PHP packages
                    ii  php-curl                                        1:7.2+60ubuntu1                                          all          CURL module for PHP [default]
                    ii  php-fpm                                         1:7.2+60ubuntu1                                          all          server-side, HTML-embedded scripting language (FPM-CGI binary) (default)
                    ii  php-gd                                          1:7.2+60ubuntu1                                          all          GD module for PHP [default]
                    ii  php-gettext                                     1.0.12-0.1                                               all          transitional dummy package for php-php-gettext
                    ii  php-json                                        1:7.2+60ubuntu1                                          all          JSON module for PHP [default]
                    ii  php-mbstring                                    1:7.2+60ubuntu1                                          all          MBSTRING module for PHP [default]
                    ii  php-mysql                                       1:7.2+60ubuntu1                                          all          MySQL module for PHP [default]
                    ii  php-pear                                        1:1.10.8+submodules+notgz-1+ubuntu18.04.1+deb.sury.org+1 all          PEAR Base System
                    ii  php-php-gettext                                 1.0.12-0.1                                               all          read gettext MO files directly, without requiring anything other than PHP
                    ii  php-xml                                         2:7.3+70+ubuntu18.04.1+deb.sury.org+6                    all          DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
                    ii  php7.1                                          7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    all          server-side, HTML-embedded scripting language (metapackage)
                    ii  php7.1-bcmath                                   7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        Bcmath module for PHP
                    ii  php7.1-cli                                      7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        command-line interpreter for the PHP scripting language
                    ii  php7.1-common                                   7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        documentation, examples and common module for PHP
                    ii  php7.1-curl                                     7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        CURL module for PHP
                    ii  php7.1-fpm                                      7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
                    ii  php7.1-gd                                       7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        GD module for PHP
                    ii  php7.1-json                                     7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        JSON module for PHP
                    ii  php7.1-ldap                                     7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        LDAP module for PHP
                    ii  php7.1-mbstring                                 7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        MBSTRING module for PHP
                    ii  php7.1-mcrypt                                   7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        libmcrypt module for PHP
                    ii  php7.1-mysql                                    7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        MySQL module for PHP
                    ii  php7.1-opcache                                  7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        Zend OpCache module for PHP
                    ii  php7.1-readline                                 7.1.33-1+ubuntu18.04.1+deb.sury.org+1                    amd64        readline module for PHP
                    ii  php7.2                                          7.2.24-0ubuntu0.18.04.1                                  all          server-side, HTML-embedded scripting language (metapackage)
                    ii  php7.2-bcmath                                   7.2.24-0ubuntu0.18.04.1                                  amd64        Bcmath module for PHP
                    ii  php7.2-cli                                      7.2.24-0ubuntu0.18.04.1                                  amd64        command-line interpreter for the PHP scripting language
                    ii  php7.2-common                                   7.2.24-0ubuntu0.18.04.1                                  amd64        documentation, examples and common module for PHP
                    ii  php7.2-curl                                     7.2.24-0ubuntu0.18.04.1                                  amd64        CURL module for PHP
                    ii  php7.2-fpm                                      7.2.24-0ubuntu0.18.04.1                                  amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
                    ii  php7.2-gd                                       7.2.24-0ubuntu0.18.04.1                                  amd64        GD module for PHP
                    ii  php7.2-json                                     7.2.24-0ubuntu0.18.04.1                                  amd64        JSON module for PHP
                    ii  php7.2-mbstring                                 7.2.24-0ubuntu0.18.04.1                                  amd64        MBSTRING module for PHP
                    ii  php7.2-mysql                                    7.2.24-0ubuntu0.18.04.1                                  amd64        MySQL module for PHP
                    ii  php7.2-opcache                                  7.2.24-0ubuntu0.18.04.1                                  amd64        Zend OpCache module for PHP
                    ii  php7.2-readline                                 7.2.24-0ubuntu0.18.04.1                                  amd64        readline module for PHP
                    ii  php7.3-common                                   7.3.11-1+ubuntu18.04.1+deb.sury.org+1                    amd64        documentation, examples and common module for PHP
                    ii  php7.3-xml                                      7.3.11-1+ubuntu18.04.1+deb.sury.org+1                    amd64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
                    

                    is this the point where i run: ??

                    sudo -i
                    mv /var/lib/mysql /var/lib/mysql-backup
                    apt-get remove mariadb-client mariadb-server
                    cp -a /var/lib/mysql-5.7 /var/lib/mysql
                    rm /var/lib/mysql/debian-5.7.flag
                    chown -R mysql:mysql /var/lib/mysql/
                    apt-get install mysql-client mysql-server
                    systemctl start mysql
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @chasosnature Just another option that came to my mind is update to 1.5.6 saying yes to re-installing Apache/PHP and then update to 1.5.7 from there but saying no to Apache/PHP re-install…

                      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

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        chasosnature @Sebastian Roth
                        last edited by

                        @Sebastian-Roth

                        i was about to update to 1.5.7 saying yes

                        but let me revert snapshot and try your suggestion…

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sebastian Roth Moderator
                          last edited by Sebastian Roth

                          @chasosnature Time for bed in Europe. Will see how it went for you tomorrow morning…

                          Different versions of PHP installed might make it hard to fix all this…

                          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

                          C 2 Replies Last reply Reply Quote 0
                          • C
                            chasosnature @Sebastian Roth
                            last edited by

                            @Sebastian-Roth

                            sure…thanks for your time.

                            1 Reply Last reply Reply Quote 0
                            • C
                              chasosnature @Sebastian Roth
                              last edited by chasosnature

                              @Sebastian-Roth

                              ok below is the scripts that tells the whole story of my test :
                              so far all installed but mariam db not playing ball.
                              so i have snapshot it and taking a break,

                              root@FogServerKubuntu:/opt/fogproject-1.5.7/bin# userdel fogproject
                              root@FogServerKubuntu:/opt/fogproject-1.5.7/bin# ./installfog.sh -X
                              Installing LSB_Release as needed
                               * Attempting to get release information.......................Done
                              systemd
                              
                              
                                 +------------------------------------------+
                                 |     ..#######:.    ..,#,..     .::##::.  |
                                 |.:######          .:;####:......;#;..     |
                                 |...##...        ...##;,;##::::.##...      |
                                 |   ,#          ...##.....##:::##     ..:: |
                                 |   ##    .::###,,##.   . ##.::#.:######::.|
                                 |...##:::###::....#. ..  .#...#. #...#:::. |
                                 |..:####:..    ..##......##::##  ..  #     |
                                 |    #  .      ...##:,;##;:::#: ... ##..   |
                                 |   .#  .       .:;####;::::.##:::;#:..    |
                                 |    #                     ..:;###..       |
                                 |                                          |
                                 +------------------------------------------+
                                 |      Free Computer Imaging Solution      |
                                 +------------------------------------------+
                                 |  Credits: http://fogproject.org/Credits  |
                                 |       http://fogproject.org/Credits      |
                                 |       Released under GPL Version 3       |
                                 +------------------------------------------+
                              
                              
                                 Version: 1.5.7 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: [2] 2
                              
                              
                              
                                Starting Debian based Installation
                              
                              
                               *** Detected a potential need to reinstall apache and php files.
                               *** This will remove the /etc/php* and /etc/apache2* directories
                               ***  and remove/purge the apache and php files from this system.
                               *** If you're okay with this please type Y, anything else will
                               ***  continue the installation, but may mean you will need to
                               ***  remove the files later and make proper changes as
                               ***  necessary. (Y/N):
                              y
                               * Removing apache and php files...............................Done
                               * Stopping web services.......................................Done
                               * Removing the apache and php packages........................Done
                               * Resetting our variables to specify php version..............Done
                                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)] n
                              
                                We found the following interfaces on your system:
                                    * ens3 - xxx.xxx.x.xx/24
                              
                                Would you like to change the default network interface from ens3?
                                If you are not sure, select No. [y/N] n
                              
                                Would you like to setup a router address for the DHCP server? [Y/n] n
                              
                                Would you like DHCP to handle DNS? [Y/n] n
                              
                                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] n
                              
                               *** New option 'hostname' since FOG 1.5.6 ***
                              
                                Would you like to change the default hostname >FogServerKubuntu<?
                                The fully qualified hostname is used for the webserver certificate.
                                If you are not sure, select No. [y/N] 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      #
                                 ######################################################################
                                 #            Please see our wiki for more information at:            #
                                 ######################################################################
                                 #             https://wiki.fogproject.org/wiki/index.php             #
                                 ######################################################################
                              
                               * Here are the settings FOG will use:
                               * Base Linux: Debian
                               * Detected Linux Distribution: Ubuntu
                               * Interface: ens3
                               * Server IP Address: xxx.xxx.x.xx
                               * Server Subnet Mask: 255.xxx.xxx.0
                               * Server Hostname: FogServerKubuntu
                               * Installation Type: Normal Server
                               * Internationalization: 0
                               * Image Storage Location: /images
                               * Using FOG DHCP: No
                               * 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 and filename
                              
                               * On a Windows DHCP server you must set options 066 and 067
                              
                               * Option 066/next-server is the IP of the FOG Server: (e.g. xxx.xxx.x.xx)
                               * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
                              
                              
                               * Are you sure you wish to continue (Y/N) y
                              
                               * Installation Started
                              
                               * Testing internet connection.................................Done
                               * Adding repository if needed.................................OK
                               * Preparing Package Manager...................................OK
                               * Packages to be installed:
                              
                                      apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isolinux lftp libapache2-mod-php7.2 libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php7.2 php7.2-bcmath php7.2-cli php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g
                              
                              
                               * Installing package: apache2.................................OK
                               * Skipping package:   bc......................................(Already Installed)
                               * Skipping package:   build-essential.........................(Already Installed)
                               * Skipping package:   cpp.....................................(Already Installed)
                               * Skipping package:   curl....................................(Already Installed)
                               * Skipping package:   g++.....................................(Already Installed)
                               * Skipping package:   gawk....................................(Already Installed)
                               * Skipping package:   gcc.....................................(Already Installed)
                               * Skipping package:   genisoimage.............................(Already Installed)
                               * Skipping package:   gzip....................................(Already Installed)
                               * Skipping package:   htmldoc.................................(Already Installed)
                               * Skipping package:   isolinux................................(Already Installed)
                               * Skipping package:   lftp....................................(Already Installed)
                               * Installing package: libapache2-mod-php7.2...................OK
                               * Skipping package:   libc6...................................(Already Installed)
                               * Skipping package:   libcurl4................................(Already Installed)
                               * Skipping package:   liblzma-dev.............................(Already Installed)
                               * Skipping package:   m4......................................(Already Installed)
                               * Skipping package:   mariadb-client..........................(Already Installed)
                               * Skipping package:   mariadb-server..........................(Already Installed)
                               * Skipping package:   net-tools...............................(Already Installed)
                               * Skipping package:   nfs-kernel-server.......................(Already Installed)
                               * Skipping package:   openssh-server..........................(Already Installed)
                               * Installing package: php7.2..................................OK
                               * Installing package: php7.2-bcmath...........................OK
                               * Skipping package:   php7.2-cli..............................(Already Installed)
                               * Installing package: php7.2-curl.............................OK
                               * Installing package: php7.2-fpm..............................OK
                               * Installing package: php7.2-gd...............................OK
                               * Skipping package:   php7.2-json.............................(Already Installed)
                               * Installing package: php7.2-ldap.............................OK
                               * Installing package: php7.2-mbstring.........................OK
                               * Installing package: php7.2-mysql............................OK
                               * Skipping package:   php7.2-mysql............................(Already Installed)
                               * Installing package: php-gettext.............................OK
                               * Skipping package: sysv-rc-conf..............................(Does not exist)
                               * Skipping package:   tar.....................................(Already Installed)
                               * Skipping package:   tftpd-hpa...............................(Already Installed)
                               * Skipping package:   tftp-hpa................................(Already Installed)
                               * Skipping package:   unzip...................................(Already Installed)
                               * Skipping package:   vsftpd..................................(Already Installed)
                               * Skipping package:   wget....................................(Already Installed)
                               * Skipping package:   xinetd..................................(Already Installed)
                               * Skipping package:   zlib1g..................................(Already Installed)
                               * Updating packages as needed.................................OK
                              
                               * Confirming package installation
                              
                               * Checking package: apache2...................................OK
                               * Checking package: bc........................................OK
                               * Checking package: build-essential...........................OK
                               * Checking package: cpp.......................................OK
                               * Checking package: curl......................................OK
                               * Checking package: g++.......................................OK
                               * Checking package: gawk......................................OK
                               * Checking package: gcc.......................................OK
                               * Checking package: genisoimage...............................OK
                               * Checking package: gzip......................................OK
                               * Checking package: htmldoc...................................OK
                               * Checking package: isolinux..................................OK
                               * Checking package: lftp......................................OK
                               * Checking package: libapache2-mod-php7.2.....................OK
                               * Checking package: libc6.....................................OK
                               * Checking package: libcurl4..................................OK
                               * Checking package: liblzma-dev...............................OK
                               * Checking package: m4........................................OK
                               * Checking package: mariadb-client............................OK
                               * Checking package: mariadb-server............................OK
                               * Checking package: net-tools.................................OK
                               * Checking package: nfs-kernel-server.........................OK
                               * Checking package: openssh-server............................OK
                               * Checking package: php7.2....................................OK
                               * Checking package: php7.2-bcmath.............................OK
                               * Checking package: php7.2-cli................................OK
                               * Checking package: php7.2-curl...............................OK
                               * Checking package: php7.2-fpm................................OK
                               * Checking package: php7.2-gd.................................OK
                               * Checking package: php7.2-json...............................OK
                               * Checking package: php7.2-ldap...............................OK
                               * Checking package: php7.2-mbstring...........................OK
                               * Checking package: php7.2-mysql..............................OK
                               * Checking package: php-gettext...............................OK
                               * Checking package: tar.......................................OK
                               * Checking package: tftpd-hpa.................................OK
                               * Checking package: tftp-hpa..................................OK
                               * Checking package: unzip.....................................OK
                               * Checking package: vsftpd....................................OK
                               * Checking package: wget......................................OK
                               * Checking package: xinetd....................................OK
                               * Checking package: zlib1g....................................OK
                              
                               * Configuring services
                              
                               * Setting up fogproject user..................................OK
                               * Locking fogproject as a system account......................OK
                               * Setting up fogproject password..............................OK
                               * Stopping FOGMulticastManager.service Service................OK
                               * Stopping FOGImageReplicator.service Service.................OK
                               * Stopping FOGSnapinReplicator.service Service................OK
                               * Stopping FOGScheduler.service Service.......................OK
                               * Stopping FOGPingHosts.service Service.......................OK
                               * Stopping FOGSnapinHash.service Service......................OK
                               * Stopping FOGImageSize.service Service.......................OK
                               * Is the MySQL password blank? (Y/n) y
                               * Setting up and starting MySQL...............................Done
                               * Backing up user reports.....................................Done
                               * 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 kernel, init and fog-client binaries............Done
                               * Extracting the binaries archive.............................OK
                               * Copying binaries to destination paths.......................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 Apache virtual host (no SSL).....................OK
                               * Starting and checking status of web services................OK
                               * Changing permissions on apache log files....................OK
                               * Backing up database.........................................OK
                              
                               * You still need to install/update your database schema.
                               * This can be done by opening a web browser and going to:
                              
                                 http://xxx.xxx.x.xx/fog/management
                              
                               * Press [Enter] key when database is updated/installed.
                              
                               * Setting up storage..........................................OK
                               * Setting up and starting DHCP Server.........................Skipped
                               * Setting up and starting TFTP and PXE Servers................OK
                               * Setting up and starting VSFTP Server........................OK
                               * Setting up FOG Snapins......................................OK
                               * Setting up UDPCast..........................................OK
                               * Configuring UDPCast.........................................OK
                               * Building UDPCast............................................OK
                               * Installing UDPCast..........................................OK
                               * Installing FOG System Scripts...............................OK
                              
                              
                               * Configuring FOG System Services
                              
                              
                               * Setting permissions on FOGMulticastManager.service script...OK
                               * Enabling FOGMulticastManager.service Service................OK
                               * Setting permissions on FOGImageReplicator.service script....OK
                               * Enabling FOGImageReplicator.service Service.................OK
                               * Setting permissions on FOGSnapinReplicator.service script...OK
                               * Enabling FOGSnapinReplicator.service Service................OK
                               * Setting permissions on FOGScheduler.service script..........OK
                               * Enabling FOGScheduler.service Service.......................OK
                               * Setting permissions on FOGPingHosts.service script..........OK
                               * Enabling FOGPingHosts.service Service.......................OK
                               * Setting permissions on FOGSnapinHash.service script.........OK
                               * Enabling FOGSnapinHash.service Service......................OK
                               * Setting permissions on FOGImageSize.service script..........OK
                               * Enabling FOGImageSize.service Service.......................OK
                               * Setting up FOG Services.....................................OK
                               * Starting FOGMulticastManager.service Service................OK
                               * Starting FOGImageReplicator.service Service.................OK
                               * Starting FOGSnapinReplicator.service Service................OK
                               * Starting FOGScheduler.service Service.......................OK
                               * Starting FOGPingHosts.service Service.......................OK
                               * Starting FOGSnapinHash.service Service......................OK
                               * Starting FOGImageSize.service Service.......................OK
                               * Setting up exports file.....................................OK
                               * Setting up and starting RPCBind.............................OK
                               * Setting up and starting NFS Server..........................OK
                               * Ensuring node username and passwords match..................Done
                              
                               * Setup complete
                              
                                 You can now login to the FOG Management Portal using
                                 the information listed below.  The login information
                                 is only if this is the first install.
                              
                                 This can be done by opening a web browser and going to:
                              
                                 http://xxx.xxx.x.xx/fog/management
                              
                                 Default User Information
                                 Username: fog
                                 Password: password
                              
                              root@FogServerKubuntu:/opt/fogproject-1.5.7/bin# /etc/init.d/mysql restart
                              [....] Restarting mysql (via systemctl): mysql.serviceJob for mariadb.service failed because a timeout was exceeded.
                              See "systemctl status mariadb.service" and "journalctl -xe" for details.
                               failed!
                              root@FogServerKubuntu:/opt/fogproject-1.5.7/bin# journalctl -xe
                              Nov 26 01:58:31 FogServerKubuntu systemd[1]: mariadb.service: Start operation timed out. Terminating
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.176:256): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.284:257): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.384:258): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.484:259): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.584:260): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.688:261): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.788:262): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.888:263): apparmor="DENIE
                              Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:31 FogServerKubuntu kernel: audit: type=1400 audit(1574733511.988:264): apparmor="DENIE
                              Nov 26 01:58:32 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:32 FogServerKubuntu kernel: audit: type=1400 audit(1574733512.088:265): apparmor="DENIE
                              Nov 26 01:58:32 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:32 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:32 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:33 FogServerKubuntu audit[16858]: AVC apparmor="DENIED" operation="sendmsg" info="Faile
                              Nov 26 01:58:33 FogServerKubuntu systemd[1]: mariadb.service: Failed with result 'timeout'.
                              Nov 26 01:58:33 FogServerKubuntu systemd[1]: Failed to start MariaDB 10.1.43 database server.
                              -- Subject: Unit mariadb.service has failed
                              -- Defined-By: systemd
                              -- Support: http://www.ubuntu.com/support
                              --
                              -- Unit mariadb.service has failed.
                              --
                              -- The result is RESULT.
                              root@FogServerKubuntu:/opt/fogproject-1.5.7/bin#```
                              
                              about to go to other snapshot (fresh install) and use git.
                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by

                                @chasosnature I think I don’t understand what you mean by snapshot?! From what you wrote I understood that you had FOG 1.4.4 on Ubuntu 16.04 and the goal was to upgrade that to FOG 1.5.7 and Ubuntu 18.04?!

                                The more I re-read all your posts the more I get the impression that we have another great miss-understanding here. You keep saying that you want to upgrade to 1.5.7 but a couple of things in the output you posted last tell me that you don’t!

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

                                This question only arises if you never had FOG installed before or renamed/deleted /opt/fog/.fogsettings - If you do remove that file before running the 1.5.7 installer it will be blind (so to say) and might behave different than on a normal upgrade install!

                                journalctl -xe
                                Nov 26 01:58:31 FogServerKubuntu systemd[1]: mariadb.service: Start operation timed out. Terminating
                                Nov 26 01:58:31 FogServerKubuntu audit[16858]: AVC apparmor=“DENIED” operation=“sendmsg” info="Faile

                                Those apparmor messages are known to be false errors not causing any trouble - see my latest post here. You need to take a look at the database log files now.

                                So what to try now? I’d go this route:

                                • revert your snapshot to the point where 1.4.4 worked fine
                                • don’t rename/remove /opt/fog/.fogsettings
                                • download and run the 1.5.6 installer and say yes to Apache/PHP re-install
                                • access web UI to make sure it works and update the schema when asked by the installer
                                • download and run the 1.5.7 installer but say no to Apache/PHP re-install
                                • check to see if you can access the web UI

                                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

                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  chasosnature @Sebastian Roth
                                  last edited by

                                  @Sebastian-Roth

                                  Morning Seb

                                  did what you asked and it failed at bullet 3.
                                  see script below

                                  root@FogServerKubuntu:/opt# ls
                                  1.5.6.tar.gz  fog  fog_1.4.4  fog_1.4.4.tar.gz
                                  root@FogServerKubuntu:/opt# cd 1.5.6.tar.gz
                                  -su: cd: 1.5.6.tar.gz: Not a directory
                                  root@FogServerKubuntu:/opt# tar -xzf 1.5.6.tar.gz
                                  root@FogServerKubuntu:/opt# ls
                                  1.5.6.tar.gz  fog  fog_1.4.4  fog_1.4.4.tar.gz  fogproject-1.5.6
                                  root@FogServerKubuntu:/opt# cd fogproject-1.5.6
                                  root@FogServerKubuntu:/opt/fogproject-1.5.6# cd bin
                                  root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# ./installfog.sh -X
                                  Installing LSB_Release as needed
                                   * Attempting to get release information.......................Done
                                  systemd
                                  
                                  
                                     +------------------------------------------+
                                     |     ..#######:.    ..,#,..     .::##::.  |
                                     |.:######          .:;####:......;#;..     |
                                     |...##...        ...##;,;##::::.##...      |
                                     |   ,#          ...##.....##:::##     ..:: |
                                     |   ##    .::###,,##.   . ##.::#.:######::.|
                                     |...##:::###::....#. ..  .#...#. #...#:::. |
                                     |..:####:..    ..##......##::##  ..  #     |
                                     |    #  .      ...##:,;##;:::#: ... ##..   |
                                     |   .#  .       .:;####;::::.##:::;#:..    |
                                     |    #                     ..:;###..       |
                                     |                                          |
                                     +------------------------------------------+
                                     |      Free Computer Imaging Solution      |
                                     +------------------------------------------+
                                     |  Credits: http://fogproject.org/Credits  |
                                     |       http://fogproject.org/Credits      |
                                     |       Released under GPL Version 3       |
                                     +------------------------------------------+
                                  
                                  
                                     Version: 1.5.6 Installer/Updater
                                  
                                  
                                   * Found FOG Settings from previous install at: /opt/fog/.fogsettings
                                  
                                   * Performing upgrade using these settings
                                  
                                  
                                    Starting Debian based Installation
                                  
                                  
                                   *** Detected a potential need to reinstall apache and php files.
                                   *** This will remove the /etc/php* and /etc/apache2* directories
                                   ***  and remove/purge the apache and php files from this system.
                                   *** If you're okay with this please type Y, anything else will
                                   ***  continue the installation, but may mean you will need to
                                   ***  remove the files later and make proper changes as
                                   ***  necessary. (Y/N):
                                  y
                                   * Removing apache and php files...............................Done
                                   * Stopping web services.......................................Done
                                   * Removing the apache and php packages........................Failed
                                   * Resetting our variables to specify php version..............Done
                                  
                                     ######################################################################
                                     #     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      #
                                     ######################################################################
                                     #            Please see our wiki for more information at:            #
                                     ######################################################################
                                     #             https://wiki.fogproject.org/wiki/index.php             #
                                     ######################################################################
                                  
                                   * Here are the settings FOG will use:
                                   * Base Linux: Debian
                                   * Detected Linux Distribution: Ubuntu
                                   * Interface: ens3
                                   * Server IP Address: xx.x.xx.xx
                                   * Server Subnet Mask: xx.x.xx.x0
                                   * Server Hostname:
                                   * Installation Type: Normal Server
                                   * Internationalization: 0
                                   * Image Storage Location: /images
                                   * Using FOG DHCP: No
                                   * 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 and filename
                                  
                                   * On a Windows DHCP server you must set options 066 and 067
                                  
                                   * Option 066/next-server is the IP of the FOG Server: (e.g. xx.x.xx.xx)
                                   * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
                                  
                                  
                                   * Are you sure you wish to continue (Y/N) y
                                  
                                   * Installation Started
                                  
                                   * Testing internet connection.................................Done
                                   * Adding repository if needed.................................OK
                                   * Preparing Package Manager...................................OK
                                   * Packages to be installed:
                                  
                                          apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isolinux lftp libapache2-mod-php7.2 libc6 libcurl4 liblzma-dev m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.2 php7.2-bcmath php7.2-cli php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-mysqlnd php-gettext sysv-rc-conf tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g
                                  
                                  
                                   * Skipping package:   apache2.................................(Already Installed)
                                   * Skipping package:   bc......................................(Already Installed)
                                   * Skipping package:   build-essential.........................(Already Installed)
                                   * Skipping package:   cpp.....................................(Already Installed)
                                   * Installing package: curl....................................OK
                                   * Skipping package:   g++.....................................(Already Installed)
                                   * Skipping package:   gawk....................................(Already Installed)
                                   * Skipping package:   gcc.....................................(Already Installed)
                                   * Skipping package:   genisoimage.............................(Already Installed)
                                   * Skipping package:   gzip....................................(Already Installed)
                                   * Skipping package:   htmldoc.................................(Already Installed)
                                   * Installing package: isolinux................................OK
                                   * Skipping package:   lftp....................................(Already Installed)
                                   * Installing package: libapache2-mod-php7.2...................OK
                                   * Skipping package:   libc6...................................(Already Installed)
                                   * Skipping package:   libcurl4................................(Already Installed)
                                   * Installing package: liblzma-dev.............................OK
                                   * Skipping package:   m4......................................(Already Installed)
                                   * Skipping package:   mysql-client............................(Already Installed)
                                   * Skipping package:   mysql-server............................(Already Installed)
                                   * Skipping package:   net-tools...............................(Already Installed)
                                   * Skipping package:   nfs-kernel-server.......................(Already Installed)
                                   * Skipping package:   openssh-server..........................(Already Installed)
                                   * Installing package: php7.2..................................OK
                                   * Installing package: php7.2-bcmath...........................OK
                                   * Skipping package:   php7.2-cli..............................(Already Installed)
                                   * Installing package: php7.2-curl.............................OK
                                   * Installing package: php7.2-fpm..............................OK
                                   * Installing package: php7.2-gd...............................OK
                                   * Skipping package:   php7.2-json.............................(Already Installed)
                                   * Installing package: php7.2-ldap.............................OK
                                   * Installing package: php7.2-mbstring.........................OK
                                   * Installing package: php7.2-mysql............................OK
                                   * Skipping package:   php7.2-mysql............................(Already Installed)
                                   * Skipping package:   php-gettext.............................(Already Installed)
                                   * Skipping package: sysv-rc-conf..............................(Does not exist)
                                   * Skipping package:   tar.....................................(Already Installed)
                                   * Skipping package:   tftpd-hpa...............................(Already Installed)
                                   * Skipping package:   tftp-hpa................................(Already Installed)
                                   * Skipping package:   unzip...................................(Already Installed)
                                   * Skipping package:   vsftpd..................................(Already Installed)
                                   * Skipping package:   wget....................................(Already Installed)
                                   * Skipping package:   xinetd..................................(Already Installed)
                                   * Skipping package:   zlib1g..................................(Already Installed)
                                   * Updating packages as needed.................................OK
                                  
                                   * Confirming package installation
                                  
                                   * Checking package: apache2...................................OK
                                   * Checking package: bc........................................OK
                                   * Checking package: build-essential...........................OK
                                   * Checking package: cpp.......................................OK
                                   * Checking package: curl......................................OK
                                   * Checking package: g++.......................................OK
                                   * Checking package: gawk......................................OK
                                   * Checking package: gcc.......................................OK
                                   * Checking package: genisoimage...............................OK
                                   * Checking package: gzip......................................OK
                                   * Checking package: htmldoc...................................OK
                                   * Checking package: isolinux..................................OK
                                   * Checking package: lftp......................................OK
                                   * Checking package: libapache2-mod-php7.2.....................OK
                                   * Checking package: libc6.....................................OK
                                   * Checking package: libcurl4..................................OK
                                   * Checking package: liblzma-dev...............................OK
                                   * Checking package: m4........................................OK
                                   * Checking package: mysql-client..............................OK
                                   * Checking package: mysql-server..............................OK
                                   * Checking package: net-tools.................................OK
                                   * Checking package: nfs-kernel-server.........................OK
                                   * Checking package: openssh-server............................OK
                                   * Checking package: php7.2....................................OK
                                   * Checking package: php7.2-bcmath.............................OK
                                   * Checking package: php7.2-cli................................OK
                                   * Checking package: php7.2-curl...............................OK
                                   * Checking package: php7.2-fpm................................OK
                                   * Checking package: php7.2-gd.................................OK
                                   * Checking package: php7.2-json...............................OK
                                   * Checking package: php7.2-ldap...............................OK
                                   * Checking package: php7.2-mbstring...........................OK
                                   * Checking package: php7.2-mysql..............................OK
                                   * Checking package: php-gettext...............................OK
                                   * Checking package: tar.......................................OK
                                   * Checking package: tftpd-hpa.................................OK
                                   * Checking package: tftp-hpa..................................OK
                                   * Checking package: unzip.....................................OK
                                   * Checking package: vsftpd....................................OK
                                   * Checking package: wget......................................OK
                                   * Checking package: xinetd....................................OK
                                   * Checking package: zlib1g....................................OK
                                  
                                   * Configuring services
                                  
                                   * Setting up fogproject user..................................OK
                                   * Locking fogproject as a system account......................OK
                                   * Setting up fogproject password..............................OK
                                   * Stopping FOGMulticastManager.service Service................OK
                                   * Stopping FOGImageReplicator.service Service.................OK
                                   * Stopping FOGSnapinReplicator.service Service................OK
                                   * Stopping FOGScheduler.service Service.......................OK
                                   * Stopping FOGPingHosts.service Service.......................OK
                                   * Stopping FOGSnapinHash.service Service......................OK
                                   * Stopping FOGImageSize.service Service.......................OK
                                   * Setting up and starting MySQL...............................Done
                                   * Backing up user reports.....................................Done
                                   * 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 kernel, init and fog-client binaries............Done
                                   * Extracting the binaries archive.............................OK
                                   * Copying binaries to destination paths.......................OK
                                   * Enabling apache and fpm services on boot....................OK
                                   * Creating SSL Certificate....................................OK
                                   * Creating auth pub key and cert..............................OK
                                   * Resetting SSL Permissions...................................OK
                                   * Setting up Apache virtual host (no SSL)......................./lib/common/functions.sh: line 1722: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1723: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1727: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1729: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1730: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1731: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1732: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1733: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1734: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1735: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1736: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1737: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1738: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1739: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1740: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1741: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1742: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  ../lib/common/functions.sh: line 1743: /etc/apache2/sites-available/001-fog.conf: No such file or directory
                                  Failed!
                                  OK
                                   * Starting and checking status of web services................Failed!
                                  OK
                                   * Changing permissions on apache log files....................OK
                                   * Backing up database.........................................Failed!
                                  OK
                                  
                                   * You still need to install/update your database schema.
                                   * This can be done by opening a web browser and going to:
                                  
                                     http://xx.x.xx.xx/fog/management
                                  
                                   * Press [Enter] key when database is updated/installed.
                                  
                                  
                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    chasosnature @chasosnature
                                    last edited by

                                    @chasosnature

                                    and cannot access the gui:

                                    This site can’t be reached
                                    xxx.xxx.x.xx refused to connect.
                                    Search Google for fog management
                                    ERR_CONNECTION_REFUSED
                                    
                                    C 1 Reply Last reply Reply Quote 0
                                    • C
                                      chasosnature @chasosnature
                                      last edited by

                                      @chasosnature

                                      i continued since i couldnt access the gui
                                      and all the required services seem ok

                                      root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# /etc/init.d/mysql restart
                                      [ ok ] Restarting mysql (via systemctl): mysql.service.
                                      root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# /etc/init.d/dnsmasq restart
                                      [ ok ] Restarting dnsmasq (via systemctl): dnsmasq.service.
                                      root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# /etc/init.d/net* restart
                                      [ ok ] Restarting network-manager (via systemctl): network-manager.service.
                                      
                                      root@FogServerKubuntu:/opt/fogproject-1.5.6/bin# service php7.2-fpm status
                                      ● php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager
                                         Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor preset: enabled)
                                         Active: active (running) since Tue 2019-11-26 11:57:17 GMT; 1min 1s ago
                                           Docs: man:php-fpm7.2(8)
                                       Main PID: 12208 (php-fpm7.2)
                                         Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec"
                                          Tasks: 6 (limit: 3781)
                                         CGroup: /system.slice/php7.2-fpm.service
                                                 ├─12208 php-fpm: master process (/etc/php/7.2/fpm/php-fpm.conf)
                                                 ├─12210 php-fpm: pool www
                                                 ├─12211 php-fpm: pool www
                                                 ├─12212 php-fpm: pool www
                                                 ├─12213 php-fpm: pool www
                                                 └─12214 php-fpm: pool www
                                      
                                      Nov 26 11:57:17 FogServerKubuntu systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
                                      Nov 26 11:57:17 FogServerKubuntu systemd[1]: Started The PHP 7.2 FastCGI Process Manager.
                                      root@FogServerKubuntu:/opt/fogproject-1.5.6/bin#
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        chasosnature
                                        last edited by chasosnature

                                        on the side i decided to do a clean build on ubuntu 19.04, no modification nothing, just plane ubuntu 19.04
                                        and this is the result:

                                        To run a command as administrator (user "root"), use "sudo <command>".
                                        See "man sudo_root" for details.
                                        
                                        chaosnature@fogserverubuntu:~$ sudo su -
                                        [sudo] password for <username>:
                                        root@fogserverubuntu:~# cd /opt
                                        root@fogserverubuntu:/opt# ls
                                        root@fogserverubuntu:/opt# apt-get install git
                                        Reading package lists... Done
                                        Building dependency tree
                                        Reading state information... Done
                                        git is already the newest version (1:2.20.1-2ubuntu1).
                                        git set to manually installed.
                                        0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
                                        root@fogserverubuntu:/opt# git clone https://github.com/fogproject/fogproject.git fog_stable/
                                        Cloning into 'fog_stable'...
                                        remote: Enumerating objects: 223, done.
                                        remote: Counting objects: 100% (223/223), done.
                                        remote: Compressing objects: 100% (144/144), done.
                                        remote: Total 148443 (delta 145), reused 130 (delta 74), pack-reused 148220
                                        Receiving objects: 100% (148443/148443), 769.74 MiB | 5.64 MiB/s, done.
                                        Resolving deltas: 100% (105105/105105), done.
                                        Checking out files: 100% (849/849), done.
                                        root@fogserverubuntu:/opt# cd fog_stable/bin
                                        root@fogserverubuntu:/opt/fog_stable/bin# sudo ./installfog.sh
                                        Installing LSB_Release as needed
                                         * Attempting to get release information.......................Done
                                        systemd
                                        
                                        
                                           +------------------------------------------+
                                           |     ..#######:.    ..,#,..     .::##::.  |
                                           |.:######          .:;####:......;#;..     |
                                           |...##...        ...##;,;##::::.##...      |
                                           |   ,#          ...##.....##:::##     ..:: |
                                           |   ##    .::###,,##.   . ##.::#.:######::.|
                                           |...##:::###::....#. ..  .#...#. #...#:::. |
                                           |..:####:..    ..##......##::##  ..  #     |
                                           |    #  .      ...##:,;##;:::#: ... ##..   |
                                           |   .#  .       .:;####;::::.##:::;#:..    |
                                           |    #                     ..:;###..       |
                                           |                                          |
                                           +------------------------------------------+
                                           |      Free Computer Imaging Solution      |
                                           +------------------------------------------+
                                           |  Credits: http://fogproject.org/Credits  |
                                           |       http://fogproject.org/Credits      |
                                           |       Released under GPL Version 3       |
                                           +------------------------------------------+
                                        
                                        
                                           Version: 1.5.7 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: [2] 2
                                        
                                        
                                        
                                          Starting Debian based Installation
                                        
                                        
                                         *** Detected a potential need to reinstall apache and php files.
                                         *** This will remove the /etc/php* and /etc/apache2* directories
                                         ***  and remove/purge the apache and php files from this system.
                                         *** If you're okay with this please type Y, anything else will
                                         ***  continue the installation, but may mean you will need to
                                         ***  remove the files later and make proper changes as
                                         ***  necessary. (Y/N):
                                        y
                                         * Removing apache and php files...............................Done
                                         * Stopping web services.......................................Failed
                                         * Removing the apache and php packages........................Done
                                         * Resetting our variables to specify php version..............Done
                                          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)] n
                                        
                                          We found the following interfaces on your system:
                                              * ens3 - xxx.xxx.x.xx/24
                                        
                                          Would you like to change the default network interface from ens3?
                                          If you are not sure, select No. [y/N] n
                                        
                                          Would you like to setup a router address for the DHCP server? [Y/n] n
                                        
                                          Would you like DHCP to handle DNS? [Y/n] n
                                        
                                          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] n
                                        
                                         *** New option 'hostname' since FOG 1.5.6 ***
                                        
                                          Would you like to change the default hostname >fogserverubuntu<?
                                          The fully qualified hostname is used for the webserver certificate.
                                          If you are not sure, select No. [y/N] 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      #
                                           ######################################################################
                                           #            Please see our wiki for more information at:            #
                                           ######################################################################
                                           #             https://wiki.fogproject.org/wiki/index.php             #
                                           ######################################################################
                                        
                                         * Here are the settings FOG will use:
                                         * Base Linux: Debian
                                         * Detected Linux Distribution: Ubuntu
                                         * Interface: ens3
                                         * Server IP Address: xxx.xxx.x.xx
                                         * Server Subnet Mask: xxx.xxx.x.xx
                                         * Server Hostname: fogserverubuntu
                                         * Installation Type: Normal Server
                                         * Internationalization: 0
                                         * Image Storage Location: /images
                                         * Using FOG DHCP: No
                                         * 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 and filename
                                        
                                         * On a Windows DHCP server you must set options 066 and 067
                                        
                                         * Option 066/next-server is the IP of the FOG Server: (e.g. xxx.xxx.x.xx)
                                         * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
                                        
                                        
                                         * Are you sure you wish to continue (Y/N) y
                                        
                                         * Installation Started
                                        
                                         * Testing internet connection.................................Done
                                         * Adding repository if needed.................................OK
                                         * Preparing Package Manager...................................OK
                                         * Packages to be installed:
                                        
                                                apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isolinux lftp libapache2-mod-php7.2 libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php-gettext php7.2 php7.2-bcmath php7.2-cli php7.2-curl php7.2-fpm php7.2-gd php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-mysqlnd sysv-rc-conf tar tftp-hpa tftpd-hpa unzip vsftpd wget xinetd zlib1g
                                        
                                        
                                         * Installing package: apache2.................................OK
                                         * Skipping package:   bc......................................(Already Installed)
                                         * Installing package: build-essential.........................OK
                                         * Skipping package:   cpp.....................................(Already Installed)
                                         * Skipping package:   curl....................................(Already Installed)
                                         * Skipping package:   g++.....................................(Already Installed)
                                         * Skipping package:   gawk....................................(Already Installed)
                                         * Skipping package:   gcc.....................................(Already Installed)
                                         * Installing package: genisoimage.............................OK
                                         * Skipping package:   gzip....................................(Already Installed)
                                         * Installing package: htmldoc.................................OK
                                         * Installing package: isolinux................................OK
                                         * Installing package: lftp....................................OK
                                         * Skipping package: libapache2-mod-php7.2.....................(Does not exist)
                                         * Skipping package:   libc6...................................(Already Installed)
                                         * Skipping package:   libcurl4................................(Already Installed)
                                         * Installing package: liblzma-dev.............................OK
                                         * Installing package: m4......................................OK
                                         * Installing package: mariadb-client..........................OK
                                         * Installing package: mariadb-server..........................OK
                                         * Installing package: net-tools...............................OK
                                         * Installing package: nfs-kernel-server.......................OK
                                         * Skipping package:   openssh-server..........................(Already Installed)
                                         * Installing package: php-gettext.............................OK
                                         * Skipping package: php7.2....................................(Does not exist)
                                         * Skipping package: php7.2-bcmath.............................(Does not exist)
                                         * Skipping package: php7.2-cli................................(Does not exist)
                                         * Skipping package: php7.2-curl...............................(Does not exist)
                                         * Skipping package: php7.2-fpm................................(Does not exist)
                                         * Skipping package: php7.2-gd.................................(Does not exist)
                                         * Skipping package: php7.2-json...............................(Does not exist)
                                         * Skipping package: php7.2-ldap...............................(Does not exist)
                                         * Skipping package: php7.2-mbstring...........................(Does not exist)
                                         * Skipping package: php7.2-mysql..............................(Does not exist)
                                         * Skipping package: php7.2-mysqlnd............................(Does not exist)
                                         * Skipping package: sysv-rc-conf..............................(Does not exist)
                                         * Skipping package:   tar.....................................(Already Installed)
                                         * Installing package: tftp-hpa................................OK
                                         * Installing package: tftpd-hpa...............................OK
                                         * Installing package: unzip...................................OK
                                         * Installing package: vsftpd..................................OK
                                         * Skipping package:   wget....................................(Already Installed)
                                         * Installing package: xinetd..................................OK
                                         * Skipping package:   zlib1g..................................(Already Installed)
                                         * Updating packages as needed.................................OK
                                        
                                         * Confirming package installation
                                        
                                         * Checking package: apache2...................................OK
                                         * Checking package: bc........................................OK
                                         * Checking package: build-essential...........................OK
                                         * Checking package: cpp.......................................OK
                                         * Checking package: curl......................................OK
                                         * Checking package: g++.......................................OK
                                         * Checking package: gawk......................................OK
                                         * Checking package: gcc.......................................OK
                                         * Checking package: genisoimage...............................OK
                                         * Checking package: gzip......................................OK
                                         * Checking package: htmldoc...................................OK
                                         * Checking package: isolinux..................................OK
                                         * Checking package: lftp......................................OK
                                         * Checking package: libc6.....................................OK
                                         * Checking package: libcurl4..................................OK
                                         * Checking package: liblzma-dev...............................OK
                                         * Checking package: m4........................................OK
                                         * Checking package: mariadb-client............................OK
                                         * Checking package: mariadb-server............................OK
                                         * Checking package: net-tools.................................OK
                                         * Checking package: nfs-kernel-server.........................OK
                                         * Checking package: openssh-server............................OK
                                         * Checking package: php-gettext...............................OK
                                         * Checking package: tar.......................................OK
                                         * Checking package: tftp-hpa..................................OK
                                         * Checking package: tftpd-hpa.................................OK
                                         * Checking package: unzip.....................................OK
                                         * Checking package: vsftpd....................................OK
                                         * Checking package: wget......................................OK
                                         * Checking package: xinetd....................................OK
                                         * Checking package: zlib1g....................................OK
                                        
                                         * Configuring services
                                        
                                         * Setting up fogproject user..................................OK
                                         * Locking fogproject as a system account......................OK
                                         * Setting up fogproject password..............................OK
                                         * Stopping FOGMulticastManager.service Service................OK
                                         * Stopping FOGImageReplicator.service Service.................OK
                                         * Stopping FOGSnapinReplicator.service Service................OK
                                         * Stopping FOGScheduler.service Service.......................OK
                                         * Stopping FOGPingHosts.service Service.......................OK
                                         * Stopping FOGSnapinHash.service Service......................OK
                                         * Stopping FOGImageSize.service Service.......................OK
                                         * Is the MySQL password blank? (Y/n) y
                                         * Setting up and starting MySQL...............................Done
                                         * Backing up user reports.....................................Done
                                         * Stopping web service........................................Failed!
                                        root@fogserverubuntu:/opt/fog_stable/bin#
                                        
                                        

                                        And yet on spice work i have others confirming the got it working from git on version 19.04

                                        i think you should check and test options y, n, n, n, n, n, y

                                        bcos the options is the only thing i see different from other’s deployment.

                                        C 2 Replies Last reply Reply Quote 0
                                        • C
                                          chasosnature @chasosnature
                                          last edited by chasosnature

                                          @chasosnature

                                          Updates to 19.04 installation and Re-installaion.

                                          After the 1st installation failure ( with options - Y, and N x7, then Y) i did:

                                          1.# Delete fogproject Account
                                          userdel fogproject

                                          2.# Start the insall
                                          ./installfog.sh

                                          3.# Then, No options of DNS and DHCP Exclusions by
                                          Selecting Y, and N x7, then Y

                                          Installations begins…

                                          * Configuring services
                                          
                                           * Setting up fogproject user..................................OK
                                           * Locking fogproject as a system account......................OK
                                           * Setting up fogproject password..............................OK
                                           * Stopping FOGMulticastManager.service Service................OK
                                           * Stopping FOGImageReplicator.service Service.................OK
                                           * Stopping FOGSnapinReplicator.service Service................OK
                                           * Stopping FOGScheduler.service Service.......................OK
                                           * Stopping FOGPingHosts.service Service.......................OK
                                           * Stopping FOGSnapinHash.service Service......................OK
                                           * Stopping FOGImageSize.service Service.......................OK
                                           * Is the MySQL password blank? (Y/n) 
                                          

                                          Don’t Press yes yet… (Open another Terminal and run do the below steps):

                                          cd /tmp && wget http://mirrors.kernel.org/ubuntu/pool/multiverse/liba/libapache-mod-fastcgi/libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb
                                          sudo dpkg -i libapache2-mod-fastcgi_2.4.7~0910052141-1.2_amd64.deb; sudo apt install -f
                                          
                                          1. Add Repo:
                                          sudo apt-get install software-properties-common
                                          sudo add-apt-repository ppa:ondrej/php
                                          
                                          1. update Repo:
                                          sudo apt update
                                          
                                          1. manually installed the below:
                                          sudo apt install php7.2 php7.2-fpm php7.2-common
                                          
                                          

                                          … (etc)

                                          * Skipping package: php7.2....................................(Does not exist)
                                           * Skipping package: php7.2-bcmath.............................(Does not exist)
                                           * Skipping package: php7.2-cli................................(Does not exist)
                                           * Skipping package: php7.2-curl...............................(Does not exist)
                                           * Skipping package: php7.2-fpm................................(Does not exist)
                                           * Skipping package: php7.2-gd.................................(Does not exist)
                                           * Skipping package: php7.2-json...............................(Does not exist)
                                           * Skipping package: php7.2-ldap...............................(Does not exist)
                                           * Skipping package: php7.2-mbstring...........................(Does not exist)
                                           * Skipping package: php7.2-mysql..............................(Does not exist)
                                           * Skipping package: php7.2-mysqlnd............................(Does not exist)
                                          
                                          1. Back to the installation terminal, Then select yes
                                          * Is the MySQL password blank? (Y/n) y
                                          

                                          Next section continue until update mysql schema

                                           * Creating auth pub key and cert..............................OK
                                           * Resetting SSL Permissions...................................OK
                                           * Setting up Apache virtual host (no SSL).....................OK
                                           * Starting and checking status of web services................OK
                                           * Changing permissions on apache log files....................OK
                                           * Backing up database.........................................OK
                                          
                                           * You still need to install/update your database schema.
                                           * This can be done by opening a web browser and going to:
                                          
                                             http://xxx.xxx.x.xx/fog/management
                                          
                                          
                                          1. Update Schema and press eneter to continue
                                          * Press [Enter] key when database is updated/installed.
                                          

                                          All OKs install complete

                                          * Setting up storage..........................................OK
                                           * Setting up and starting DHCP Server.........................Skipped
                                           * Setting up and starting TFTP and PXE Servers................OK
                                           * Setting up and starting VSFTP Server........................OK
                                           * Setting up FOG Snapins......................................OK
                                           * Setting up UDPCast..........................................OK
                                           * Configuring UDPCast.........................................OK
                                           * Building UDPCast............................................OK
                                           * Installing UDPCast..........................................OK
                                           * Installing FOG System Scripts...............................OK
                                          
                                           * Configuring FOG System Services
                                          
                                           * Setting up and starting NFS Server..........................OK
                                           * Linking FOG Logs to Linux Logs..............................OK
                                           * Linking FOG Service config /etc.............................OK
                                           * Ensuring node username and passwords match..................Done
                                          
                                           * Setup complete
                                          
                                             You can now login to the FOG Management Portal using
                                             the information listed below.  The login information
                                             is only if this is the first install.
                                          
                                             This can be done by opening a web browser and going to:
                                          
                                             http://xxx.xxx.x.xx/fog/management
                                          
                                             Default User Information
                                             Username: fog
                                             Password: password
                                          
                                          1. Login Successful

                                          Notes: So imagine the pre-req for installing Fog on ubuntu 19 with the selected options would be perform steps 3 to 6
                                          which means if step 3 to 6 is performed before install, it should be successful.

                                          i will try this on ubuntu 18 next (installing the pre-req before initiating install)

                                          it looks like the repo is the issue here…is there no way to include the php 7.2 components to the Fog installation files?

                                          Now FOG Config

                                          -----------------------------------------DNSMASQ Configuration would be:…

                                          Follow the steps outlined in the link below:
                                          https://wiki.fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server

                                          Setup and Configuration steps 1 to 6

                                          nano /etc/exports and enter step 5 details (i comment out the existing details)

                                          sudo apt-get install dnsmasq

                                          Skip step 7

                                          Do “DNSMASQ settings for iPXE” sections (change ip details to reflect your environment)

                                          nano /etc/dnsmasq.d/ltsp.conf (Enter DNSMASQ settings for iPXE details)

                                          Make a symlink for the undionly.kpxe file so dnsmasq can find it.

                                          cd /tftpboot
                                          sudo ln -s undionly.kpxe undionly.0
                                          OR

                                          cd /tftpboot
                                          cp undionly.kpxe undionly.0 (i used this option)

                                          then finally
                                          back to step 8

                                          sudo /etc/init.d/dnsmasq restart

                                          after dnsmasq config Vm can pxe
                                          fog pxe.png

                                          ____ …End Results

                                          Able to loging with fog/password , fog is 1.5.7
                                          fog console.png

                                          -----------------------------------------DNSMASQ Troubleshooting…
                                          if you receive ( failed to create listening socket for port 53:) Run:
                                          use journalctl -xe to find out why then…

                                          lsof -Pn +M | grep ':53 (LISTEN)' 
                                          

                                          (you should see whats hugging port 53 , usally resolver)

                                          /etc/init.d/tftp* stop 
                                          

                                          (to free up port 53)

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            chasosnature @chasosnature
                                            last edited by

                                            @chasosnature

                                            so now the question is does it image, as this is where i stopped with ubuntu 18.04 too

                                            will update.

                                            C 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post

                                            179

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project