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

    Issue with Listing Hosts

    Scheduled Pinned Locked Moved
    FOG Problems
    3
    11
    3.4k
    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.
    • Chris WhiteleyC
      Chris Whiteley
      last edited by

      I am getting a HTTP 500 Internal Server Error when trying to list all hosts from either the task managment side or the Host Managment side. I just upgraded from .32 to version 1.2.0 and that seems to be the only issue that we encountered. Thanks,

      1 Reply Last reply Reply Quote 0
      • Chris WhiteleyC
        Chris Whiteley
        last edited by

        Is there any way to check logs or anything to see what is happening?

        1 Reply Last reply Reply Quote 0
        • A
          axel12
          last edited by

          [CODE]tail /var/log/apache2/error.log
          tail /var/log/apache2/access.log
          [/CODE]

          1 Reply Last reply Reply Quote 0
          • Chris WhiteleyC
            Chris Whiteley
            last edited by

            [CODE][/CODE]Here is the error.log:

            [CODE]
            root@fog:~# tail /var/log/apache2/error.log
            [Fri Oct 03 07:23:58.465863 2014] [:error] [pid 30012] [client 10.110.3.249:49206] PHP Warning: require(…/commons/base.inc.php): failed to open stream: No such file or directory in /var/www/fog/service/servicemodule-active.php on line 2
            [Fri Oct 03 07:23:58.465893 2014] [:error] [pid 30012] [client 10.110.3.249:49206] PHP Fatal error: require(): Failed opening required ‘…/commons/base.inc.php’ (include_path=‘.:/usr/share/php:/usr/share/pear’) in /var/www/fog/service/servicemodule-active.php on line 2
            cat: write error: Broken pipe
            cat: write error: Broken pipe
            cat: write error: Broken pipe
            cat: write error: Broken pipe
            [Fri Oct 03 07:24:26.713134 2014] [:error] [pid 30133] [client X.X.X.X:60549] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10041493 bytes) in /var/www/fog/management/index.php on line 137, referer: [URL]http://fog/fog/management/index.php?node=host[/URL]
            [Fri Oct 03 07:24:26.734912 2014] [:error] [pid 30133] [client X.X.X.X:60549] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0, referer: [URL]http://fog/fog/management/index.php?node=host[/URL]
            [Fri Oct 03 07:24:44.772104 2014] [core:notice] [pid 30705] AH00051: child pid 29822 exit signal Segmentation fault (11), possible coredump in /etc/apache2
            [Fri Oct 03 07:25:11.841940 2014] [core:notice] [pid 30705] AH00051: child pid 30027 exit signal Segmentation fault (11), possible coredump in /etc/apache2
            [/CODE]
            Here is the access.log:

            [CODE]
            Last login: Fri Oct 3 07:22:16 2014 from 10.108.2.19
            root@fog:~# tail /var/log/apache2/access.log
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/management/index.php?node=tasks&=1412311394120 HTTP/1.1" 200 654 “[URL=‘http://fog/fog/management/index.php?node=tasks’]http://fog/fog/management/index.php?node=tasks[/URL]” “Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=A4:1F:72:71:3D:B4&moduleid=snapin HTTP/1.1” 200 311 “-” “-”
            x.x.x.x- - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=00:25:64:C6:7F:D9&moduleid=snapin HTTP/1.1” 200 255 “-” “-”
            x.x.x.x- - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=A4:1F:72:71:40:C6&moduleid=snapin HTTP/1.1” 200 255 “-” “-”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=00:23:AE:98:56:07&moduleid=taskreboot HTTP/1.1” 200 311 “-” “-”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=A4:1F:72:71:3B:0A&moduleid=snapin HTTP/1.1” 200 311 “-” “-”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/snapins.checkin.php?mac=A4:1F:72:71:3B:0A HTTP/1.1” 200 254 “-” “-”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=B8:AC:6F:3A:DA:30&moduleid=snapin HTTP/1.1” 200 255 “-” “-”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] “GET /fog/service/servicemodule-active.php?mac=F8:B1:56:AF:1E:BA&moduleid=snapin HTTP/1.1” 200 311 “-” “-”
            x.x.x.x - - [03/Oct/2014:07:28:42 -0700] "GET /fog/status/bandwidth.php?sub=bandwidth&
            =1412292388028 HTTP/1.1” 200 276 “[URL=‘http://fog/fog/management/index.php?node=home’]http://fog/fog/management/index.php?node=home[/URL]” “Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)”
            [/CODE]

            1 Reply Last reply Reply Quote 0
            • Chris WhiteleyC
              Chris Whiteley
              last edited by

              I am just curious…do those pages timeout after a certain amount of time? The database we have is huge and we have over 7,000 computers in it. Didn’t know if that would make any difference.

              Update Reinstalled Ubuntu 14.04.1 and FOG .32, then upgraded to FOG 1.2.0, now I can see the hosts if I go to task managment, but still can’t go to host management, then click list all hosts.

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

                You probably need to up your max memory size of your php.ini file and restart apache. I imagine, with 7000 hosts, you’ll likely need a max memory size of at least 256 of which is probably currently set to 128.

                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
                • Chris WhiteleyC
                  Chris Whiteley
                  last edited by

                  can you give me the exact location of this? I thought it was under /etc/php5/apache2/php.ini but I can’t find max_memory_size in there.

                  1 Reply Last reply Reply Quote 0
                  • Chris WhiteleyC
                    Chris Whiteley
                    last edited by

                    [quote=“Chris Whiteley, post: 37389, member: 1569”]can you give me the exact location of this? I thought it was under /etc/php5/apache2/php.ini but I can’t find max_memory_size in there.[/quote]

                    Nevermind I found it

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

                      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
                      • Chris WhiteleyC
                        Chris Whiteley
                        last edited by

                        That fixed my issue!! Thank you so much for the help! I changed memory_limit in the /etc/php5/apache2/php.ini from 128M to 256M.

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

                          Glad I could help.

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

                          148

                          Online

                          12.1k

                          Users

                          17.3k

                          Topics

                          155.3k

                          Posts
                          Copyright © 2012-2024 FOG Project