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

    problem updating to trunk. Stopping web service......failed!

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    6
    27
    14.6k
    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.
    • Tom ElliottT
      Tom Elliott @templink
      last edited by

      @templink

      The error doesn’t mean much, but you can ensure things are a-ok with running:

      sudo apt-get autoremove --purge

      Then run:

      sudo rm -rf /etc/php5

      Then rerun the installer.

      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

      T 1 Reply Last reply Reply Quote 1
      • T
        templink
        last edited by Wayne Workman

        I appreciate the quick response. I really want to get this back running today.
        the autoremove command somewhat failed (see output below).
        I was able to remvove the /etc/php5 folder.
        When i tried to reinstall FOG, it failed at installing php5 again.

        ubuntu@CSN-06:~/downloads/fog/trunk/bin$ sudo apt-get autoremove --purge
        Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        You might want to run 'apt-get -f install' to correct these.
        The following packages have unmet dependencies:
         libapache2-mod-php5 : Depends: php5-common (= 5.6.16+dfsg-4+deb.sury.org~trusty+1) but it is not installed
                               Depends: php5-cli but it is not installed
                               Depends: php5-json but it is not installed
        E: Unmet dependencies. Try using -f.
        

        Mod edited to use code box.

        1 Reply Last reply Reply Quote 0
        • T
          templink @Tom Elliott
          last edited by Wayne Workman

          @Tom-Elliott
          so as it told me, I did ‘apt-get -f install’ and it updated some stuff
          then i reran the FOG installer. Now it fails at libapache-mod-php5:

           Here are the settings FOG will use:
                                         Base Linux: Debian
                                Detected Linux Distribution: Ubuntu
                                   Server IP Address: 192.168.1.1
                                          Interface: eth1
                                  Installation Type: Normal Server
                                             Donate: 0
                                      Internationalization: 0
                                  Image Storage Location: /images
                                        Using FOG DHCP: Yes
                                       DHCP router Address: 
                                         DHCP DNS Address: 
          
          
           * Are you sure you wish to continue (Y/N) y
          
                                        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 isc-dhcp-server 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)
           * Installing package: php5....................................OK
           * Skipping package: php5-json.................................(Already Installed)
           * Installing package: php5-gd.................................OK
           * Skipping package: php5-cli..................................(Already Installed)
           * Installing package: php5-curl...............................OK
           * Skipping package: mysql-server..............................(Already Installed)
           * Skipping package: mysql-client..............................(Already Installed)
           * Skipping package: isc-dhcp-server...........................(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)
           * Installing package: php-gettext.............................OK
           * Installing package: php5-mcrypt.............................OK
           * Installing package: php5-mysqlnd............................OK
           * Skipping package: curl......................................(Already Installed)
           * Skipping package: libc6.....................................(Already Installed)
           * Skipping package: libcurl3..................................(Already Installed)
           * Skipping package: zlib1g....................................(Already Installed)
           * Installing package: php5-fpm................................OK
           * Installing package: libapache2-mod-php5.....................OK
           * Updating packages as needed.................................OK
          
                                  Confirming package installation.
          
           * Checking package: apache2...................................OK
           * Checking package: php5......................................OK
           * Checking package: php5-json.................................OK
           * Checking package: php5-gd...................................OK
           * Checking package: php5-cli..................................OK
           * Checking package: php5-curl.................................OK
           * Checking package: mysql-server..............................OK
           * Checking package: mysql-client..............................OK
           * Checking package: isc-dhcp-server...........................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: php5-mcrypt...............................OK
           * Checking package: php5-mysqlnd..............................OK
           * Checking package: curl......................................OK
           * Checking package: libc6.....................................OK
           * Checking package: libcurl3..................................OK
           * Checking package: zlib1g....................................OK
           * Checking package: php5-fpm..................................OK
           * Checking package: libapache2-mod-php5.......................Failed!
          ubuntu@CSN-06:~/downloads/fog/trunk/bin$
          

          Mod edited to use code box.

          1 Reply Last reply Reply Quote 0
          • JJ FullmerJ
            JJ Fullmer Testers
            last edited by

            Maybe try the commands Tom suggested again? I did them out of order on accident since I was having the same problem and it worked for me.

            sudo apt-get autoremove --purge
            sudo rm -rf /etc/php5
            sudo rm -rf /etc/apt-get/sources.d/*ondrej*
            sudo apt-get purge php5*
            sudo apt-get autoremove --purge
            

            Then I reran the installer and all was well with the world. Maybe trying it again is worth a shot

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            T Tom ElliottT 2 Replies Last reply Reply Quote 1
            • T
              templink @JJ Fullmer
              last edited by

              @Arrowhead-IT

              thanks I just tried several rounds of apt-get with autoremove, autoclean, purge, etc. Apt-get seems to be OK now.
              I don’t know what is up… Fog install keeps failing at libapache2-mod-php5.

              Tom ElliottT Wayne WorkmanW 2 Replies Last reply Reply Quote 0
              • Tom ElliottT
                Tom Elliott @templink
                last edited by

                @templink Can you check your chat, are you able to tv?

                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

                1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @templink
                  last edited by Wayne Workman

                  @templink When you’re posting large chunks of code to the forums, please use the code box feature. It looks like in the pic below, it’s located just above the editing window. Highlight your code and then click the code box feature and it will wrap your code for you.
                  0_1452121584358_upload-6d55b62f-69dd-42b8-88d5-829ed2f2240b

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  T 1 Reply Last reply Reply Quote 2
                  • T
                    templink @Wayne Workman
                    last edited by

                    @Wayne-Workman
                    awesome thanks

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

                      I’m assuming it’s safe to solve this now?

                      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

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        templink @Tom Elliott
                        last edited by

                        @Tom-Elliott

                        yes solved

                        ManofValorM 1 Reply Last reply Reply Quote 0
                        • ManofValorM
                          ManofValor @templink
                          last edited by

                          @templink Sure would be nice to know what the solution was?

                          1 Reply Last reply Reply Quote 1
                          • Tom ElliottT
                            Tom Elliott @JJ Fullmer
                            last edited by

                            @Arrowhead-IT said:

                            Maybe try the commands Tom suggested again? I did them out of order on accident since I was having the same problem and it worked for me.

                            sudo apt-get autoremove --purge
                            sudo rm -rf /etc/php5
                            sudo rm -rf /etc/apt-get/sources.d/*ondrej*
                            sudo apt-get purge php5*
                            sudo apt-get autoremove --purge
                            

                            Then I reran the installer and all was well with the world. Maybe trying it again is worth a shot

                            @ManofValor,

                            More or less, the steps above are what the fix was. There was some minor variance but this was what got it to operate.

                            If I recall, your particular issue was the server was unable to add another repository.

                            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

                            JJ FullmerJ ManofValorM 2 Replies Last reply Reply Quote 1
                            • JJ FullmerJ
                              JJ Fullmer Testers @Tom Elliott
                              last edited by

                              @Tom-Elliott @ManofValor
                              I’ve had this problem on a few of the trunks in the last week. So I’ve just put those commands into a bandaid fix type script and it works everytime it happens, like this morning for example. Said script is just the same commands with some echo’s and -y for automation, looks like this…

                              #!/bin/bash
                              echo "running autoremove to clean up apt..."
                              sudo apt-get autoremove --purge -y
                              echo "removing php files..."
                              sudo rm -rf /etc/php5
                              echo "removing ondrej sources from apt..."
                              sudo rm -rf /etc/apt-get/sources.d/*ondrej*
                              echo "uninstalling php5..."
                              sudo apt-get purge php5* -y
                              echo "cleaning up apt..."
                              sudo apt-get autoremove --purge -y
                              exit
                              

                              Do we have any idea what is causing this or should I just add those commands to my update script reinstall php over and over and just not worry about it? Granted it doesn’t happen with every trunk, maybe 3 of them in the last week.

                              I wonder if it’s specific to a linux distro? I am running Ubuntu Server 14.04
                              @templink What version of Ubuntu are you running?
                              @ManofValor Assuming you’re having this problem too, what linux distro are you running?

                              Have you tried the FogApi powershell module? It's pretty cool IMHO
                              https://github.com/darksidemilk/FogApi
                              https://fogapi.readthedocs.io/en/latest/
                              https://www.powershellgallery.com/packages/FogApi
                              https://forums.fogproject.org/topic/12026/powershell-api-module

                              Wayne WorkmanW T 2 Replies Last reply Reply Quote 2
                              • Wayne WorkmanW
                                Wayne Workman @JJ Fullmer
                                last edited by

                                @Arrowhead-IT Why not just add them to the installer for Ubuntu ?

                                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!
                                Daily Clean Installation Results:
                                https://fogtesting.fogproject.us/
                                FOG Reporting:
                                https://fog-external-reporting-results.fogproject.us/

                                JJ FullmerJ 1 Reply Last reply Reply Quote 1
                                • JJ FullmerJ
                                  JJ Fullmer Testers @Wayne Workman
                                  last edited by

                                  @Wayne-Workman That would work, but I feel like it’s kind of a bandaid to the issue rather than a real fix. We didn’t have to reinstall php for every fog update before, why do we suddenly need to do it now? Granted I do like the idea of contributing something to the official fog code, even if it does get taken out later… 😃

                                  Have you tried the FogApi powershell module? It's pretty cool IMHO
                                  https://github.com/darksidemilk/FogApi
                                  https://fogapi.readthedocs.io/en/latest/
                                  https://www.powershellgallery.com/packages/FogApi
                                  https://forums.fogproject.org/topic/12026/powershell-api-module

                                  Wayne WorkmanW 1 Reply Last reply Reply Quote 1
                                  • Wayne WorkmanW
                                    Wayne Workman @JJ Fullmer
                                    last edited by

                                    @Arrowhead-IT said:

                                    even if it does get taken out later

                                    It’s fine if it gets taken out later. But having something that works is better than nothing at all. The @Developers can fix it the proper way when they have time.

                                    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!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    1 Reply Last reply Reply Quote 0
                                    • ManofValorM
                                      ManofValor @Tom Elliott
                                      last edited by

                                      @Tom-Elliott Yeah i got through that. it was a firewall issue. i did the steps above but now getting:

                                      • Installing package: php5…Failed!

                                      so I ran:

                                      sudo -E add-apt-repository ppa:ondrej/php5-5.6

                                      and got:

                                      This branch follows latest PHP 5.6 packages as maintained by me & rest of the Debian pkg-php team.

                                      You can get more information about the packages at https://sury.org

                                      For PHP 5.5 use: ppa:ondrej/php5
                                      For PHP 5.4 use: ppa:ondrej/php5-oldstable

                                      BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/pages/bugreporting.html

                                      PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/pages/donate.html

                                      WARNING: add-apt-repository is broken with non-UTF-8 locales, see https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

                                      apt-get install -y language-pack-en-base

                                      LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php5-5.6

                                      More info: https://launchpad.net/~ondrej/+archive/ubuntu/php5-5.6
                                      Press [ENTER] to continue or ctrl-c to cancel adding it

                                      gpg: keyring /tmp/tmpshpbmela/secring.gpg' created gpg: keyring /tmp/tmpshpbmela/pubring.gpg’ created
                                      gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
                                      gpg: /tmp/tmpshpbmela/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)

                                      I also ran the updater

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        templink @JJ Fullmer
                                        last edited by

                                        @Arrowhead-IT

                                        “What version of Ubuntu are you running?”

                                        Ubuntu 14.04 LTS

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

                                        153

                                        Online

                                        12.0k

                                        Users

                                        17.3k

                                        Topics

                                        155.2k

                                        Posts
                                        Copyright © 2012-2024 FOG Project