Fog client does not add printers
-
Hi,
I try to add my network printers with fog for my computers, so i create evrything i need on Windows Server and when i add printer manually its working.
But i try to add the printers automaticly with the fog client but it’s not working i don’t understand why.
I put the computer log file here :
------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:33 Client-Info Client Version: 0.12.0 04/11/2021 15:32:33 Client-Info Client OS: Windows 04/11/2021 15:32:33 Client-Info Server Version: 1.5.9 04/11/2021 15:32:33 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:34 Client-Info Client Version: 0.12.0 04/11/2021 15:32:34 Client-Info Client OS: Windows 04/11/2021 15:32:34 Client-Info Server Version: 1.5.9 04/11/2021 15:32:34 Middleware::Response ERROR: Unable to get subsection 04/11/2021 15:32:34 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:34 Client-Info Client Version: 0.12.0 04/11/2021 15:32:34 Client-Info Client OS: Windows 04/11/2021 15:32:34 Client-Info Server Version: 1.5.9 04/11/2021 15:32:34 Middleware::Response ERROR: Unable to get subsection 04/11/2021 15:32:34 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:34 Client-Info Client Version: 0.12.0 04/11/2021 15:32:34 Client-Info Client OS: Windows 04/11/2021 15:32:34 Client-Info Server Version: 1.5.9 04/11/2021 15:32:34 Middleware::Response ERROR: Unable to get subsection 04/11/2021 15:32:34 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:34 Client-Info Client Version: 0.12.0 04/11/2021 15:32:35 Client-Info Client OS: Windows 04/11/2021 15:32:35 Client-Info Server Version: 1.5.9 04/11/2021 15:32:35 Middleware::Response ERROR: Unable to get subsection 04/11/2021 15:32:35 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:35 Client-Info Client Version: 0.12.0 04/11/2021 15:32:35 Client-Info Client OS: Windows 04/11/2021 15:32:35 Client-Info Server Version: 1.5.9 04/11/2021 15:32:35 Middleware::Response ERROR: Unable to get subsection 04/11/2021 15:32:35 Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 04/11/2021 15:32:35 Client-Info Client Version: 0.12.0 04/11/2021 15:32:35 Client-Info Client OS: Windows 04/11/2021 15:32:35 Client-Info Server Version: 1.5.9 04/11/2021 15:32:35 Middleware::Response ERROR: Unable to get subsection 04/11/2021 15:32:35 Middleware::Response ERROR: Object reference not set to an instance of an object. 04/11/2021 15:32:35 Service Sleeping for 61 seconds 04/11/2021 15:33:36 Middleware::Communication URL: http://10.255.41.42/fog/management/index.php?sub=requestClientInfo&configure&newService&json 04/11/2021 15:33:38 Middleware::Response Success 04/11/2021 15:33:38 Middleware::Communication URL: http://10.255.41.42/fog/management/index.php?sub=requestClientInfo&mac=C8:9C:DC:F8:DD:BD||00:00:00:00:00:00:00:E0&newService&json 04/11/2021 15:33:40 Middleware::Authentication Waiting for authentication timeout to pass
I think its maybe need an authentification with the adminastrator credentials from the domain but i don’t know where i can put them ?
Someone can help me ?
Thanks !
-
@btoffolon The communication between fog-client and FOG server is definitely not working right. Though I can’t tell you why because we are missing some essential information from the logs. You posted a fair amount of the log but the actual error that is causing the problem ist missing. Please post more of the log file.
-
@sebastian-roth Thanks for you answer, here the complete log file.
Thanks for your help
-
@btoffolon In the logs I found the following:
04/11/2021 14:08:56 Middleware::Response Invalid security token
Looks like a “simple hickup” in the communication between FOG server and fog-client because it worked just fine before that error. Please go to the FOG web UI open this particular host’s settings and click the “Resetz Encryption Data” button. This should fix it.
-
@sebastian-roth Badly it’s not working, but i don’t have log since yesterday with this host.
i had printer on a other hosts and try the same thing but it doesn’t work either and the log file does not have log since. I’m in a domain and some users can’t add printers, maybe i need to add credentials somewhere ? i deploy my computers with active directory integration and it’s works so i thought that was enought but maybe i forget something. -
@btoffolon said in Fog client does not add printers:
i had printer on a other hosts and try the same thing but it doesn’t work either and the log file does not have log since.
Well if you don’t see new logs coming in it might mean the FOGService is not running on this system. Check the Windows services list to see if it’s running.
-
@sebastian-roth Hi,
I check and the service is shutdown, when i try to start it i have an error from windows it said :Windows couldn’t start the service FogService on the local computer.
Error 1068 : The service or dependency group couldn’t startI search on the event viewer and i get this error :
Nom du journal :System Source : Service Control Manager Date : 08/11/2021 10:39:46 ID de l’événement :7001 Catégorie de la tâche :Aucun Niveau : Erreur Mots clés : Classique Utilisateur : N/A Ordinateur : SSRV-P01.D-JDARC.local Description : Le service FOGService dépend du service Service de la passerelle de la couche Application qui n’a pas pu démarrer en raison de l’erreur : Le service ne peut pas être démarré parce qu’il est désactivé ou qu’aucun périphérique activé ne lui est associé. XML de l’événement : <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" /> <EventID Qualifiers="49152">7001</EventID> <Version>0</Version> <Level>2</Level> <Task>0</Task> <Opcode>0</Opcode> <Keywords>0x8080000000000000</Keywords> <TimeCreated SystemTime="2021-11-08T09:39:46.388306000Z" /> <EventRecordID>7565</EventRecordID> <Correlation /> <Execution ProcessID="536" ThreadID="1944" /> <Channel>System</Channel> <Computer>SSRV-P01.D-JDARC.local</Computer> <Security /> </System> <EventData> <Data Name="param1">FOGService</Data> <Data Name="param2">Service de la passerelle de la couche Application</Data> <Data Name="param3">%%1058</Data> </EventData> </Event>
Maybe you have already seen this ?
-
@btoffolon I haven’t seen that happening before. Seems like the so called Service Control Manager (SCM) is having an issue on this machine?!
-
@sebastian-roth i will make son tests, i have others models of computers i come back to you. Thanks
-
@sebastian-roth hi,
does the fog client use an user ? my computers are on a domain maybe the service can’t launch because the user used is not allowed ? -
@btoffolon The fog-client (FOGService) is run as local SYSTEM account.