Unable to deploy Snapins - Stuck in Que
-
The fog log is normally located at
C:\fog.log
unless you specifically pathed it somewhere else during install. -
I had a similar issue occur a few days ago. I had someone use an image (ahead of schedule) as I was still uploading a new version.
All of his hosts received the older image, which was fine, but snapins wouldn’t deploy. The client renamed and joined the domain, just no snapins.
I ended up pushing out a simple PowerShell script to toggle the FOG service off and on again, then everything started working properly.
-
-
So I checked the error.log file at /var/log/apache2/error.log and I get this:
[Thu Jun 29 07:35:02.130507 2017] [mpm_prefork:notice] [pid 19280] AH00163: Apache/2.4.25 (Ubuntu) OpenSSL/1.0.2l configured – resuming normal operations
[Thu Jun 29 07:35:02.130532 2017] [core:notice] [pid 19280] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jun 29 08:00:59.069236 2017] [php7:error] [pid 7250] [client 10.30.90.218:49385] PHP Fatal error: Uncaught Error: Call to a member function get() on null in /var/www/html/fog/lib/fog/fogbase.class.php:1723\nStack trace:\n#0 /var/www/html/fog/lib/client/fogclient.class.php(185): FOGBase->sendData(‘{“error”:“ih”}’)\n#1 /var/www/html/fog/service/usertracking.report.php(25): FOGClient->__construct(true, false)\n#2 {main}\n thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 1723 -
Can you upgrade your version of FOG to see if this has already been addressed?
-
@Tom-Elliott Recommended version to upgrade to?
-
@tyler2017 Latest, 1.4.4.
-
@Tom-Elliott I’ve never done an update before, only fresh installs. Do I just need to run the installer for the new version? Stupid question, I know. Just checking… I’ll definitely back things up first.
-
@tyler2017 Upgrades are automatically handled by the installer yes. You just re-run the installer and it will update the things it needs to update.
-
@Tom-Elliott Now all of my clients are showing this:
--------------------------------Authentication--------------------------------
6/29/2017 1:45 PM Client-Info Version: 0.11.12
6/29/2017 1:45 PM Client-Info OS: Windows
6/29/2017 1:45 PM Middleware::Authentication Waiting for authentication timeout to pass
6/29/2017 1:47 PM Middleware::Communication Download: http://10.30.19.2/fog/management/other/ssl/srvpublic.crt
6/29/2017 1:47 PM Data::RSA FOG Server CA cert found
6/29/2017 1:47 PM Middleware::Authentication Cert OK
6/29/2017 1:47 PM Middleware::Communication POST URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&authorize&newService
6/29/2017 1:47 PM Middleware::Response Error multiple hosts returned for list of mac addressesI am unable to find any duplicate MAC address for any hosts. Any ideas?
-
@Tom-Elliott Getting this also:
----------------------------------UserTracker---------------------------------
6/29/2017 3:52 PM Client-Info Client Version: 0.11.12
6/29/2017 3:52 PM Client-Info Client OS: Windows
6/29/2017 3:52 PM Client-Info Server Version: “A valid database connection could not be made”
6/29/2017 3:52 PM Middleware::Response ERROR: Unable to get subsection
6/29/2017 3:52 PM Middleware::Response ERROR: Object reference not set to an instance of an object.
6/29/2017 3:52 PM Service Sleeping for 95 seconds
6/29/2017 3:53 PM Middleware::Communication URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&configure&newService&json
6/29/2017 3:53 PM Middleware::Response Success
6/29/2017 3:53 PM Middleware::Communication URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&mac=98:E7:F4:F4:0A:5E|E4:A7:A0:B6:55:2A|E4:A7:A0:B6:55:26|00:09:0F:FE:00:01||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0|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
6/29/2017 3:53 PM Middleware::Response ERROR: Could not parse data
6/29/2017 3:53 PM Middleware::Response ERROR: Unexpected character encountered while parsing value: E. Path ‘’, line 0, position 0.
6/29/2017 3:53 PM Middleware::Communication URL: http://10.30.19.2/fog/service/getversion.php?clientver&newService&json
6/29/2017 3:53 PM Middleware::Communication URL: http://10.30.19.2/fog/service/getversion.php?newService&json
6/29/2017 3:53 PM Service ERROR: Unable to get cycle data
6/29/2017 3:53 PM Service ERROR: Object reference not set to an instance of an object.
6/29/2017 3:53 PM Middleware::Response Success -
@tyler2017 So the “Error multiple hosts returned for list of mac addresses” means there’s likely a duplicate MAC Address being passed, but what you’re looking at for “mac addresses” is not the same as the list the client is passing.
I’m not saying you did anything wrong and I hope I just corrected some of the checking code.
Would you mind trying:
wget -O /var/www/fog/lib/fog/hostmanager.class.php https://raw.githubusercontent.com/FOGProject/fogproject/57d36f5ce22b960db99ad290f1d20b7be1c93e37/packages/web/lib/fog/hostmanager.class.php # Ensure /var/www/html/fog has updated file just in case /var/www/fog is not already linked appropriately. wget -O /var/www/html/fog/lib/fog/hostmanager.class.php https://raw.githubusercontent.com/FOGProject/fogproject/57d36f5ce22b960db99ad290f1d20b7be1c93e37/packages/web/lib/fog/hostmanager.class.php
-
@tyler2017 said in Unable to deploy Snapins - Stuck in Que:
“A valid database connection could not be made”
Of note, for this error above, it seems possible that DB is full, or not running properly? (Maybe a whole ton of data causing a delay getting the information.)
I’m only guessing based on what I see. This is, for the most part, unrelated to the “Multiple errors exist” thought it’s not impossible a Full/Corrupt DB would be sending a ton more information than expected causing the error to throw. (So DB issues could send lots of excess data in the query, but this would only happen if the DB instance was still running.)
-
@Tom-Elliott I tried the commands you suggested. I’ve not noticed any changes in anything. The fog.log on all clients is still showing the same thing. Still unable to push snapins…
-
@tyler2017 Do you mean you’re getting the Invalid database error still?
-
This post is deleted! -
@Tom-Elliott I no longer see the database connection error, but I do still get these…
Authentication:
6/30/2017 10:31 AM Client-Info Version: 0.11.12
6/30/2017 10:31 AM Client-Info OS: Windows
6/30/2017 10:31 AM Middleware::Authentication Waiting for authentication timeout to pass
6/30/2017 10:33 AM Middleware::Communication Download: http://10.30.19.2/fog/management/other/ssl/srvpublic.crt
6/30/2017 10:33 AM Data::RSA FOG Server CA cert found
6/30/2017 10:33 AM Middleware::Authentication Cert OK
6/30/2017 10:33 AM Middleware::Authentication ERROR: Could not get security token
6/30/2017 10:33 AM Middleware::Authentication ERROR: Could not find file ‘C:\Program Files (x86)\FOG\token.dat’.
6/30/2017 10:33 AM Middleware::Communication POST URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&authorize&newService
6/30/2017 10:33 AM Middleware::Response Error multiple hosts returned for list of mac addresses6/30/2017 10:33 AM Middleware::Communication URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&configure&newService&json
6/30/2017 10:33 AM Middleware::Response Success
6/30/2017 10:33 AM Middleware::Communication URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&mac=1A:E3:47:B3:65:43|28:E3:47:B3:7C:B3|28:E3:47:B3:65:43|00:09:0F:FE:00:01|A0:1D:48:B0:29:CC||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
6/30/2017 10:33 AM Middleware::Response ERROR: Could not parse data
6/30/2017 10:33 AM Middleware::Response ERROR: Unexpected character encountered while parsing value: E. Path ‘’, line 0, position 0.
6/30/2017 10:33 AM Middleware::Communication URL: http://10.30.19.2/fog/service/getversion.php?clientver&newService&json
6/30/2017 10:33 AM Middleware::Communication URL: http://10.30.19.2/fog/service/getversion.php?newService&json
6/30/2017 10:33 AM Service ERROR: Unable to get cycle data
6/30/2017 10:33 AM Service ERROR: Object reference not set to an instance of an object.
6/30/2017 10:33 AM Middleware::Response Success
6/30/2017 10:33 AM Service Initializing modulesUserTracker:
6/30/2017 10:33 AM Client-Info Client Version: 0.11.12
6/30/2017 10:33 AM Client-Info Client OS: Windows
6/30/2017 10:33 AM Client-Info Server Version:
6/30/2017 10:33 AM Middleware::Response ERROR: Unable to get subsection
6/30/2017 10:33 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
6/30/2017 10:33 AM Service Sleeping for 143 seconds
6/30/2017 10:35 AM Middleware::Communication URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&configure&newService&json
6/30/2017 10:35 AM Middleware::Response Success
6/30/2017 10:35 AM Middleware::Communication URL: http://10.30.19.2/fog/management/index.php?sub=requestClientInfo&mac=1A:E3:47:B3:65:43|28:E3:47:B3:7C:B3|28:E3:47:B3:65:43|00:09:0F:FE:00:01|A0:1D:48:B0:29:CC||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
6/30/2017 10:35 AM Middleware::Response ERROR: Could not parse data
6/30/2017 10:35 AM Middleware::Response ERROR: Unexpected character encountered while parsing value: E. Path ‘’, line 0, position 0.
6/30/2017 10:35 AM Middleware::Communication URL: http://10.30.19.2/fog/service/getversion.php?clientver&newService&json
6/30/2017 10:35 AM Middleware::Communication URL: http://10.30.19.2/fog/service/getversion.php?newService&json
6/30/2017 10:35 AM Service ERROR: Unable to get cycle data
6/30/2017 10:35 AM Service ERROR: Object reference not set to an instance of an object.
6/30/2017 10:35 AM Middleware::Response Success -
@tyler2017 said in Unable to deploy Snapins - Stuck in Que:
Mind running an SQL query on the db with:
USE fog; SELECT hmHostID,hmMAC FROM hostMAC WHERE hmMAC IN ('1A:E3:47:B3:65:43','28:E3:47:B3:7C:B3','28:E3:47:B3:65:43','00:09:0F:FE:00:01','A0:1D:48:B0:29:CC');
-
@Tom-Elliott Pardon my ignorance, but how would I go about doing that?
-
Nevermind, I figured it out… I think.