• 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 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
                              • 2 / 2
                              • First post
                                Last post

                              178

                              Online

                              12.1k

                              Users

                              17.3k

                              Topics

                              155.3k

                              Posts
                              Copyright © 2012-2024 FOG Project