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

    Issues after migrating to new hardware

    Scheduled Pinned Locked Moved
    FOG Problems
    4
    19
    4.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.
    • Tom ElliottT
      Tom Elliott
      last edited by

      Anything in your apache error logs?

      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
      • Tom ElliottT
        Tom Elliott
        last edited by

        Based on this line:

        [code][Sat Mar 07 12:06:11 2015] [error] [client 10.200.50.189] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/fog/lib/db/MySQL.class.php on line 156, referer: http://fog/fog/management/index.php?node=image[/code]

        My guess this is still the case.

        Can you change your memory limit to 256 and see if that helps you out? FOG Configuration Page->FOG Settings->General Settings->FOG_MEMORY_LIMIT

        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
        • Joseph HalesJ
          Joseph Hales Testers
          last edited by

          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.103.50.73] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.103.50.73] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.103.50.73] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.103.50.73] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.6.50.45] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.6.50.45] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.49.194] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.49.194] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.49.194] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.49.194] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.41.50.207] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.41.50.207] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.41.50.207] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.41.50.207] PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 120
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:20 2015] [error] [client 10.1.51.142] PHP Warning: mysqli::real_escape_string(): Couldn’t fetch mysqli in /var/www/fog/lib/db/MySQL.class.php on line 266
          [Sat Mar 07 15:27:22 2015] [notice] caught SIGTERM, shutting down
          [Sat Mar 07 15:27:23 2015] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.16 with Suhosin-Patch configured – resuming normal operations
          [Sat Mar 07 15:27:23 2015] [error] [client 10.1.48.19] PHP Fatal error: Class ‘EventManager’ not found in /var/www/fog/commons/init.php on line 268
          [Sat Mar 07 15:27:23 2015] [error] [client 10.1.48.200] PHP Fatal error: Uncaught exception ‘ReflectionException’ with message ‘Class HostManager does not exist’ in /var/www/fog/lib/fog/FOGBase.class.php:130\nStack trace:\n#0 /var/www/fog/lib/fog/FOGBase.class.php(130): ReflectionClass->__construct(‘HostManager’)\n#1 /var/www/fog/lib/fog/FOGCore.class.php(542): FOGBase->getClass(‘HostManager’)\n#2 /var/www/fog/commons/init.php(266): FOGCore->setSessionEnv()\n#3 /var/www/fog/commons/base.inc.php(7): require_once(‘/var/www/fog/co…’)\n#4 /var/www/fog/service/servicemodule-active.php(2): require_once(‘/var/www/fog/co…’)\n#5 {main}\n thrown in /var/www/fog/lib/fog/FOGBase.class.php on line 130
          [Sat Mar 07 15:27:23 2015] [error] [client 10.42.50.179] PHP Fatal error: Uncaught exception ‘ReflectionException’ with message ‘Class PluginManager does not exist’ in /var/www/fog/lib/fog/FOGBase.class.php:130\nStack trace:\n#0 /var/www/fog/lib/fog/FOGBase.class.php(130): ReflectionClass->__construct(‘PluginManager’)\n#1 /var/www/fog/lib/fog/FOGBase.class.php(553): FOGBase->getClass(‘PluginManager’)\n#2 /var/www/fog/lib/fog/FOGCore.class.php(539): FOGBase->getActivePlugins()\n#3 /var/www/fog/commons/init.php(266): FOGCore->setSessionEnv()\n#4 /var/www/fog/commons/base.inc.php(7): require_once(‘/var/www/fog/co…’)\n#5 /var/www/fog/service/servicemodule-active.php(2): require_once(‘/var/www/fog/co…’)\n#6 {main}\n thrown in /var/www/fog/lib/fog/FOGBase.class.php on line 130
          [Sat Mar 07 15:27:23 2015] [error] [client 10.117.50.165] File does not exist: /var/www/fog/service
          [Sat Mar 07 15:27:23 2015] [error] [client 10.111.50.39] File does not exist: /var/www/fog/service
          mkdir: cannot create directory `/var/www/fog//management/other/ssl/': No such file or directory
          [Sat Mar 07 15:27:23 2015] [error] [client 10.117.50.185] PHP Warning: file_put_contents(/var/www/fog//management/other/ssl/srvpublic.key): failed to open stream: No such file or directory in /var/www/fog/lib/fog/FOGCore.class.php on line 530
          [Sat Mar 07 15:27:23 2015] [error] [client 10.117.50.185] PHP Fatal error: Class ‘MACAddress’ not found in /var/www/fog/lib/fog/FOGBase.class.php on line 543
          [Sat Mar 07 15:27:23 2015] [error] [client 10.1.48.144] File does not exist: /var/www/fog/service
          [Sat Mar 07 15:27:23 2015] [error] [client 10.3.50.134] File does not exist: /var/www/fog/service
          [Sat Mar 07 15:27:34 2015] [error] server reached MaxClients setting, consider raising the MaxClients setting
          [Sat Mar 07 15:29:40 2015] [error] [client 10.200.50.189] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7 bytes) in /var/www/fog/lib/fog/FOGController.class.php on line 90, referer: [url]http://10.200.10.150/fog/management/index.php?node=snapin&sub=list[/url]
          [Sat Mar 07 15:29:41 2015] [error] [client 10.200.50.189] File does not exist: /var/www/favicon.ico
          [Sat Mar 07 15:31:05 2015] [error] [client 10.200.50.189] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 8 bytes) in /var/www/fog/lib/fog/FOGController.class.php on line 348, referer: [url]http://10.200.10.150/fog/management/index.php?node=image[/url]
          [Sat Mar 07 15:41:13 2015] [error] [client 10.200.50.189] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100 bytes) in /var/www/fog/lib/fog/FOGBase.class.php on line 131, referer: [url]http://10.200.10.150/fog/management/index.php?node=image&sub=list[/url]
          [Sat Mar 07 15:41:22 2015] [error] [client 10.200.50.189] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 82 bytes) in /var/www/fog/lib/fog/FOGController.class.php on line 347, referer: [url]http://10.200.10.150/fog/management/index.php?node=snapin&sub=list[/url]

          RTFM

          1 Reply Last reply Reply Quote 0
          • Joseph HalesJ
            Joseph Hales Testers
            last edited by

            Ok increased to 256 restarted fog cleared error log same behavior error message is this in apache2/error.log

            [Sat Mar 07 15:51:10 2015] [error] [client 10.200.50.189] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /var/www/fog/lib/fog/FOGBase.class.php on line 57, referer: [url]http://10.200.10.150/fog/management/index.php?node=snapin&sub=list[/url]

            RTFM

            1 Reply Last reply Reply Quote 0
            • Joseph HalesJ
              Joseph Hales Testers
              last edited by

              Ok bumped FOG_MEMORY_LIMIT to 1024 and that fixed it I may mess with this later and see if 512 or 728 will work.

              RTFM

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

                I would LOVE some assistance to figure out this memory issue. I know db size plays some role but it seems a bit ridiculous that we should have to have that much memory to simply read db entries.

                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
                • Joseph HalesJ
                  Joseph Hales Testers
                  last edited by

                  384, 512, 640, and 768 all fail but 896 seems to work.

                  RTFM

                  1 Reply Last reply Reply Quote 0
                  • Joseph HalesJ
                    Joseph Hales Testers
                    last edited by

                    Going to call this a win and leave it alone for now if you guys have any suggestions that won’t bring this down I can try them.

                    RTFM

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

                      [quote=“Tom Elliott, post: 43448, member: 7271”]I would LOVE some assistance to figure out this memory issue. I know db size plays some role but it seems a bit ridiculous that we should have to have that much memory to simply read db entries.[/quote]
                      Is this an issue on the whole web interface or just with snapins or hosts…?

                      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
                      • Tom ElliottT
                        Tom Elliott
                        last edited by

                        Mostly its an issue if theres a lot of data for the section You’re looking at.

                        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
                        • Joseph HalesJ
                          Joseph Hales Testers
                          last edited by

                          Strangely enough I just saw it in snapins and images when i edit individual ones.

                          RTFM

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

                            I’ve looked through the PHP code a couple of times but it’s very hard for me to get kickstarted with this much of code that I have not worked with very much yet. I probably won’t be of much help… 😞

                            But maybe I can point you to some general things I read about this sort of issues. There are a couple of good comments and tipps on debugging memory leaks within PHP code here: [url]http://stackoverflow.com/questions/849549/diagnosing-memory-leaks-allowed-memory-size-of-bytes-exhausted[/url]

                            Have you worked with ‘memory_get_usage’ pointed out here?? [url]http://paul-m-jones.com/archives/262[/url]

                            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
                              last edited by

                              For future readers: https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

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

                              179

                              Online

                              12.1k

                              Users

                              17.3k

                              Topics

                              155.3k

                              Posts
                              Copyright © 2012-2024 FOG Project