Issues during installation on Debian 9.6 stretch




  • Developer

    @thegiantcat Ok, this is very strange indeed. Have no idea what could cause this at the moment. We may need to enable shell debug output to figure this out.

    Edit installfog.sh and make the very first line look like this #!/bin/bash -xv. Now that will put out a lot of text. So you better tell it to write to a log file via ./installfog.sh | tee debug.log

    Upload the debug.log file here.



  • @Sebastian-Roth
    Super sorry for the late response, however I was out of town over the weekend and didn’t have access to a way to access this machine. Here is the info you requested.

    root@zstsvreefog:/etc/fogproject# echo $SHELL
    /bin/bash
    root@zstsvreefog:/etc/fogproject# ls -al $(echo $SHELL)
    -rwxr-xr-x 1 root root 1265272 May 15  2017 /bin/bash
    root@zstsvreefog:/etc/fogproject# whoami
    root
    root@zstsvreefog:/etc/fogproject# ls -al lib/common/
    total 152
    drwxr-xr-x 2 root root   4096 Nov 28 11:02 .
    drwxr-xr-x 6 root root   4096 Nov 28 10:47 ..
    -rwxr-xr-x 1 root root   3909 Nov 28 10:47 config.sh
    -rwxr-xr-x 1 root root 119144 Nov 28 11:02 functions.sh
    -rwxr-xr-x 1 root root  13955 Nov 28 10:47 input.sh
    -rw-r--r-- 1 root root   1766 Nov 28 10:47 utils.sh
    root@zstsvreefog:/etc/fogproject#
    

  • Developer

    @thegiantcat said in Issues during installation on Debian 9.6 stretch:

    I don’t believe I am

    I am not saying you have done anything wrong. It was just one blink of an idea why the functions wouldn’t be found. Could be something totally different.

    I just cloned the git repository this morning …

    Maybe there was some kind of issue cloning the repo and that is causing the issue. Just another guess in the wild.



  • @Sebastian-Roth
    I don’t believe I am, only thing changed from defaults during the setup was manual disk provision to use a volume group and installation of no ui. I could check when I get back in the office, I’ll be out and away from the system, however I can do what I can to get to it before Sunday.


  • Developer

    @thegiantcat I though maybe the script functions.sh is missing for some unknown reason and tested by renaming it: mv lib/common/functions.sh lib/common/functions.bak

    But it does throw slightly different errors:

    root@debian9fog:~/fogproject-master/bin# ./installfog.sh 
    ./installfog.sh: line 24: ../lib/common/functions.sh: No such file or directory
    Installing LSB_Release as needed
    ./installfog.sh: line 313: dots: command not found
    Done
    systemd
    ./installfog.sh: line 366: displayBanner: command not found
       Version: 1.5.5 Installer/Updater
    
    ../lib/common/input.sh: line 31: getFirstGoodInterface: command not found
    Not able to find an interface with an active internet connection. Trying alternative methods for determining the interface.
    ../lib/common/input.sh: line 41: getCidr: command not found
    ../lib/common/input.sh: line 41: cidr2mask: command not found
    ../lib/common/input.sh: line 43: /sbin/ifconfig: No such file or directory
    ../lib/common/input.sh: line 44: mask2cidr: command not found
    ../lib/common/input.sh: line 66: displayOSChoices: command not found
      FOG Server installation modes:
          * Normal Server: (Choice N) 
              This is the typical installation type and
              will install all FOG components for you on this
              machine.  Pick this option if you are unsure what to pick.
    
          * Storage Node: (Choice S)
              This install mode will only install the software required
              to make this server act as a node in a storage group
    
      More information:  
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? [N/s (Normal/Storage)] 
    ...
    

    One idea I had is possibly you are using a different shell that does not properly handle the function definitions? Very unlikely but let’s see what we can find out. Run the following commands and post here:

    echo $SHELL
    ls -al $(echo $SHELL)
    whoami
    cd /path/to/gitrepo/fogproject
    ls -al lib/common/
    


  • @Sebastian-Roth said in Issues during installation on Debian 9.6 stretch:

    We haven’t tested Debian 9.6 yet I think.

    The automated installation tests use the latest version of both debian 8 and 9. Before the fog installer runs, basically something like this runs:
    apt-get update;apt-get -y dist-upgrade
    Same for the other OSs. The daily tests are hitting a moving target every day.



  • @Sebastian-Roth

    Here is what is in the fog-install.log under /error_logs/

    ./installfog.sh: line 366: displayBanner: command not found
       Version: 1.5.5 Installer/Updater
    
    Not able to find an interface with an active internet connection. Trying alternative methods for determining the interface.
      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]
    
    
      Starting Debian based Installation
    
    
      FOG Server installation modes:
          * Normal Server: (Choice N)
              This is the typical installation type and
              will install all FOG components for you on this
              machine.  Pick this option if you are unsure what to pick.
    
          * Storage Node: (Choice S)
              This install mode will only install the software required
              to make this server act as a node in a storage group
    
      More information:
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? [N/s (Normal/Storage)]
      What is the IP address to be used by this FOG Server? ["machine_IP"]
      Would you like to change the default network interface from enp2s0?
      If you are not sure, select No. [y/N]
      Would you like to setup a router address for the DHCP server? [Y/n]   What is the IP address to be used for the router on
          the DHCP server? ["gateway"]
      Would you like DHCP to handle DNS? [Y/n]   What DNS address should DHCP allow? ["dns"]
      Would you like to use the FOG server for DHCP service? [y/N]
      This version of FOG has internationalization support, would
      you like to install the additional language packs? [y/N]
       ######################################################################
       #     FOG now has everything it needs for this setup, but please     #
       #   understand that this script will overwrite any setting you may   #
       #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
       ######################################################################
       # It is not recommended that you install this on a production system #
       #        as this script modifies many of your system settings.       #
       ######################################################################
       #             This script should be run by the root user.            #
       #      It will prepend the running with sudo if root is not set      #
       ######################################################################
       #           ** Notice ** FOG is difficult to setup securely          #
       #        SELinux and IPTables are usually asked to be disabled       #
       #           There have been strides in adding capabilities           #
       #          The recommendations would now be more appropriate         #
       #    to set SELinux to permissive and to disable firewall for now.   #
       #  You can find some methods to enable SELinux and maintain firewall #
       #   settings and ports. If you feel comfortable doing so please do   #
       ######################################################################
       #            Please see our wiki for more information at:            #
       ######################################################################
       #             https://wiki.fogproject.org/wiki/index.php             #
       ######################################################################
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Debian GNU/Linux
     * Server IP Address: "machine_IP"
     * Server Subnet Mask: "subnet"
     * Interface: enp2s0
     * Installation Type: Normal Server
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: Yes
     * DHCP router Address: "gateway"
    
    
     * Are you sure you wish to continue (Y/N)
     * Installation Started
    
     * Installing required packages, if this fails
     | make sure you have an active internet connection.
    
     * Adding needed repository....................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
            apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php7.0 libc6 libcurl3 liblzma-dev m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.0 php7.0-bcmath php7.0-cli php7.0-curl php7.0-fpm php7.0-gd php7.0-json php7.0-mbstring php7.0-mysql php7.0-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)
     * 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)
     * Installing package: isc-dhcp-server.........................OK
     * Skipping package:   isolinux................................(Already Installed)
     * Skipping package:   lftp....................................(Already Installed)
     * Skipping package:   libapache2-mod-php7.0...................(Already Installed)
     * Skipping package:   libc6...................................(Already Installed)
     * Skipping package:   libcurl3................................(Already Installed)
     * Skipping package:   liblzma-dev.............................(Already Installed)
     * 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)
     * Skipping package:   php7.0..................................(Already Installed)
     * Skipping package:   php7.0-bcmath...........................(Already Installed)
     * Skipping package:   php7.0-cli..............................(Already Installed)
     * Skipping package:   php7.0-curl.............................(Already Installed)
     * Skipping package:   php7.0-fpm..............................(Already Installed)
     * Skipping package:   php7.0-gd...............................(Already Installed)
     * Skipping package:   php7.0-json.............................(Already Installed)
     * Skipping package:   php7.0-mbstring.........................(Already Installed)
     * Skipping package:   php7.0-mysql............................(Already Installed)
     * Skipping package:   php7.0-mysql............................(Already Installed)
     * Skipping package:   php-gettext.............................(Already Installed)
     * Skipping package:   sysv-rc-conf............................(Already Installed)
     * 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: isc-dhcp-server...........................OK
     * Checking package: isolinux..................................OK
     * Checking package: lftp......................................OK
     * Checking package: libapache2-mod-php7.0.....................OK
     * Checking package: libc6.....................................OK
     * Checking package: libcurl3..................................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.0....................................OK
     * Checking package: php7.0-bcmath.............................OK
     * Checking package: php7.0-cli................................OK
     * Checking package: php7.0-curl...............................OK
     * Checking package: php7.0-fpm................................OK
     * Checking package: php7.0-gd.................................OK
     * Checking package: php7.0-json...............................OK
     * Checking package: php7.0-mbstring...........................OK
     * Checking package: php7.0-mysql..............................OK
     * Checking package: php-gettext...............................OK
     * Checking package: sysv-rc-conf..............................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
    
    ./installfog.sh: line 543: configureUsers: command not found
    ./installfog.sh: line 587: configureMySql: command not found
     * Backing up user reports.....................................Done
    ./installfog.sh: line 589: configureHttpd: command not found
     * 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://"machine_IP"/fog/management
    
     * Press [Enter] key when database is updated/installed.
    ./installfog.sh: line 592: configureStorage: command not found
    ./installfog.sh: line 593: configureDHCP: command not found
     * Setting up and starting TFTP and PXE Servers................OK
     * Setting up and starting VSFTP Server........................OK
    ./installfog.sh: line 596: configureSnapins: command not found
     * 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
    ./installfog.sh: line 600: configureFOGService: command not found
    ./installfog.sh: line 601: configureNFS: command not found
    ./installfog.sh: line 602: writeUpdateFile: command not found
    ./installfog.sh: line 603: linkOptFogDir: command not found
     * 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://"machine_IP"/fog/management
    
       Default User Information
       Username: fog
       Password: password
    


  • @Sebastian-Roth

    Here ya go.

    I actually manually deleted the fog site under var/www however the installation has been re-run since then.

    Looks like its not seeing a file for the other one.

    0_1543437011608_enabledsitesvarwww.JPG


  • Developer

    @thegiantcat Forget my last post. I just saw that I missed the second part of your message. Those “command not found” errors definitely make a huge difference!

    Can you please provide the install logs. You find those in a subdirectory called error_logs within the same directory where you start the installer - .../fogproject/bin/error_logs/.

    Something was going very wrong there. Seems like the installer was not able to source the function.sh file that holds all those commands like configureUsers and so on.


  • Developer

    @thegiantcat Yes, cloning the git repository (without any further git commands in the repo folder) will install 1.5.5 for you at the moment.

    Very strange you see that 404 error. I’ve just done a FOG install on Debian 9.6 and it worked perfectly fine. Though this was not a complete fresh install but upgrade from a fresh 9.5 install. But I can’t think of how that could make a difference!

    So let’s look for the obvious. Please run the following commands and post output here:

    ls -al /var/www /var/www/html
    cat /etc/apache/sites-enabled/001-fog.conf
    


  • @Sebastian-Roth
    DUring the installation it tells me version 1.55 of fog. I just cloned the git repository this morning so I would assume its the latest version.

    The only thing I have in the error log for appache is unfortunately, information from the service stopping/starting from reboots and reinstallation attempts of fog.
    0_1543431392004_apache.JPG

    Additionally I noticed during the installation I get an error during the install about commands not being able to be found when doing the mysql portion of this, I have attached a screenshot if it is helpful.
    0_1543433936271_installfogerror.JPG


  • Developer

    @thegiantcat We haven’t tested Debian 9.6 yet I think. I have been on 9.5 without issues in the last months. Will try 9.6 when I get home. The 404 seems strange. Please take a look at the apache logs if you got further information there. See my signature on where to find those.

    Which FOG version did you install exactly?


Log in to reply
 

384
Online

6.2k
Users

13.5k
Topics

127.5k
Posts