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

Imaging Log Report issue

Scheduled Pinned Locked Moved Solved
Bug Reports
3
9
2.2k
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
    Fernando Gietz Developer
    last edited by May 23, 2017, 5:32 PM

    Server
    • FOG Version: 1.4.0 (SVN version 6070)
    • OS: RedHat 7.3
    Client
    • Service Version: 0.11.12
    • OS: Windows
    Browser
    • Version: Firefox 53.0.2
    Description

    When I try to see Imaging Log Report the page is blank and in the apache error_log file appears:

    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 834, referer: http://fog.ehu.eus/fog/management/index.php?node=report

    With the the others reports works fine except with snaping log that the error is different:

    PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1073, referer: http://fog.ehu.eus/fog/management/index.php?node=report

    The server has 4 cores and 4 GB RAM.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by May 23, 2017, 6:28 PM

      You need to adjust the memory available to use.

      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
      • F
        Fernando Gietz Developer
        last edited by May 24, 2017, 10:07 AM

        I have increased the memory and the imaging log report works fine 🙂

        But the snaping log follows with the same error:

        PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1023, referer: http://fog.ehu.eus/fog/management/index.php?node=report&sub=file&f=aW1hZ2luZyBsb2c=

        Q 1 Reply Last reply May 24, 2017, 10:56 AM Reply Quote 0
        • Q
          Quazz Moderator @Fernando Gietz
          last edited by Quazz May 24, 2017, 4:58 AM May 24, 2017, 10:56 AM

          @Fernando-Gietz You need to increase the max ecution time in php.ini

          Although, it is odd to me that it would take over 30 seconds for the snapin report. Have you done loads and loads of them?

          Additionally, a proposal would be to implement a higher execution time and memory limit in the respective log generating php files so this issue crops up less often.

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by May 25, 2017, 3:19 AM

            In working I’ve set the execution time limit to unlimited. This means it will take a while to display all of the records, of course, but it shouldn’t through an error anymore (hopefully).

            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 1
            • F
              Fernando Gietz Developer
              last edited by Fernando Gietz May 25, 2017, 4:39 AM May 25, 2017, 10:38 AM

              As a suggetion, perhaps if you could config an interval time … I don’t need all log, only the last ones 🙂 In this way we can optimize the resources.

              T 1 Reply Last reply May 25, 2017, 11:06 AM Reply Quote 0
              • T
                Tom Elliott @Fernando Gietz
                last edited by May 25, 2017, 11:06 AM

                @Fernando-Gietz Reporting means it could take a long time, which is the only reason I applied it to the report management page. All reports tie in to it. Just because we give it unlimited time, doesn’t mean it will use all that time to load “all reports”. It just means it will occur on all reports.

                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
                • T
                  Tom Elliott
                  last edited by May 31, 2017, 6:41 PM

                  Can you please update us to let us know if your timing issues are resolved now? Thank you.

                  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
                  • F
                    Fernando Gietz Developer
                    last edited by Jun 1, 2017, 9:06 AM

                    Sorry Tom I forget do it. Yes, If I increase the maximum execution time to 60 seconds, the report runs well

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

                    147

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.3k

                    Posts
                    Copyright © 2012-2024 FOG Project