SVN 3168 Invalid host
I’m having an odd issue with some of my machines. I have all my machines syspreped and imaged with the FOG service on them so they will rename after the sysprep. The renaming did initially work but now when I look at the log file after I rebooted the machine I get an Invalid Host error for every single module that I have turned on. Here is the apache error that is referencing the machine.
[SIZE=13px][COLOR=#555555]PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 478
[Fri Mar 27 15:24:11.393732 2015] [:error] [pid 30448] [client 18.104.22.168:49216] PHP Warning: Invalid argument supplied for foreach() in /var/www/fog/lib/fog/Host.class.php on line 497[/COLOR][/SIZE]
It’s always wanted to grab all the MAC Addresses. That’s exactly what its purpose is.
I’ve did that many times. Even when rebooting it wants to add in all of those MAC addresses. I’ve turned off the host registration which seems to have solved the problem for now. I’ve never seen the host registration service want to grab every single MAC address before.
Delete all the hostMACs that have a hmHostID = 0
Delete all hosts that have hostID = 0.
Just my recommendation. You will likely have to reregister the system (or let the new client put it in pending)
No, and I think I’m starting to figure out why. This host is a laptop and it has a bunch of wireless MAC’s and a Bluetooth MAC along side of the normal LAN MAC. Upon testing some settings instead of rebooting the whole machine I just kill the FOG service and restart it. However it seems when I do that It tries to register all of those wireless MAC’s and makes a mess of my database. I manually created this host so it had a proper hostID number but after restarting the service on the laptop it now has a hostID of 0. This pushes the laptop to pending status but it never shows up in my pending list as it remains blank. Here are screenshots of my database.[ATTACH=full]1830[/ATTACH][ATTACH=full]1831[/ATTACH]
[url=“/_imported_xf_attachments/1/1830_ScreenHunter_68 Mar. 30 07.57.jpg?:”]ScreenHunter_68 Mar. 30 07.57.jpg[/url][url=“/_imported_xf_attachments/1/1831_ScreenHunter_69 Mar. 30 07.58.jpg?:”]ScreenHunter_69 Mar. 30 07.58.jpg[/url]
Can you see this particular host on the GUI?
Yep, I do see a #!ih.
Can you go to the link:
What do you see on the page? My guess is you’ll see #!ih.
Here is the log file from the machine.
The foreach messages that you’re seeing are not really anything causing the issues you’re seeing. I am about to push a fix so these errors no longer present, however it’s not going fix the issue you’re seeing. We need some more info if you can be willing enough to help.
I don’t know where to start figuring it out though, could you provide the actual Client’s C:\fog.log file?