FOG client get error messages like : (500) Internal Server Error
-
Hi,
I’m using FOG 1.5.5 on Ubuntu 16.04.
Till now everything worked well. I don’t know if it’s related but yesterday I had to change the storage location.
This is how I did it :-Mount my new drive
-Format as ext4
-Copied everything from my old to my new drive.
-set the new path in Storage>default member
-edited storagelocation in /opt/fog/.fogsettings
-edited /etc/exports and run exportfs -raI can deploy and capture without any issue but now client plugin is not working anymore on all of my host.
I’m unable the reboot the machines or run any snapins.
Get several errors :On the client :
17/05/2019 10:47 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac= …-But then Could not contact server.
-Internal error (500)
-unable to get subsectionin apache
[Fri May 17 10:44:47.951092 2019] [proxy_fcgi:error] [pid 18681] [client 10.33.136.155:57557] AH01071: Got error 'PHP message: 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(3013): RegisterClient->json()\n#3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo()\n#4 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard')\n#5 /var/www/html/fog/lib/fog/loadglobals.class.php(64): DashboardPage->__construct()\n#6 /var/www/html/fog/lib/fog/loadglobals.class.php(78): LoadGlobals::_init()\n#7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct()\n#8 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...')\n#9 {main}\n thrown in /var/www/html/fog/lib/fog/hostmanager.class.php on li...\n'
Many thanks by advance for any help.
-
@processor said in FOG client get error messages like : (500) Internal Server Error:
Error multiple hosts returned for list of mac addresses …
Please read through this topic: https://forums.fogproject.org/topic/8448/response-error-multiple-hosts-returned-for-list-of-mac-addresses
There is pretty much all of the information you need to find the duplicate MAC address.
-
Hi,
Thank you for your answer. I guess I already read it. I’ll look a it more closely.
I also ran this in mysql :SELECT * FROM `hostMAC` WHERE `hmMAC` IN (SELECT `hmMAC` FROM `hostMAC` GROUP BY `hmMAC` HAVING COUNT(`hmMAC`) > 1);
And I see no duplicates. What is weird is it’s not one pc that is impacted but the all the PCs.
I ran the Database Maintenance Commands seen in the wiki but it did not helped either.
For info I don’t think it’s related to my images move as they are now back to their legacy drive and the problem remains. But I had a doubt as it appear when I changed the default storage.
I’ll check the recommended post and tell you if it helped.
Thanks Proc.
-
Ok So I re-read it carefully. I was pretty sure of the result but the command (with the right MAC) gave only 1 row so I guess there is no duplicates for the 2 tested PC :
SELECT hmHostID FROM hostMAC where hmMAC IN (‘b8:70:f4:c3:4d:7f’,‘e0:ca:94:1e:3a:7e’);
I take any other idea.
I also already read this post : https://forums.fogproject.org/topic/11382/http-500-internal-server-error/4 and tried to relaunch the installer but the problem remains.
Just for info, this is what I get in the client fog log :
------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 19/05/2019 21:42 Client-Info Client Version: 0.11.16 19/05/2019 21:42 Client-Info Client OS: Windows 19/05/2019 21:42 Client-Info Server Version: 1.5.5 19/05/2019 21:42 Middleware::Response ERROR: Unable to get subsection 19/05/2019 21:42 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet. 19/05/2019 21:42 Service Sleeping for 70 seconds 19/05/2019 21:43 Middleware::Communication URL: http://10.33.0.11/fog/management/index.php?sub=requestClientInfo&configure&newService&json 19/05/2019 21:43 Middleware::Response Success 19/05/2019 21:43 Middleware::Communication URL: http://10.33.0.11/fog/management/index.php?sub=requestClientInfo&mac=00:FF:5D:1A:66:B7|00:50:66:AF:33:17|00:50:77:C0:00:01|00:50:65:C0:00:08||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService&json 19/05/2019 21:43 Middleware::Communication ERROR: Could not contact FOG server 19/05/2019 21:43 Middleware::Communication ERROR: Le serveur distant a retourné une erreur : (500) Erreur interne du serveur. 19/05/2019 21:43 Middleware::Response Success 19/05/2019 21:43 Middleware::Communication URL: http://10.33.0.11/fog/service/getversion.php?clientver&newService&json 19/05/2019 21:43 Middleware::Communication URL: http://10.33.0.11/fog/service/getversion.php?newService&json 19/05/2019 21:43 Service Creating user agent cache 19/05/2019 21:43 Middleware::Response ERROR: Unable to get subsection 19/05/2019 21:43 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet. 19/05/2019 21:43 Middleware::Response ERROR: Unable to get subsection 19/05/2019 21:43 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet. 19/05/2019 21:43 Middleware::Response ERROR: Unable to get subsection 19/05/2019 21:43 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet. ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 19/05/2019 21:43 Client-Info Client Version: 0.11.16 19/05/2019 21:43 Client-Info Client OS: Windows 19/05/2019 21:43 Client-Info Server Version: 1.5.5 19/05/2019 21:43 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 19/05/2019 21:43 Client-Info Client Version: 0.11.16 19/05/2019 21:43 Client-Info Client OS: Windows 19/05/2019 21:43 Client-Info Server Version: 1.5.5 19/05/2019 21:43 Middleware::Response ERROR: Unable to get subsection 19/05/2019 21:43 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
-
Ok,
I guess I found what happened. A windows virtual interface present in a Win10 master image with the same mac as a physical interface on another host.
I don’t even now how it could happen.But the mac of the virtual in do not appear in the DB that’s why I did no saw it in it.
Disable the interface in the host seem to solve the situation.I guess this case is clear now.
Do you know if it’s possible the client to use only physical interface and not the virtuals ?
-
@processor Great you figured it out!!
Do you know if it’s possible the client to use only physical interface and not the virtuals ?
Here is an old discussion we started about virtual adapters: https://forums.fogproject.org/topic/7032/ignore-tunnel-interface-on-client
Joe who developed the fog-client makes a clear point about the filter should only be in one place - the server side. We have filter settings in FOG (FOG Configuration -> FOG Settings -> …) but I see that it might be quite hard to figure this out. Maybe we should add a hint on which MAC address it finds duplicated so it’s easier to find. I am open for any suggestion on this.
-
I did not found the option in FOG configuration -> fog settings , but I just found the faulty host had as primary MAC the Windows vNIC mac. I put the MAC of the physical NIC as primary and then everything back to normal.
I don’t have a idea to make the research better as I just had to search in the host section of FOG the MAC addresses found in the client log to see what was going on.