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

    Upgrade to 1.5.9-RC2 gone wrong

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    12
    1.0k
    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.
    • F
      fogusnew
      last edited by fogusnew

      Well, sorry, that I bring up this issue after such a long time. But I’ve been off site for a while. Now I was able to look at the logs.
      I get a white screen and a PHP error

      [proxy_fcgi:error] [pid 9320] [client 172.28.171.4:53982] AH01071: Got error 'PHP message: PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260\n', referer: http:// .... fog/management/index.php?node=home
      

      when I try to access the “hosts list” page.

      a similar one when I try to get to the fog settings:

      [proxy_fcgi:error] [pid 9320] [client 172.28.171.4:55178] AH01071: Got error 'PHP message: PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes) in /var/www/html/fog/lib/fog/fogbase.class.php on line 467\n', referer: .... /fog/management/index.php?node=about
      

      No errors in the php7.0-fpm log
      I searched the forum for similar topics, could find some, but can not make a solution out of them.

      george1421G S 2 Replies Last reply Reply Quote 0
      • F
        fogusnew
        last edited by fogusnew

        Increasing the memory limit in /etc/php/7.0/fpm/php.ini and /etc/php/7.0/apache2/php.ini and /etc/php/7.0/fpm/pool.d/www.conf does not help.

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

          @fogusnew Did you restart Apache and PHP-FPM after changing the settings?

          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
          • george1421G
            george1421 Moderator @fogusnew
            last edited by

            @fogusnew What parameter did you change to increase memory size?

            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
            • F
              fogusnew
              last edited by

              @Sebastian-Roth I restarted the services and the system. I can see the the increasing memory in the log; but still “more” is requested.
              @george1421 I was looking for memory_limit values in the files I mentioned above. I doubled them several times from 128M to 256M, and then step by step to 2048M. In all those files.

              Still no change.

              Thnaks a lot for your efforts

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

                @fogusnew said in Upgrade to 1.5.9-RC2 gone wrong:

                I was looking for memory_limit values in the files I mentioned above.

                If php-fpm is managing the php on your FOG server this should be the proper config file /etc/php/7.0/fpm/pool.d/www.conf

                This is the proper value to change php_admin_value[memory_limit] Then restart pphp-fpm.

                As you increase this above value the error message

                 Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes)
                

                should also increase. This error is telling me you have 256M configured for the memory limit. So the real question is why are we hitting a memory limit??

                How many computers (with fog client installed) are hitting this FOG server? If you have a master node and multiple storage nodes, I need to know all computers from all sites that have the fog client installed.

                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!

                F 1 Reply Last reply Reply Quote 0
                • F
                  fogusnew @george1421
                  last edited by

                  @george1421 said in Upgrade to 1.5.9-RC2 gone wrong:

                  @fogusnew said in Upgrade to 1.5.9-RC2 gone wrong:

                  I was looking for memory_limit values in the files I mentioned above.

                  If php-fpm is managing the php on your FOG server this should be the proper config file /etc/php/7.0/fpm/pool.d/www.conf

                  This is the proper value to change php_admin_value[memory_limit] Then restart pphp-fpm.

                  I did that.

                  How many computers (with fog client installed) are hitting this FOG server? If you have a master node and multiple storage nodes, I need to know all computers from all sites that have the fog client installed.

                  I run only one bar metal server with fog on it. We have ~60 PCs to manage. I did not hit the memory limit before I did the upgrade.
                  I’m off site again, but will be back next week. I’ll check everything once more and report back. Thanks, again!

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

                    @fogusnew Yeah 60 clients should push this over the top. If you had 6000 then I can understand.

                    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
                    • S
                      Sebastian Roth Moderator @fogusnew
                      last edited by

                      @fogusnew said in Upgrade to 1.5.9-RC2 gone wrong:

                      [proxy_fcgi:error] [pid 9320] [client 172.28.171.4:53982] AH01071: Got error 'PHP message: PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 16384 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 260\n', referer: http:// .... fog/management/index.php?node=home
                      

                      …

                      [proxy_fcgi:error] [pid 9320] [client 172.28.171.4:55178] AH01071: Got error 'PHP message: PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted (tried to allocate 65536 bytes) in /var/www/html/fog/lib/fog/fogbase.class.php on line 467\n', referer: .... /fog/management/index.php?node=about
                      

                      Took a look at the code lines mentioned in the errors. Can’t make sense of these yet.

                      By the way, PHP 7.0 … what Linux OS and version do you run?

                      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
                      • F
                        fogusnew
                        last edited by

                        Solved. See here.
                        Basically I changed the php version to 7.3 (which took a lot of effort…)

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

                        176

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project