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

    Slow Fog 1.5.X WebUI due to Storage Node

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    16
    1.7k
    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.
    • E
      ElNatcho
      last edited by ElNatcho

      @george1421
      I’ve added your lines to the php-fpm but after that the php7.0-fpm.service wont start at all (code=exited status=78).

      george1421G 1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator @ElNatcho
        last edited by

        @elnatcho Make sure you don’t have 2 entries of the same (like you just copied and pastes my text in). The only new value should have been php_admin_value[memory_limit] = 256M The rest of the values should have been just check on the current setting.

        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!

        E 1 Reply Last reply Reply Quote 0
        • E
          ElNatcho @george1421
          last edited by

          @george1421
          I doubled the “pm.” entrys by mistake and after deleting the surplus entries the service started without errors. But now even accessing the login page is very slow. My current settings are:

          php_admin_value[memory_limit] = 256M
          pm.max_requests = 0
          pm.max_children = 5
          pm.min_spare_servers = 1
          pm.start_servers = 2
          

          I also tried altering all setting to your values and then I could access the login page normally again. But the login still wont work

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @ElNatcho
            last edited by

            @elnatcho OK great, now we are down to the differences with debian 9.4. I found the solution once before but I can’t remember exactly what I found.

            I think it was that Debian 9.4 had the handler for php listed in a different location than other distributions. Lets see if we can find it.

            1. From the fog server linux conssole navigate to /etc/apache2
              cd /etc/apache2
            2. Lets look for the php handler
              grep -R -e "SetHandler application/x-httpd-php"
            3. If that returns a value then edit that file and place a comment marker (pound or hashtag) in front of that line to make it look like this
              #SetHandler application/x-httpd-php
            4. Save and exit the editor
            5. Restart apache
              systemctl restart apache

            When you run top you should see php-fpm at the top 2 or 3 processes. If this is the case the system is configured correctly.

            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!

            E 1 Reply Last reply Reply Quote 0
            • E
              ElNatcho @george1421
              last edited by

              @george1421
              The grep command gave the following output:

              mods-available/php7.0.conf:    SetHandler application/x-httpd-php
              mods-available/php7.0.conf:    SetHandler application/x-httpd-php-source
              mods-enabled/php7.0.conf:    SetHandler application/x-httpd-php
              mods-enabled/php7.0.conf:    SetHandler application/x-httpd-php-source
              

              I’ve commented all of them out and now only the “php -q …” processes are on top of top (and logically the login page won’t display properly any more)

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @ElNatcho
                last edited by george1421

                @elnatcho said in Slow Fog 1.5.X WebUI due to Storage Node:

                mods-enabled/php7.0.conf: SetHandler application/x-httpd-php

                This is the only one I would have commented out. That is / was the enabled handler.

                Please review the FOG Forum chat bubble for additional information.

                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 0
                • E
                  ElNatcho
                  last edited by

                  @george1421
                  I tried both (commenting only “SetHandler appplication/x-httpd-php” out and commenting both out)

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @ElNatcho
                    last edited by

                    @elnatcho OK I think I remember what I did on the commute into the office.

                    First lets start by having you revert all of the changes you’ve made so far to the php7.0.conf files.

                    Now lets go back into the mods-enabled/php7.0.conf file and edit it.

                    Locate the line that has SetHandler application/x-httpd-php in it and place a hashtag in front to make it look like this:

                    #SetHandler application/x-httpd-php
                    SetHandler "proxy:fcgi://127.0.0.1:9000"
                    

                    Now paste in the other handler for php-fpm just below it. To make it look like above.
                    Then restart apache2 with: sudo systemctl restart apache2

                    That should fix the issue.

                    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!

                    E 1 Reply Last reply Reply Quote 0
                    • E
                      ElNatcho @george1421
                      last edited by

                      @george1421
                      Fog failed to connect to the backend (FCGI: attempt to connect to 127.0.0.1:9000 (*) failed)

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

                        @ElNatcho We are working on this issue. Just in case you are still around. I pushed some major changes to the dev-branch a few hours ago. Should fix the flow web UI issues altogether. Please give it a try if you can and let us know.

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

                        257

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project