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

    Ubuntu 16.04 installing fog error- stopping web service failed

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    19
    6.2k
    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.
    • george1421G
      george1421 Moderator
      last edited by

      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.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

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

        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

        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 1
        • K
          kirkk
          last edited by

          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[3377]: adjust time server 69.164.201.165 offset -0.008843 sec
          gpg: keyring /tmp/tmp9ca7koah/secring.gpg' created gpg: keyring /tmp/tmp9ca7koah/pubring.gpg’ created
          gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
          gpg: /tmp/tmp9ca7koah/trustdb.gpg: trustdb created
          gpg: key E5267A6C: public key “Launchpad PPA for Ondřej Surý” imported
          gpg: Total number processed: 1
          gpg: imported: 1 (RSA: 1)
          OK
          Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
          Hit:2 http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu xenial InRelease
          Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
          Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
          Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
          Fetched 94.5 kB in 3s (25.9 kB/s)
          Reading package lists…
          Reading package lists…
          Building dependency tree…
          Reading state information…
          ntpdate is already the newest version (1:4.2.8p4+dfsg-3ubuntu5).
          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:26 ntpdate[3652]: adjust time server 69.164.201.165 offset 0.001753 sec
          Generating locales (this might take a while)…
          en_US.UTF-8… done
          Generation complete.
          gpg: keyring /tmp/tmpjv7g3mk9/secring.gpg' created gpg: keyring /tmp/tmpjv7g3mk9/pubring.gpg’ created
          gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
          gpg: /tmp/tmpjv7g3mk9/trustdb.gpg: trustdb created
          gpg: key E5267A6C: public key “Launchpad PPA for Ondřej Surý” imported
          gpg: Total number processed: 1
          gpg: imported: 1 (RSA: 1)
          OK
          Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
          Hit:2 http://ppa.launchpad.net/ondrej/php5-5.6/ubuntu xenial InRelease
          Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
          Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
          Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
          Fetched 94.5 kB in 4s (21.9 kB/s)
          Reading package lists…
          ii apache2 2.4.18-2ubuntu3 amd64 Apache HTTP Server
          dpkg-query: no packages found matching php5
          dpkg-query: no packages found matching php5-json
          dpkg-query: no packages found matching php5-gd
          dpkg-query: no packages found matching php5-curl
          mysql-server-5.7
          mysql-server
          mysql-server-core-5.7
          ii mysql-server 5.7.12-0ubuntu1.1 all MySQL database server (metapackage depending on the latest version)
          ii mysql-client 5.7.12-0ubuntu1.1 all MySQL database client (metapackage depending on the latest version)
          ii tftpd-hpa 5.2+20150808-1ubuntu1 amd64 HPA’s tftp server
          ii tftp-hpa 5.2+20150808-1ubuntu1 amd64 HPA’s tftp client
          ii nfs-kernel-server 1:1.2.8-9ubuntu12 amd64 support for NFS kernel server
          ii vsftpd 3.0.3-3ubuntu2 amd64 lightweight, efficient FTP server written for security
          ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit
          ii wget 1.17.1-1ubuntu1.1 amd64 retrieves files from the web
          ii xinetd 1:2.3.15-6 amd64 replacement for inetd with many enhancements
          ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal
          ii tar 1.28-2.1 amd64 GNU version of the tar archiving utility
          ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities
          ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages
          ii cpp 4:5.3.1-1ubuntu1 amd64 GNU C preprocessor (cpp)
          ii gcc 4:5.3.1-1ubuntu1 amd64 GNU C compiler
          ii g++ 4:5.3.1-1ubuntu1 amd64 GNU C++ compiler
          ii m4 1.4.17-5 amd64 macro processing language
          ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF
          ii lftp 4.6.3a-1build2 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs
          ii openssh-server 1:7.2p2-4ubuntu1 amd64 secure shell (SSH) server, for secure access from remote machines
          ii php-gettext 1.0.11-2build1 all read gettext MO files directly, without requiring anything other than PHP
          dpkg-query: no packages found matching php5-mcrypt
          dpkg-query: no packages found matching php5-mysqlnd
          ii curl 7.47.0-1ubuntu2 amd64 command line tool for transferring data with URL syntax
          ii libc6:amd64 2.23-0ubuntu3 amd64 GNU C Library: Shared libraries
          ii libcurl3:amd64 7.47.0-1ubuntu2 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour)
          ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime
          Reading package lists…
          Building dependency tree…
          Reading state information…
          apache2 is already the newest version (2.4.18-2ubuntu3).
          build-essential is already the newest version (12.1ubuntu2).
          cpp is already the newest version (4:5.3.1-1ubuntu1).
          curl is already the newest version (7.47.0-1ubuntu2).
          g++ is already the newest version (4:5.3.1-1ubuntu1).
          gcc is already the newest version (4:5.3.1-1ubuntu1).
          gzip is already the newest version (1.6-4ubuntu1).
          lftp is already the newest version (4.6.3a-1build2).
          libc6 is already the newest version (2.23-0ubuntu3).
          libcurl3 is already the newest version (7.47.0-1ubuntu2).
          m4 is already the newest version (1.4.17-5).
          net-tools is already the newest version (1.60-26ubuntu1).
          nfs-kernel-server is already the newest version (1:1.2.8-9ubuntu12).
          tar is already the newest version (1.28-2.1).
          tftp-hpa is already the newest version (5.2+20150808-1ubuntu1).
          tftpd-hpa is already the newest version (5.2+20150808-1ubuntu1).
          vsftpd is already the newest version (3.0.3-3ubuntu2).
          xinetd is already the newest version (1:2.3.15-6).
          zlib1g is already the newest version (1:1.2.8.dfsg-2ubuntu4).
          htmldoc is already the newest version (1.8.27-8ubuntu1).
          php-gettext is already the newest version (1.0.11-2build1).
          sysv-rc-conf is already the newest version (0.99-7).
          mysql-client is already the newest version (5.7.12-0ubuntu1.1).
          mysql-server is already the newest version (5.7.12-0ubuntu1.1).
          openssh-server is already the newest version (1:7.2p2-4ubuntu1).
          wget is already the newest version (1.17.1-1ubuntu1.1).
          Calculating upgrade…
          0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
          ii apache2 2.4.18-2ubuntu3 amd64 Apache HTTP Server
          ii mysql-server 5.7.12-0ubuntu1.1 all MySQL database server (metapackage depending on the latest version)
          ii mysql-server 5.7.12-0ubuntu1.1 all MySQL database server (metapackage depending on the latest version)
          ii mysql-client 5.7.12-0ubuntu1.1 all MySQL database client (metapackage depending on the latest version)
          ii tftpd-hpa 5.2+20150808-1ubuntu1 amd64 HPA’s tftp server
          ii tftp-hpa 5.2+20150808-1ubuntu1 amd64 HPA’s tftp client
          ii nfs-kernel-server 1:1.2.8-9ubuntu12 amd64 support for NFS kernel server
          ii vsftpd 3.0.3-3ubuntu2 amd64 lightweight, efficient FTP server written for security
          ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit
          ii wget 1.17.1-1ubuntu1.1 amd64 retrieves files from the web
          ii xinetd 1:2.3.15-6 amd64 replacement for inetd with many enhancements
          ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal
          ii tar 1.28-2.1 amd64 GNU version of the tar archiving utility
          ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities
          ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages
          ii cpp 4:5.3.1-1ubuntu1 amd64 GNU C preprocessor (cpp)
          ii gcc 4:5.3.1-1ubuntu1 amd64 GNU C compiler
          ii g++ 4:5.3.1-1ubuntu1 amd64 GNU C++ compiler
          ii m4 1.4.17-5 amd64 macro processing language
          ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF
          ii lftp 4.6.3a-1build2 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs
          ii openssh-server 1:7.2p2-4ubuntu1 amd64 secure shell (SSH) server, for secure access from remote machines
          ii php-gettext 1.0.11-2build1 all read gettext MO files directly, without requiring anything other than PHP
          ii curl 7.47.0-1ubuntu2 amd64 command line tool for transferring data with URL syntax
          ii libc6:amd64 2.23-0ubuntu3 amd64 GNU C Library: Shared libraries
          ii libcurl3:amd64 7.47.0-1ubuntu2 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour)
          ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime
          Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
          Failed to stop FOGMulticastManager.service: Unit FOGMulticastManager.service not loaded.
          Failed to stop FOGImageReplicator.service: Unit FOGImageReplicator.service not loaded.
          Failed to stop FOGSnapinReplicator.service: Unit FOGSnapinReplicator.service not loaded.
          Failed to stop FOGScheduler.service: Unit FOGScheduler.service not loaded.
          Failed to stop FOGPingHosts.service: Unit FOGPingHosts.service not loaded.
          Synchronizing state of mysql.service with SysV init with /lib/systemd/systemd-sysv-install…
          Executing /lib/systemd/systemd-sysv-install enable mysql
          ● mysql.service - MySQL Community Server
          Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
          Active: active (running) since Thu 2016-06-30 09:28:00 CDT; 2s ago
          Process: 4272 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)
          Process: 4267 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
          Main PID: 4271 (mysqld)
          CGroup: /system.slice/mysql.service
          └─4271 /usr/sbin/mysqld

          Jun 30 09:27:59 FOG-SERVER systemd[1]: 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.

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @kirkk
            last edited by

            @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

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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

            K 1 Reply Last reply Reply Quote 0
            • K
              kirkk @Tom Elliott
              last edited by

              @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.

              Tom ElliottT K 2 Replies Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @kirkk
                last edited by

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

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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

                K 1 Reply Last reply Reply Quote 0
                • K
                  kirkk @kirkk
                  last edited by kirkk

                  0_1467299238604_Capture.PNG

                  1 Reply Last reply Reply Quote 0
                  • K
                    kirkk @Tom Elliott
                    last edited by

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

                    Q 1 Reply Last reply Reply Quote 0
                    • Q
                      Quazz Moderator @kirkk
                      last edited by

                      @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

                      1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott
                        last edited by

                        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
                        

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        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

                        K 1 Reply Last reply Reply Quote 1
                        • K
                          kirkk @Tom Elliott
                          last edited by

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

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            What’s output of:

                            sudo lsb_release -a

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                            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

                            K 1 Reply Last reply Reply Quote 1
                            • Tom ElliottT
                              Tom Elliott
                              last edited by

                              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
                              

                              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                              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

                              K 1 Reply Last reply Reply Quote 1
                              • K
                                kirkk @Tom Elliott
                                last edited by

                                @Tom-Elliott 0_1467300678277_Capture.PNG

                                1 Reply Last reply Reply Quote 0
                                • K
                                  kirkk @Tom Elliott
                                  last edited by

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

                                  Tom ElliottT 1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott @kirkk
                                    last edited by

                                    @kirkk can you upload the whole log file please?

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                                    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

                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      kirkk @Tom Elliott
                                      last edited by

                                      @Tom-Elliott 0_1467302177879_fog_error_8325.log

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        kirkk
                                        last edited by

                                        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.

                                        1 Reply Last reply Reply Quote 0
                                        • 1 / 1
                                        • First post
                                          Last post

                                        169

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project