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

    Apache Error Log Question

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    6
    2.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.
    • Raymond BellR
      Raymond Bell Testers
      last edited by

      Just a quick question. Does anyone know what is causing this error?

      [Wed Oct 07 07:54:09.514830 2015] [:error] [pid 15975] [client 10.24.28.18:50827] PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63
      [Wed Oct 07 07:54:09.519121 2015] [:error] [pid 15975] [client 10.24.28.18:50827] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
      [Wed Oct 07 07:54:09.519445 2015] [:error] [pid 15975] [client 10.24.28.18:50827] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 39
      [Wed Oct 07 07:54:09.519577 2015] [:error] [pid 15975] [client 10.24.28.18:50827] PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63```

      Raymond Bell
      WiKi: https://wiki.fogproject.org/wiki/index.php/Main_Page

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

        The fact that it states “connection refused” would you adjust your /etc/my.cnf (/etc/mysql/my.cnf if ubuntu/debian) and in the [mysqld] section add the line (or uncomment) max_connections = 100?

        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
        • Raymond BellR
          Raymond Bell Testers
          last edited by

          Still get errors in Apache Log

          [Mon Oct 26 10:43:22.627831 2015] [:error] [pid 2143] [client 10.24.28.18:33357] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 39
          [Mon Oct 26 10:43:22.627973 2015] [:error] [pid 2143] [client 10.24.28.18:33357] PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63
          [Mon Oct 26 10:43:22.628365 2015] [:error] [pid 2143] [client 10.24.28.18:33357] PHP Fatal error:  Call to a member function query() on null in /var/www/html/fog/lib/fog/FOGCore.class.php on line 276
          [Mon Oct 26 14:53:27.331172 2015] [mpm_prefork:notice] [pid 2140] AH00169: caught SIGTERM, shutting down
          [Mon Oct 26 14:53:28.579538 2015] [mpm_prefork:notice] [pid 31553] AH00163: Apache/2.4.16 (Ubuntu) OpenSSL/1.0.1 configured -- resuming normal operations
          [Mon Oct 26 14:53:28.579689 2015] [core:notice] [pid 31553] AH00094: Command line: '/usr/sbin/apache2'
          [Mon Oct 26 15:07:51.817275 2015] [:error] [pid 31556] [client 10.24.28.18:32936] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
          [Mon Oct 26 15:07:51.818488 2015] [:error] [pid 31556] [client 10.24.28.18:32936] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 39
          [Mon Oct 26 15:07:51.818682 2015] [:error] [pid 31556] [client 10.24.28.18:32936] PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63```

          Raymond Bell
          WiKi: https://wiki.fogproject.org/wiki/index.php/Main_Page

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

            @Raymond-Bell said:

            `

            Can you please update and tell me if it’s any better?

            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
            • Raymond BellR
              Raymond Bell Testers
              last edited by

              @Tom-Elliott Still getting alot of errors with 4219

              [Tue Oct 27 08:31:54.331206 2015] [:error] [pid 13121] [client 10.24.28.18:34424] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 39
              [Tue Oct 27 08:31:54.331388 2015] [:error] [pid 13121] [client 10.24.28.18:34424] PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63
              [Tue Oct 27 08:31:54.407476 2015] [:error] [pid 13121] [client 10.24.28.18:34424] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
              [Tue Oct 27 08:31:54.408213 2015] [:error] [pid 13121] [client 10.24.28.18:34424] PHP Warning:  mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 39
              [Tue Oct 27 08:31:54.408345 2015] [:error] [pid 13121] [client 10.24.28.18:34424] PHP Warning:  mysqli::query(): Couldn't fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63
              [Tue Oct 27 08:31:54.408792 2015] [:error] [pid 13121] [client 10.24.28.18:34424] PHP Fatal error:  Call to a member function query() on null in /var/www/html/fog/lib/fog/FOGCore.class.php on line 276

              Raymond Bell
              WiKi: https://wiki.fogproject.org/wiki/index.php/Main_Page

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

                Working on this in a new thread: https://forums.fogproject.org/topic/6020/fog-svn-5020-and-above-cpu-hammered-thread

                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

                198

                Online

                12.1k

                Users

                17.3k

                Topics

                155.4k

                Posts
                Copyright © 2012-2024 FOG Project