I have reverted back to a VM snapshot taken of 1.2 before the SVN upgrade, I will have another look at updates when I get a chance.
The SVN since 1.2 seems to be a lot better with the snapins though.
Updated to 2362
Still unable to register via “Perform Full Host Registration and Inventory” pxe menu, get the same error message.
When trying to register a host through the web interface claims to have been registered but, then unable to search for the Host.
Checked the database,
The hostID in the inventory table is being set to “0”
The hmHostID in the HostMAC table is also being set to “0”
Still seeing the below in the apache logs.
[Thu Oct 02 13:41:41 2014] [error] [client 10.72.93.33] PHP Parse error: syntax error, unexpected ‘[’ in /var/www/fog/service/register.php on line 33
When trying to register a host via pxe it fails with “Unable to register host for reason” and never gives a reason…
The the apache error logs has
[Thu Oct 02 13:05:27 2014] [error] [client 10.72.92.246] PHP Parse error: syntax error, unexpected ‘[’ in /var/www/fog/service/register.php on line 33
Followed by a large amount of the following error
[Thu Oct 02 13:08:39 2014] [error] [client 10.72.94.48] PHP Fatal error: Call to a member function isValid() on a non-object in /var/www/fog/service/inventory.php on line 52
The snapin has the full path.
This was a plain upgrade from 0.32 where everything was working fine. So something has broken this in the 1.* series.
The path has the full location in the SQL record.
Investigations so far…
When trying to run a snapin
The FOG Client calls
This then returns a list of waiting snapin jobs for the client in the format below
SNAPINNAME=Office 2010 plus Patch
The client then calls
Where the task ID was reported from the checkin.php result
Ok it looks like it picked up some old config from
/var/www/fog/lib/fog/Config.class.php old IP address was 10.72.92.7 current is 10.72.92.19
I am using the latest 1.1.2
The fog log from the workstation, where I have now managed to get everything working except the plugins…
11/07/2014 14:21 FOG::SnapinClient Attempting to connect to fog server…
11/07/2014 14:21 FOG::SnapinClient Module is active…
11/07/2014 14:21 FOG::SnapinClient Snapin Found:
11/07/2014 14:21 FOG::SnapinClient ID: 2091
11/07/2014 14:21 FOG::SnapinClient RunWith:
11/07/2014 14:21 FOG::SnapinClient RunWithArgs:
11/07/2014 14:21 FOG::SnapinClient Name: Office 2010 plus Patch
11/07/2014 14:21 FOG::SnapinClient Created: 2014-07-11 11:42:47
11/07/2014 14:21 FOG::SnapinClient Args:
11/07/2014 14:21 FOG::SnapinClient Reboot: No
11/07/2014 14:21 FOG::SnapinClient Starting FOG Snapin Download
11/07/2014 14:21 FOG::SnapinClient Download Failed; Zero size file.
I have recently upgraded to 1.1.2
Not quite as painless as I’d hoped but most of it works well now.
Mon Jul 07 12:04:38 2014] [error] [client 10.72.93.228] File does not exist: /var/www/favicon.ico
[Mon Jul 07 12:07:24 2014] [error] [client 10.72.93.228] File does not exist: /var/www/fog/management/css/…, referer: [url]http://10.72.92.19/fog/management/index.php?node=tasks&sub=active-snapins[/url]
I’m also assuming the re-write includes clearing cruft from the install, to that effect I can find no reason to keep the following directories and files.
There is no explanation or use for these as far as I can tell and they don’t seem to be referenced from anywhere else in fog.