Issues during installation on Debian 9.6 stretch
-
@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
-
@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. -
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.
-
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 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. -
@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
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. -
@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
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#
-
@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.
-
Here is the log file. 0_1543949080446_debug.log
-
@thegiantcat Thanks for the log but seems like my instructions were not as well though of. Didn’t have a machine to test and just made that up. So let’s do it a different way because we still miss the most important part in the debug log. Edit
installfog.sh
again and remove the-xv
. Then start the installer like this:bash -x installfog.sh 2> debug.log
. You will see some amount of debug messages go past ending with a lineChoice: [1] ++ read osid
. Just hit ctrl+c here and upload the new debug log. That should have the information I hope to see what’s going wrong. -
@Sebastian-Roth
Here is the returned info.
0_1544024050517_debug2.log -
@thegiantcat Well that’s interesting. Can you please run
grep -A 10 "configureMySql" /etc/fogproject/bin/lib/common/functions.sh
and post result here.By the way,
/etc
is not exactly a great place to use for keeping this kind of data. -
@Sebastian-Roth
Here ya go.configureMySql() { stopInitScript dots "Setting up and starting MySQL" # for mysqlconf in $(grep -rl '.*skip-networking' /etc | grep -v init.d); do # sed -i '/.*skip-networking/ s/^#*/#/' -i $mysqlconf >>$workingdir/error_logs/fog_error_${version}.log 2>&1 done # for mysqlconf in `grep -rl '.*bind-address.*=.*127.0.0.1' /etc | grep -v init.d`; do # sed -e '/.*bind-address.*=.*127.0.0.1/ s/^#*/#/' -i $mysqlconf >>$workingdir/error_logs/fog_error_${version}.log 2>&1 done if [[ $systemctl == yes ]]; then if [[ $osid -eq 3 ]]; then -- configureMySql mysqlver=$(echo $mysqlver | awk -F'([.])' '{print $1"."$2}') runTest=$(echo "$mysqlver < $vertocheck" | bc) if [[ $runTest -eq 0 ]]; then [[ -z $snmysqlhost ]] && snmysqlhost='localhost' [[ -z $snmysqluser ]] && snmysqluser='root' case $snmysqlhost in 127.0.0.1|[Ll][Oo][Cc][Aa][Ll][Hh][Oo][Ss][Tt]) sql="UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root';" mysql "${options}" -e "$sql" >>$workingdir/error_logs/fog_error_${version}.log 2>&1 sql="ALTER USER '$snmysqluser'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY '$sqlescsnmysqlpass';"
-
@thegiantcat Here we go. This has nothing to do with Debian. Someone messed with the installer scripts.
If this is from github you can reset the local repo to install FOG 1.5.5 like this:
cd /etc/fogproject git reset --hard git pull git checkout master
If the git commands fail, you probably just have an extracted archive there. Then simply leave that stuff or better delete and clone fresh from github:
cd /root git clone https://github.com/FOGproject/fogproject cd fogproject ...
-
Alright, I’m re-cloning the git repository and will re-perform the install and see what happens.
Alright, after reclonining and trying to install it fails to download the binaries.
I fixed this by running export http_proxy=http://myproxyserver:port
However, now it gets to backing up databases and fails. Is this due to a setting because I’m behind a proxy?I’ve included the fog_install error log below if it helps.
# 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: 172.24.28.71 * Server Subnet Mask: 255.255.254.0 * Interface: enp2s0 * Installation Type: Normal Server * Internationalization: 0 * Image Storage Location: /images * Using FOG DHCP: Yes * DHCP router Address: 172.24.28.1 * 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) * Skipping package: isc-dhcp-server.........................(Already Installed) * 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 * Setting up fog user.........................................Already setup * Setting up fog 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...............................OK * Backing up user reports.....................................Done * Stopping web service........................................OK * Removing vhost file.........................................OK * Is the MySQL password blank? (Y/n) * 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...............................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 * Unzipping the binaries......................................Done * Copying binaries where needed...............................Done * 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.........................................Failed!```
-
@thegiantcat At the “Backing up database” stage it sends a HTTP web request to the FOG web server asking to deliver a DB backup. This can fail for various reasons. Could be the proxy or other things. You probably want to set
no_proxy=127.0.0.1,x.x.x.x
(whilex.x.x.x
is your FOG server IP).But could be other things as well. First check web server state via
systemctl status apache2
. Running? Then you might check the logs,/var/log/php-fpm*.log
and the error logs mentioned in my signature. -
@Sebastian-Roth
Apache2 shows running
The php log file mentioned only contains the following[02-Dec-2018 06:25:02] NOTICE: error log file re-opened [04-Dec-2018 09:42:25] NOTICE: Terminating ... [04-Dec-2018 09:42:25] NOTICE: exiting, bye-bye! [04-Dec-2018 10:08:03] NOTICE: fpm is running, pid 465 [04-Dec-2018 10:08:04] NOTICE: ready to handle connections [04-Dec-2018 10:08:04] NOTICE: systemd monitor interval set to 10000ms [04-Dec-2018 11:59:51] NOTICE: Terminating ... [04-Dec-2018 11:59:51] NOTICE: exiting, bye-bye! [04-Dec-2018 12:00:25] NOTICE: fpm is running, pid 470 [04-Dec-2018 12:00:25] NOTICE: ready to handle connections [04-Dec-2018 12:00:25] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 13:42:01] NOTICE: Terminating ... [05-Dec-2018 13:42:01] NOTICE: exiting, bye-bye! [05-Dec-2018 14:09:03] NOTICE: fpm is running, pid 8503 [05-Dec-2018 14:09:03] NOTICE: ready to handle connections [05-Dec-2018 14:09:03] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 14:11:37] NOTICE: Terminating ... [05-Dec-2018 14:11:37] NOTICE: exiting, bye-bye! [05-Dec-2018 14:12:21] NOTICE: fpm is running, pid 9732 [05-Dec-2018 14:12:21] NOTICE: ready to handle connections [05-Dec-2018 14:12:21] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 14:15:19] NOTICE: Terminating ... [05-Dec-2018 14:15:19] NOTICE: exiting, bye-bye! [05-Dec-2018 14:16:11] NOTICE: fpm is running, pid 11029 [05-Dec-2018 14:16:11] NOTICE: ready to handle connections [05-Dec-2018 14:16:11] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 14:18:55] NOTICE: Terminating ... [05-Dec-2018 14:18:55] NOTICE: exiting, bye-bye! [05-Dec-2018 14:19:53] NOTICE: fpm is running, pid 12261 [05-Dec-2018 14:19:53] NOTICE: ready to handle connections [05-Dec-2018 14:19:53] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 14:28:53] NOTICE: Terminating ... [05-Dec-2018 14:28:53] NOTICE: exiting, bye-bye! [05-Dec-2018 14:30:01] NOTICE: fpm is running, pid 13502 [05-Dec-2018 14:30:01] NOTICE: ready to handle connections [05-Dec-2018 14:30:01] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 15:01:27] NOTICE: Terminating ... [05-Dec-2018 15:01:27] NOTICE: exiting, bye-bye! [05-Dec-2018 15:03:14] NOTICE: fpm is running, pid 14933 [05-Dec-2018 15:03:14] NOTICE: ready to handle connections [05-Dec-2018 15:03:14] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 15:09:21] NOTICE: Terminating ... [05-Dec-2018 15:09:21] NOTICE: exiting, bye-bye! [05-Dec-2018 15:10:18] NOTICE: fpm is running, pid 16312 [05-Dec-2018 15:10:18] NOTICE: ready to handle connections [05-Dec-2018 15:10:18] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 15:29:00] NOTICE: Terminating ... [05-Dec-2018 15:29:00] NOTICE: exiting, bye-bye! [05-Dec-2018 15:30:52] NOTICE: fpm is running, pid 18904 [05-Dec-2018 15:30:52] NOTICE: ready to handle connections [05-Dec-2018 15:30:52] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 15:39:08] NOTICE: Terminating ... [05-Dec-2018 15:39:08] NOTICE: exiting, bye-bye! [05-Dec-2018 15:40:03] NOTICE: fpm is running, pid 20203 [05-Dec-2018 15:40:03] NOTICE: ready to handle connections [05-Dec-2018 15:40:03] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 15:54:07] NOTICE: Terminating ... [05-Dec-2018 15:54:07] NOTICE: exiting, bye-bye! [05-Dec-2018 15:54:39] NOTICE: fpm is running, pid 470 [05-Dec-2018 15:54:39] NOTICE: ready to handle connections [05-Dec-2018 15:54:39] NOTICE: systemd monitor interval set to 10000ms [05-Dec-2018 15:56:55] NOTICE: Terminating ... [05-Dec-2018 15:56:55] NOTICE: exiting, bye-bye! [05-Dec-2018 15:57:56] NOTICE: fpm is running, pid 2079 [05-Dec-2018 15:57:56] NOTICE: ready to handle connections [05-Dec-2018 15:57:56] NOTICE: systemd monitor interval set to 10000ms [06-Dec-2018 11:15:22] NOTICE: Terminating ... [06-Dec-2018 11:15:22] NOTICE: exiting, bye-bye! [06-Dec-2018 11:16:06] NOTICE: fpm is running, pid 6848 [06-Dec-2018 11:16:06] NOTICE: ready to handle connections [06-Dec-2018 11:16:06] NOTICE: systemd monitor interval set to 10000ms
The apache2 error log also doesn’t seem to be throwing to many errors
[Thu Dec 06 06:25:02.506492 2018] [mpm_prefork:notice] [pid 2080] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations [Thu Dec 06 06:25:02.506529 2018] [core:notice] [pid 2080] AH00094: Command line: '/usr/sbin/apache2' [Thu Dec 06 11:15:22.443225 2018] [mpm_prefork:notice] [pid 2080] AH00169: caught SIGTERM, shutting down [Thu Dec 06 11:16:06.707548 2018] [mpm_prefork:notice] [pid 6849] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations [Thu Dec 06 11:16:06.707626 2018] [core:notice] [pid 6849] AH00094: Command line: '/usr/sbin/apache2'
However, after doing some digging I thing i found a clue, if I disable the setting in /etc/wgetrc “no_proxy=“localhost”” it fails on “Downloading Binaries” if I have this enabled it fails on “Backing up Database” this backup isn’t using FTP is it?
Unfortunately due to the location, this machine has to go through a proxy to access the internet, is it possible to skip this step in the installation?
-
@thegiantcat said in Issues during installation on Debian 9.6 stretch:
Unfortunately due to the location, this machine has to go through a proxy to access the internet, is it possible to skip this step in the installation?
Sure you can manipulate the scripts but you could also just run the installer like this:
./installfog.sh --exitFail
(actually means “don’t exit on failure”)Strange that “no_proxy” wouldn’t properly work. Have you tested to set to
no_proxy="localhost,127.0.0.1,x.x.x.x"
where x.x.x.x is the FOG server IP?