Ubuntu Server 19.10, Failed to stop web service
-
So I’ve been fighting this install all day now. Manually installed php 7.3, and apache2. Reboot, check apt for updates… I cannot get around this blasted Apache service error. Googled earlier and found a reference to Ubunt u 16.04 where the person added a “ServerName localhost” line to the apache2.conf file. Tried that… no help.
Here’s the screen feedback:
Last login: Fri Feb 14 19:35:04 2020 from 192.168.0.169 fogadmin@ssi-fog:~$ sudo userdel fogproject [sudo] password for fogadmin: fogadmin@ssi-fog:~$ cd git/fogproject/bin fogadmin@ssi-fog:~/git/fogproject/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): n 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: * ens160 - 192.168.20.8/24 Would you like to change the default network interface from ens160? 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 >ssi-fog<? 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: ens160 * Server IP Address: 192.168.20.8 * Server Subnet Mask: 255.255.255.0 * Server Hostname: ssi-fog * 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. 192.168.20.8) * 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-php libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php php-bcmath php-cli php-curl php-fpm php-gd php-gettext php-json php-mbstring php-mysql php-mysqlnd 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: isolinux................................(Already Installed) * Skipping package: lftp....................................(Already Installed) * Skipping package: libapache2-mod-php......................(Already Installed) * 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) * Skipping package: php.....................................(Already Installed) * Skipping package: php-bcmath..............................(Already Installed) * Skipping package: php-cli.................................(Already Installed) * Skipping package: php-curl................................(Already Installed) * Skipping package: php-fpm.................................(Already Installed) * Skipping package: php-gd..................................(Already Installed) * Skipping package: php-gettext.............................(Already Installed) * Skipping package: php-json................................(Already Installed) * Skipping package: php-mbstring............................(Already Installed) * Skipping package: php-mysql...............................(Already Installed) * Skipping package: php-mysql...............................(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-php........................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.......................................OK * Checking package: php-bcmath................................OK * Checking package: php-cli...................................OK * Checking package: php-curl..................................OK * Checking package: php-fpm...................................OK * Checking package: php-gd....................................OK * Checking package: php-gettext...............................OK * Checking package: php-json..................................OK * Checking package: php-mbstring..............................OK * Checking package: php-mysql.................................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........................................Failed! fogadmin@ssi-fog:~/git/fogproject/bin$
I am completely stumped here, any help would be greatly appreciated.
-
You have to use FOG version 1.6.
https://forums.fogproject.org/topic/14153/fog-version-1-6-on-ubuntu-19-10-so-close/2?_=1581723908061
I was able to get it working on 19.10 to where I could log into the web admin but bit was unusable. Navigating the web interface was not possible.
-
@Skeer Welcome to the forums! The latest official FOG release came out before Ubuntu 19.10 was even released and so it’s got a bit of an issue. We have been working a lot on the next release 1.5.8 that will come out soon. If you don’t want to wait you can also use one of the development versions as mentioned by Fog_Newb. Though I might add to this that there are two different ones:
dev-branch
is where we work on right now to be released as 1.5.8 soonworking-1.6
is the dev version of what we also work on to come out as FOG 1.6 some time in the future (no date yet).
You are welcome to try out one or the other but be aware the 1.6 dev version is under heavy development and there is no easy way back to the 1.5.x versions as of now.
... fogadmin@ssi-fog:~/git/fogproject/bin$ sudo ./installfog.sh ...
We don’t recommend running the installer using sudo anymore. I have just updated information on the website. While it works in most cases we have seen things going wrong that way as well. Better use:
sudo -i cd fogproject..../bin ./installfog.sh
-
Thanks Guys! I’ll def be giving 1.6 a try. This is a new test server and has nothing else on it… if I need to nuke it to start over so be it.
-
@Skeer said in Ubuntu Server 19.10, Failed to stop web service:
Thanks Guys! I’ll def be giving 1.6 a try. This is a new test server and has nothing else on it… if I need to nuke it to start over so be it.
So the dev-branch installed like a champ, I can pull up and login to the web gui. Except some process must not be running, nmap shows no port 69 listening.
Test clients fail to pxt boot claiming a tftp timeout. -
@Skeer said in Ubuntu Server 19.10, Failed to stop web service:
@Skeer said in Ubuntu Server 19.10, Failed to stop web service:
Thanks Guys! I’ll def be giving 1.6 a try. This is a new test server and has nothing else on it… if I need to nuke it to start over so be it.
So the dev-branch installed like a champ, I can pull up and login to the web gui. Except some process must not be running, nmap shows no port 69 listening.
Test clients fail to pxt boot claiming a tftp timeout.Went ahead and rebooted… journalctl only shows issues with FogSnapinReplicator starting and stopping ever second.
-
@Skeer Can you please post the two logs you find in the subdirectory
error_logs
(withinfogproject/bin/
where you ran the installer)?As well please run the following commands and post output here:
ps ax | grep tftp systemctl status xinetd
-
fogadmin@ssi-fog:~$ ps ax | grep tftp 965 ? Ss 0:00 /usr/sbin/in.tftpd --listen --user root --address :69 -s /tftpboot 25260 pts/0 S+ 0:00 grep --color=auto tftp fogadmin@ssi-fog:~$ systemctl status xinetd ● xinetd.service - LSB: Starts or stops the xinetd daemon. Loaded: loaded (/etc/init.d/xinetd; generated) Active: inactive (dead) Docs: man:systemd-sysv-generator(8)
Logs attached.fog_error.log foginstall.log
-
@Skeer TFTP daemon seems to be running. The second command I had wrong from the top of my head. Run
systemctl status tftpd-hpa
instead. Should show it running.Possibly you have a firewall enabled? Run those two commands as root and post output here:
iptables -L -n -v ufw status
-
Thanks for the continued help Sabastian.
No, iptables is not configured on this machine:
sudo iptables -L -n -v
[sudo] password for fogadmin:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destinationChain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destinationChain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
fogadmin@ssi-fog:~/git/fogproject-dev-branch/bin/error_logs$Admittedly yesterday and previous our DHCP functions were handled at the firewall level. I had thought maybe there was some issue with that and since I’ve been meaning to do this anyway… last night I moved those functions to my domain controller (Server 2016). So the DHCP Options are configures correctly except a test PXE boot on a laptop behind me failed. It’s an HP so I didn’t get much feedback so I’m not sure the exact cause at this time.
-
Am I correct in assuming that I should be able to see port 69 open via NMAP?
-
@Skeer On the fog server if you run
netstat -an|grep :69
it should reply with a line that looks like this:udp 0 0 0.0.0.0:69 0.0.0.0:*
I’m not familiar with ubuntu 19, but I would check in the /etc directory to see if there are files like hosts.allow and hosts.deny. The service name in.tftp kind of tells me they use the security wrapper around tftp to state who can connect to that service.
ref: https://www.poftut.com/linux-hosts-allow-hosts-deny-control-network-access/
-
Ah I do see the port listed this way… a vanilla ‘netstat | less’ did not show :69 anywhere. Hence my confusion.
Ok so I was able to successfully PXE boot to a KVM guest, just not on a physical one yet.
So I know FOG works which is great!
Now I need to explore the settings and figure out how to successfully pull an image. Thanks for the help!
-
Well this is disappointing. So due to an unrelated issue I decided to flatten this guest and build anew. I figured it’d be good since now I know the right version to use.
So flattened, new 19.10 install and the Apache service is still an issue. Even with installing the dev branch.
Manually installed php7.3, apache2, libmodule-apache, etc… not a thing I do now alleviates the failed to restart web services error. -
@Skeer said in Ubuntu Server 19.10, Failed to stop web service:
Manually installed php7.3, apache2, libmodule-apache, etc…
There shouldn’t be a need to manually install any packages. The installer should handle all that. We need more information on what exactly you’ve done and the error message you got to be able to help.
-
@Sebastian-Roth Oh it’s exactly as described and exactly what happened the first go-round.
Since it’s in a failed state… let me do this. I’ll re-re-flatten the guest and start over. Fresh 19.10 install, ‘apt update/upgrade’ then I’ll run the fog installer from the dev-branch and see what happens. -
@Skeer said in Ubuntu Server 19.10, Failed to stop web service:
I’ll re-re-flatten the guest and start over.
Please use snapshots which are a perfect tool for those kind of tests. No need to reinstall from scratch all the time.
-
@Skeer I just did a clean install on Ubuntu 19.10 using
dev-branch
and it worked perfectly fine. Haven’t done extensive testing beyond that but I would imagine it to capture and deploy images fine too. -
@Sebastian-Roth Keep forgetting about Snapshots… thats what I get for being in a hurry.
Ok so I’ve got an updated OS and following the steps here: https://wiki.fogproject.org/wiki/index.php?title=Getting_FOG I’ve pulled the dev-branch. So I should be good for the install script yes? (I’m not super experienced with git so I’m not feeling positive I actually have the full dev-branch source)
-
@Skeer On the right track with the stuff you find in the wiki. The important command after cloning (downloading) the FOG repo is to switch to the dev-branch:
git checkout dev-branch
By the way. If you want to wait a few more hours, FOG 1.5.8 will be out.