Ubuntu 16.04 installing fog error- stopping web service failed



  • I have been experiencing some issues installing the latest version (i believe) 5790 of fog onto my ubuntu desktop 16.04 LTS. This is a fresh install fully updated with only subversion installed. When i run the sudo ./installfog.sh command i run through all the steps but it errors on stopping web service every time. Any help would be appreciated. I have tried running the install as php7 as well, and that has yielded the same error. Thanks in advance

     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Server IP Address: 
     * Server Subnet Mask: 255.255.255.0
     * Interface: ens160
     * Installation Type: Normal Server
     * Donate: 0
     * 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. )
     * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
    
     * 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 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5
    
     * Skipping package: apache2...................................(Already Installed)
     * Skipping package: php5......................................(Does not exist)
     * Skipping package: php5-json.................................(Does not exist)
     * Skipping package: php5-gd...................................(Does not exist)
     * Skipping package: php5-cli..................................(Does not exist)
     * Skipping package: php5-curl.................................(Does not exist)
     * Skipping package: mysql-server..............................(Already Installed)
     * Skipping package: mysql-client..............................(Already Installed)
     * Skipping package: tftpd-hpa.................................(Already Installed)
     * Skipping package: tftp-hpa..................................(Already Installed)
     * Skipping package: nfs-kernel-server.........................(Already Installed)
     * Skipping package: vsftpd....................................(Already Installed)
     * Skipping package: net-tools.................................(Already Installed)
     * Skipping package: wget......................................(Already Installed)
     * Skipping package: xinetd....................................(Already Installed)
     * Skipping package: sysv-rc-conf..............................(Already Installed)
     * Skipping package: tar.......................................(Already Installed)
     * Skipping package: gzip......................................(Already Installed)
     * Skipping package: build-essential...........................(Already Installed)
     * Skipping package: cpp.......................................(Already Installed)
     * Skipping package: gcc.......................................(Already Installed)
     * Skipping package: g++.......................................(Already Installed)
     * Skipping package: m4........................................(Already Installed)
     * Skipping package: htmldoc...................................(Already Installed)
     * Skipping package: lftp......................................(Already Installed)
     * Skipping package: openssh-server............................(Already Installed)
     * Skipping package: php-gettext...............................(Already Installed)
     * Skipping package: php5-mcrypt...............................(Does not exist)
     * Skipping package: php5-mysqlnd..............................(Does not exist)
     * Skipping package: curl......................................(Already Installed)
     * Skipping package: libc6.....................................(Already Installed)
     * Skipping package: libcurl3..................................(Already Installed)
     * Skipping package: zlib1g....................................(Already Installed)
     * Skipping package: php5-fpm..................................(Does not exist)
     * Skipping package: libapache2-mod-php5.......................(Does not exist)
     * Updating packages as needed.................................OK
    
     * Confirming package installation
    
     * Checking package: apache2...................................OK
     * Checking package: mysql-server..............................OK
     * Checking package: mysql-client..............................OK
     * Checking package: tftpd-hpa.................................OK
     * Checking package: tftp-hpa..................................OK
     * Checking package: nfs-kernel-server.........................OK
     * Checking package: vsftpd....................................OK
     * Checking package: net-tools.................................OK
     * Checking package: wget......................................OK
     * Checking package: xinetd....................................OK
     * Checking package: sysv-rc-conf..............................OK
     * Checking package: tar.......................................OK
     * Checking package: gzip......................................OK
     * Checking package: build-essential...........................OK
     * Checking package: cpp.......................................OK
     * Checking package: gcc.......................................OK
     * Checking package: g++.......................................OK
     * Checking package: m4........................................OK
     * Checking package: htmldoc...................................OK
     * Checking package: lftp......................................OK
     * Checking package: openssh-server............................OK
     * Checking package: php-gettext...............................OK
     * Checking package: curl......................................OK
     * Checking package: libc6.....................................OK
     * Checking package: libcurl3..................................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
     * Setting up and starting MySQL...............................OK
     * Backing up user reports.....................................Done
     * Stopping web service........................................Failed!
    


  • I did a fresh install again and did sudo -i and installed if from that prompt the first time, and everything worked now. It is currently up and running, thanks for all the help.




  • Senior Developer

    @kirkk can you upload the whole log file please?



  • @Tom-Elliott 0_1467301309479_Capture.PNG It got much farther this time, but stopped with this error.




  • Senior Developer

    For all of these issues I think i figured it out.

    Try this:

    sudo -i
    php_ver='7.0' php_verAdds='-7.0' ./installfog.sh -y
    

  • Senior Developer

    What’s output of:

    sudo lsb_release -a



  • @Tom-Elliott I have run those commands and get the same error. @Quazz i couldnt find an apache2 folder in the etc/ directory


  • Senior Developer

    PHP 5 does not exist for Ubuntu 16.04. So this is troubling me.

    Can you run:

    sudo rm -rf /etc/php* /etc/apache* /var/www
    sudo apt-get purge libapache* php5*
    sudo apt-get autoremove --purge
    sudo apt-get update
    php_ver='7.0' php_verAdds='-7.0' ./installfog.sh -y
    

  • Moderator

    @kirkk There’s most likely leftover files which you need to manually remove.

    I think on Ubuntu you’ll have to remove all php folders in /etc/apache2



  • @Tom-Elliott No it is a fresh install of ubuntu 16.04



  • 0_1467299238604_Capture.PNG


  • Senior Developer

    @kirkk DId you upgrade to Ubuntu 16.04 from a prior version?



  • @Tom-Elliott I have done that for the install, it still gives the php5 error, i even purged php5 packages running it with the php7 command.


  • Senior Developer

    @kirkk You have not followed the instructions. If you had, you’d have found you’re missing the installfog.sh as it should be:

    php_ver='7.0' php_verAdds='-7.0' ./installfog.sh



  • I have gone through that wiki and tried ever one of those tweaks to the best of my knowledge. Here is the error log i get:

    /usr/bin/lsb_release
    /bin/systemctl
    Reading package lists…
    Building dependency tree…
    Reading state information…
    software-properties-common is already the newest version (0.96.20.1).
    python-software-properties is already the newest version (0.96.20.1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    30 Jun 09:27:03 ntpdate: Starting MySQL Community Server…
    Jun 30 09:28:00 FOG-SERVER systemd[1]: Started MySQL Community Server.
    Failed to stop php5-fpm.service: Unit php5-fpm.service not loaded.


  • Developer

    https://wiki.fogproject.org/wiki/index.php?title=Ubuntu_16.04

    As well you want to check the install logs in fogproject/bin/error_log


  • Moderator

    I’m running mobile right now so I can’t link in anything. But there is a wiki page that explains how to install to install fog on Ubuntu 16.04. There are a few tweaks you need to do.


Log in to reply
 

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.