Errors in Apache log and www-error.log
-
I was trying to track down what was going wrong with my LDAP setup, when it was recommended here to check the Apache error log. Navigating there, I found line after line comlpaining about “proxy_fcgi:error - The Timeout specified has expired … etc.”
[Wed Aug 07 12:21:02.678201 2019] [proxy_fcgi:error] [pid 26153] (70007)The timeout specified has expired: [client 172.17.207.117:64205] AH01075: Error dispatching request to :, referer: http://172.17.207.144/fog/management/index.php?node=task&sub=active
Research on that lead me here to check the www-error.log. Opening that file, I get several lines complaining about an illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296. It also complains about lines 1080, 1081, and 1100 of file /var/www/html/fog/lib/fog/fogcontroller.class.php (mainly about array_diff() and count()), but that’s where my eyes started glossing over. Thoughts on how I can get the errors to stop flowing, so I can better figure out what I need to do to get LDAP rolling?
[05-Aug-2019 12:57:34 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[05-Aug-2019 12:58:38 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[05-Aug-2019 15:15:31 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[06-Aug-2019 08:27:18 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[06-Aug-2019 08:27:58 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[06-Aug-2019 08:28:36 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1081
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1081
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: array_diff(): Argument #2 is not an array in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1080
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1081
[07-Aug-2019 09:22:35 America/New_York] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 1100
[07-Aug-2019 09:24:35 America/New_York] PHP Fatal error: Uncaught Error: Call to a member function isValid() on null in /var/www/html/fog/lib/fog/host.class.php:305
Stack trace:
#0 /var/www/html/fog/lib/fog/fogbase.class.php(1814): Host->save()
#1 /var/www/html/fog/lib/client/fogclient.class.php(179): FOGBase->sendData(‘{“error”:"{\"co…’)
#2 /var/www/html/fog/service/register.php(32): FOGClient->__construct(true, false, true, false, true)
#3 {main}
thrown in /var/www/html/fog/lib/fog/host.class.php on line 305
[07-Aug-2019 10:55:14 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 11:01:38 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 12:07:46 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 12:10:49 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 12:11:02 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 12:28:04 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[07-Aug-2019 16:20:10 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[08-Aug-2019 09:07:58 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[08-Aug-2019 09:08:04 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[08-Aug-2019 09:08:11 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[09-Aug-2019 09:34:55 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
[09-Aug-2019 16:14:57 America/New_York] PHP Warning: Illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296
-
@ckasdf said in Errors in Apache log and www-error.log:
Opening that file, I get several lines complaining about an illegal offset type in /var/www/html/fog/lib/fog/fogmanagercontroller.class.php on line 296. It also complains about lines 1080, 1081, and 1100 of file /var/www/html/fog/lib/fog/fogcontroller.class.php (mainly about array_diff() and count()), but that’s where my eyes started glossing over.
As far as I know all those messages (more warnings than errors) came up with newer PHP versions. I have done a bit of work on this to get rid of some of the messages but I got really lost on this as it takes a lot of time to dig through all of this old but well optimized code. I will have a look when I find more time. Not this week, I am afraid.
-
@ckasdf I just pushed two commits to
dev-branch
to fix some of the warnings. Will work on the rest when I find the time. -
Thanks. Perhaps those are less errors, and more just warnings? Is LDAP login possible with the current build? If so, I’ll open a new post requesting help with that.
-
@ckasdf said in Errors in Apache log and www-error.log:
Perhaps those are less errors, and more just warnings?
Abdolutely but it’s still imporant to get rid of those to not cause any confusion when we tell people to consult the logs when looking for an error.
Is LDAP login possible with the current build?
While I have not tested it myself in our test environment lately I am fairly sure it does work. I remember others posting questions on this in the forums and did succeed.
If so, I’ll open a new post requesting help with that.
Probably not too bad of an idea. Doesn’t cost much extra and it’s good to keep things sorted a bit so people find answers more easily themselves.
Just a quick hint: Are you able to connect to your LDAP using the same credentials in a tool like ldapbrowser?