Fog Client 0.11.15 ERROR: Object reference not set to an instance of an object.
-
This error is cropping up on a fair number of our machines (this is in the FOG Log on the host machine.) I’ve seen this being an issue in the past with other people’s database however I have not been able to fix it in my environment. This has been going on for quite some time, going back to Fog Client version 0.11.12, so I thought it would possibly be resolved by updating FOG to 1.5.0 but I was wrong.
I’m sure there’s something amiss with my database but I’m a serious Linux noob and don’t know how to go about resolving the issue, or rebuilding the database. Any help would be very much appreciated! This install is on Ubuntu Server 14.04.5 LTS. Thanks!
-
I remoted in and helped identify the problematic adapter.
I’m currently working on a way for the client to automatically filter out virtual interfaces to help prevent these kinds of issues in the future.
-
@chaonatic Couple things:
- When you have problems with the FOG Client, please give us an adequate snippet from the fog.log file. Use the forum’s code-block feature to post it here in the forums.
- This error is normally fixed by resetting the encryption on the hosts with the issue.
- You can reset all hosts encryption at once by putting all hosts in a group called ‘all’ and then using the group to reset all host’s encryption.
- Resetting encryption does no harm other than higher CPU load during a short period of time when the clients are re-negotiating encryption with the FOG Server.
-
I’ve tried to reset the encryption numerous times on numerous hosts, including this one, but to no avail. Here’s a snippet from the log file:
------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 4/9/2018 12:19 PM Client-Info Client Version: 0.11.15 4/9/2018 12:19 PM Client-Info Client OS: Windows 4/9/2018 12:19 PM Client-Info Server Version: 1.5.0 4/9/2018 12:19 PM Middleware::Response ERROR: Unable to get subsection 4/9/2018 12:19 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 4/9/2018 12:19 PM Client-Info Client Version: 0.11.15 4/9/2018 12:19 PM Client-Info Client OS: Windows 4/9/2018 12:19 PM Client-Info Server Version: 1.5.0 4/9/2018 12:19 PM Middleware::Response ERROR: Unable to get subsection 4/9/2018 12:19 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 4/9/2018 12:19 PM Service Sleeping for 142 seconds 4/9/2018 12:23 PM Main Overriding exception handling 4/9/2018 12:23 PM Main Bootstrapping Zazzles 4/9/2018 12:23 PM Controller Initialize 4/9/2018 12:23 PM Controller Start 4/9/2018 12:23 PM Service Starting service 4/9/2018 12:23 PM Bus Became bus server 4/9/2018 12:23 PM Bus Emmiting message on channel: Status 4/9/2018 12:23 PM Service Invoking early JIT compilation on needed binaries ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 4/9/2018 12:23 PM Client-Info Version: 0.11.15 4/9/2018 12:23 PM Client-Info OS: Windows 4/9/2018 12:23 PM Middleware::Authentication Waiting for authentication timeout to pass 4/9/2018 12:23 PM Middleware::Communication Download: http://10.0.0.21/fog/management/other/ssl/srvpublic.crt 4/9/2018 12:23 PM Data::RSA FOG Server CA cert found 4/9/2018 12:23 PM Middleware::Authentication Cert OK 4/9/2018 12:24 PM Middleware::Communication POST URL: http://10.0.0.21/fog/management/index.php?sub=requestClientInfo&authorize&newService 4/9/2018 12:24 PM Middleware::Response Error multiple hosts returned for list of mac addresses ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 4/9/2018 12:24 PM Client-Info Version: 0.11.15 4/9/2018 12:24 PM Client-Info OS: Windows 4/9/2018 12:24 PM Middleware::Authentication Waiting for authentication timeout to pass 4/9/2018 12:26 PM Middleware::Communication Download: http://xx.xx.xx.xx/fog/management/other/ssl/srvpublic.crt 4/9/2018 12:26 PM Data::RSA FOG Server CA cert found 4/9/2018 12:26 PM Middleware::Authentication Cert OK 4/9/2018 12:26 PM Middleware::Communication POST URL: http://xx.xx.xx.xx/fog/management/index.php?sub=requestClientInfo&authorize&newService 4/9/2018 12:26 PM Middleware::Response Error multiple hosts returned for list of mac addresses ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 4/9/2018 12:26 PM Client-Info Version: 0.11.15 4/9/2018 12:26 PM Client-Info OS: Windows 4/9/2018 12:26 PM Middleware::Authentication Waiting for authentication timeout to pass
I suspect that the concerning part of the log is this:
4/9/2018 12:26 PM Middleware::Response Error multiple hosts returned for list of mac addresses
However, when I search for the MAC address, it returns only this one device.
Please let me know what you would like me to do next. Thank you, Wayne!!
-
Here’s a snippet from another host:
----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 4/9/2018 12:57 PM Client-Info Client Version: 0.11.15 4/9/2018 12:57 PM Client-Info Client OS: Windows 4/9/2018 12:57 PM Client-Info Server Version: 1.5.0 4/9/2018 12:57 PM Middleware::Response ERROR: Unable to get subsection 4/9/2018 12:57 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 4/9/2018 12:57 PM Service Sleeping for 67 seconds 4/9/2018 12:58 PM Middleware::Communication URL: http://xx.xx.xx.xx/fog/management/index.php?sub=requestClientInfo&configure&newService&json 4/9/2018 12:58 PM Middleware::Response Success 4/9/2018 12:58 PM Middleware::Communication URL: http://xx.xx.xx.xx/fog/management/index.php?sub=requestClientInfo&mac=[BUNCH OF MAC ADDRESSES]&newService&json 4/9/2018 12:58 PM Middleware::Communication ERROR: Could not contact FOG server 4/9/2018 12:58 PM Middleware::Communication ERROR: The remote server returned an error: (500) Internal Server Error. 4/9/2018 12:58 PM Middleware::Response Success 4/9/2018 12:58 PM Middleware::Communication URL: http://xx.xx.xx.xx/fog/service/getversion.php?clientver&newService&json 4/9/2018 12:58 PM Middleware::Communication URL: http://xx.xx.xx.xx/fog/service/getversion.php?newService&json 4/9/2018 12:58 PM Service Creating user agent cache 4/9/2018 12:58 PM Middleware::Response ERROR: Unable to get subsection 4/9/2018 12:58 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 4/9/2018 12:58 PM Middleware::Response ERROR: Unable to get subsection 4/9/2018 12:58 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 4/9/2018 12:58 PM Middleware::Response ERROR: Unable to get subsection 4/9/2018 12:58 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
I assume this is the concerning part:
4/9/2018 12:58 PM Middleware::Communication ERROR: The remote server returned an error: (500) Internal Server Error.
But the client was able to update itself and identifies/downloads the cert just fine.
-
@chaonatic said in Fog Client 0.11.15 ERROR: Object reference not set to an instance of an object.:
error: (500) Internal Server Error.
Can you also post your server’s apache error log?
-
The error log is quite large, nearly 4MB. Here’s a portion:
[Mon Apr 09 06:27:15.300066 2018] [mpm_prefork:notice] [pid 1498] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations [Mon Apr 09 06:27:15.300090 2018] [core:notice] [pid 1498] AH00094: Command line: '/usr/sbin/apache2' [Mon Apr 09 11:02:25.803453 2018] [mpm_prefork:notice] [pid 1498] AH00169: caught SIGTERM, shutting down [Mon Apr 09 11:02:42.066304 2018] [mpm_prefork:notice] [pid 14794] AH00163: Apache/2.4.33 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations [Mon Apr 09 11:02:42.066355 2018] [core:notice] [pid 14794] AH00094: Command line: '/usr/sbin/apache2' [Mon Apr 09 11:03:58.791494 2018] [mpm_prefork:notice] [pid 14794] AH00169: caught SIGTERM, shutting down [Mon Apr 09 11:04:32.260699 2018] [mpm_prefork:notice] [pid 4138] AH00163: Apache/2.4.33 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations [Mon Apr 09 11:04:32.260786 2018] [core:notice] [pid 4138] AH00094: Command line: '/usr/sbin/apache2' [Mon Apr 09 11:05:07.880201 2018] [php7:error] [pid 4175] [client xx.xx.xx.xx:51075] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:09.727442 2018] [php7:error] [pid 4143] [client xx.xx.xx.xx:55637] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:14.183925 2018] [php7:error] [pid 4300] [client xx.xx.xx.xx:55823] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:15.354272 2018] [php7:error] [pid 4237] [client xx.xx.xx.xx:56201] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:18.824752 2018] [php7:error] [pid 4296] [client xx.xx.xx.xx:63572] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:19.296611 2018] [php7:error] [pid 4244] [client xx.xx.xx.xx:54826] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:20.526256 2018] [php7:error] [pid 4305] [client xx.xx.xx.xx:58498] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:25.073969 2018] [php7:error] [pid 4246] [client xx.xx.xx.xx:49811] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:26.346861 2018] [php7:error] [pid 4143] [client xx.xx.xx.xx:54840] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:26.783144 2018] [php7:error] [pid 4244] [client xx.xx.xx.xx:57937] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:29.846180 2018] [php7:error] [pid 4175] [client xx.xx.xx.xx:64607] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:52.290899 2018] [php7:error] [pid 4245] [client xx.xx.xx.xx:54762] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:05:55.881944 2018] [php7:error] [pid 4246] [client xx.xx.xx.xx:51410] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:06:08.460724 2018] [php7:error] [pid 4246] [client xx.xx.xx.xx:54716] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:06:39.182908 2018] [php7:error] [pid 4264] [client xx.xx.xx.xx:61637] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/fog/lib/fog/fogcontroller.class.php on line 261, referer: http://xx.xx.xx.xx/fog/management/index.php?node=host&sub=edit&id=174 [Mon Apr 09 11:08:58.537026 2018] [php7:error] [pid 4177] [client xx.xx.xx.xx:49320] PHP Fatal error: Uncaught Exception: Error multiple hosts returned for list of mac addresses in /var/www/html/fog/lib/fog/hostmanager.class.php:209\nStack trace:\n#0 /var/www/html/fog/lib/fog/fogbase.class.php(571): HostManager->getHostByMacAddresses(Array)\n#1 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true)\n#2 /var/www/html/fog/lib/fog/fogpage.class.php(3005): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/processlogin.class.php(57): FOGPage->__construct('')\n#5 /var/www/html/fog/lib/fog/fogpagemanager.class.php(381): ProcessLogin->__construct()\n#6 [internal function]: FOGPageManager->{closure}('/var/www/html/f...')\n#7 /var/www/html/fog/lib/fog/fogpagemanager.class.php(386): array_map(Object(Closure), Array)\n#8 /var/www/html/fog/lib/fog/fogpagemanager.class.php(79): FOGPageManager->loadPageClasses()\n#9 [internal function]: FOGPageManager->__construct()\n#10 /var/www/html/fog/lib/fog/fo in /var/www/html/fog/lib/fog/hostmanager.class.php on line 209 [Mon Apr 09 11:11:19.052570 2018] [php7:error] [pid 8040] [client xx.xx.xx.xx:62387] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/fog/lib/fog/fogbase.class.php on line 2398, referer: http://xx.xx.xx.xx/fog/management/index.php?node=host&sub=edit&id=174
Please let me know what else you would like and thanks.
-
@chaonatic said in Fog Client 0.11.15 ERROR: Object reference not set to an instance of an object.:
4/9/2018 12:26 PM Middleware::Response Error multiple hosts returned for list of mac addresses
So that tells me you probably have a database issue. Run these commands: https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Database_Maintenance_Commands
Then, check the fog.log file and see what it’s saying, post a new code block if it’s different.
Also, consider upgrading to FOG 1.5.1, it was released recently. -
Thanks, Wayne. I ran those commands against the database but unfortunately the fog.log is still reporting the same “Middleware::Response ERROR”. I’m going to attempt upgrading to FOG 1.5.2 next, but let me know if there’s anything else you would recommend in the meantime.
-
@chaonatic Was this image created in a VM? Also, I’ll get some SQL to you sometime this evening that should list all the MAC addresses associated with one of these hosts - that should give light on what the issue is.
-
@wayne-workman Yeah, the master image is a VM.
-
@chaonatic said in Fog Client 0.11.15 ERROR: Object reference not set to an instance of an object.:
Yeah, the master image is a VM.
OK. This is a typical problem with images created from VMs. usually there’s a MAC address in the VM that gets captured with the image - you have to find that MAC address and put it into FOG’s MAC exception list. On windows, you can get all mac addresses via the command prompt with
getmac
. The exception list is somewhere in the FOG Settings area, I don’t remember exactly where. -
@wayne-workman I found an exception list in the “FOG Client - Host Register” --> “QUICKREG PENDING MAC FILTER”, though this doesn’t seem like the one you’re referring to… I’ll keep looking if this is incorrect, just lemme know.
-
@chaonatic the simplest way to find the duplicate mac is to open a sql prompt on your FOG server;
Run:
mysql -u root -p
, and enter your sql root password.Then run the following commands (replacing the list of macs with the ones the client is using):
use fog; SELECT * FROM hostMAC WHERE hmMAC IN ('00:01:00:00:00:66', '00:01:00:00:00:67'); exit;
Ideally each mac address should only appear once in the
hmMAC
result column. If there is one that appears multiple times, that is the culprit.In general though, these kinds of errors are usually caused by virtual network adapters in your image.
-
@joe-schmitt I ran that command. Both of our gold image VM MAC addresses is only listed once in the resulting table. What should I try next?
-
@chaonatic okay, so that points to the virtual network adapter theory. Does your VM have any software-defined adapters that would be copied during imaging? Such as for a VPN, VirtualBox, or some other tunnel?
-
@chaonatic Use the
getmac
command on Windows. -
@joe-schmitt No, I just looked and there are no virtual NIC’s that I can see. Our VPN is only installed after the image rollout via a snapin.
-
I remoted in and helped identify the problematic adapter.
I’m currently working on a way for the client to automatically filter out virtual interfaces to help prevent these kinds of issues in the future.