Active Snapins
-
I have recently upgraded to 1.1.2
Not quite as painless as I’d hoped but most of it works well now.
- Task Management - Active Snapins show a massive list, probably a list of all Snapins for all computers. I was expecting it to only show the Actively being deployed snapins.
Apache Error
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]- After the initial upgrade
default on the line
chain [url]http://ip-address/fog/service/ipxe/boot.php##params[/url]
The ip address was incorrect
-
Are these actually running properly?
The chain [url]http://ip-address/fog/service/ipxe/boot.php##params[/url] should be correct. It should be the ipaddress you specified during the install process. If this isn’t correct, then somebody else made an error or this is a new ip address.
Logs are logs, they’re there to help, not necessarily everything is a problem. Those particular messages are safe to ignore.
-
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. -
Investigations so far…
When trying to run a snapin
The FOG Client calls
[url]http://ip-address/fog/service/snapins.checkin.php?mac=mac-address[/url]This then returns a list of waiting snapin jobs for the client in the format below
#!ok
JOBTASKID=2091
JOBCREATION=2014-07-11 11:42:47
SNAPINNAME=Office 2010 plus Patch
SNAPINARGS=
SNAPINBOUNCE=0
SNAPINFILENAME=Office2010_withpatch.exe
SNAPINRUNWITH=
SNAPINRUNWITHARGS=
The client then calls[url]http://ip-address/fog/service/snapins.file.php?mac=mac-address&taskid=****[/url]
Where the task ID was reported from the checkin.php result
-
In
/var/www/fog/service/snapins.file.php
Line 31 I changed
$SnapinFile = rtrim($FOGCore->getSetting(‘FOG_SNAPINDIR’),‘/’).‘/’.$Snapin->get(‘file’);
To…
$SnapinFile = $Snapin->get(‘file’);
As the path to the file was being included twice.
-
In your snapin, where specify the file on the GUI, does it show the same path, or just the filename itself. This should only be the filename which is the reason you see the get of the setting.
-
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. -
SVN 2052 released in an attempt to “scan” which method and where the file exists.
This should help your particular problem out.
-
Thanks I’ll get all my current requests for Snapins using my work around deployed then I’ll try out the latest SVN version.