Snapins deployment problem... SVN 7452



  • Hi,

    I’ve just deployed 2 computers, and same issue on both : image deployement is ok, but snapin won’t complete (like this from hours)
    0_1462284044960_Capture.JPG

    If I cancel one snapin, it re-appears some minutes later !

    In fog.log, error hash does not match

    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     03/05/2016 16:00 Client-Info Client Version: 0.10.3
     03/05/2016 16:00 Client-Info Client OS:      Windows
     03/05/2016 16:00 Client-Info Server Version: 7452
     03/05/2016 16:00 Middleware::Response Success
     03/05/2016 16:00 SnapinClient Snapin Found:
     03/05/2016 16:00 SnapinClient     ID: 559
     03/05/2016 16:00 SnapinClient     RunWith: msiexec.exe
     03/05/2016 16:00 SnapinClient     RunWithArgs: /i
     03/05/2016 16:00 SnapinClient     Name: LanSchool Prof 163
     03/05/2016 16:00 SnapinClient     File: Teacher.msi
     03/05/2016 16:00 SnapinClient     Created: 2016-05-03 10:16:23
     03/05/2016 16:00 SnapinClient     Args: /qn CHANNEL=163 ADVANCED_OPTIONS=1 STEALTH_MODE=1 LCS=192.168.10.57
     03/05/2016 16:00 SnapinClient     Action: 
     03/05/2016 16:00 Middleware::Communication Download: http://192.168.10.60/fog/service/snapins.file.php?mac=E8:40:F2:D1:C5:11&taskid=559
     03/05/2016 16:00 SnapinClient C:\Program Files (x86)\FOG\tmp\Teacher.msi
     03/05/2016 16:00 SnapinClient ERROR: Hash does not match
     03/05/2016 16:00 SnapinClient ERROR: --> Ideal: F82239B44586CF54FA794E145EDE3E77900050CB288360540B773E001A1A7742B83A5A9BA601188F230E093B3DBC4E8A07682B348F6FBB7921519202D637B5D8
     03/05/2016 16:00 SnapinClient ERROR: --> Actual: 2230F4C87D44C95B58695F9466C5265B219101CB939E6DC6CD490DB18657B404930DC2CCCB5EA380D5F282A7670F6A7565321FF89268DE7F7364C4F9753B40D8
    
    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     03/05/2016 13:32 Client-Info Client Version: 0.10.3
     03/05/2016 13:32 Client-Info Client OS:      Windows
     03/05/2016 13:32 Client-Info Server Version: 7452
     03/05/2016 13:32 Middleware::Response Success
     03/05/2016 13:32 SnapinClient Snapin Found:
     03/05/2016 13:32 SnapinClient     ID: 560
     03/05/2016 13:32 SnapinClient     RunWith: 
     03/05/2016 13:32 SnapinClient     RunWithArgs: 
     03/05/2016 13:32 SnapinClient     Name: WAPT
     03/05/2016 13:32 SnapinClient     File: waptagent.exe
     03/05/2016 13:32 SnapinClient     Created: 2016-05-03 10:16:23
     03/05/2016 13:32 SnapinClient     Args: /verysilent
     03/05/2016 13:32 SnapinClient     Action: 
     03/05/2016 13:32 Middleware::Communication Download: http://192.168.10.60/fog/service/snapins.file.php?mac=E8:40:F2:D1:C5:11&taskid=560
     03/05/2016 13:32 SnapinClient C:\Program Files (x86)\FOG\tmp\waptagent.exe
     03/05/2016 13:32 SnapinClient ERROR: Hash does not match
     03/05/2016 13:32 SnapinClient ERROR: --> Ideal: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>403 FORBIDDEN</TITLE>
    </HEAD><BODY>
    <H1>FORBIDDEN</H1>
    <P>YOU DON'T HAVE PERMISSION TO ACCESS /FOG/STATUS/GETSNAPINHASH.PHP
    ON THIS SERVER.<BR />
    </P>
    <HR>
    <ADDRESS>APACHE/2.4.10 (DEBIAN) SERVER AT 192.168.10.60 PORT 80</ADDRESS>
    </BODY></HTML>
    
     03/05/2016 13:32 SnapinClient ERROR: --> Actual: 62D87A27EFD18CFC95CBC8BA0B0B5802B297B0D9E1E834716B3261233461D9F0F8D4FE8320F441521B437DA4E26E0249EE1C84AA88ED4DB3EE33DAFA492C1792
    ------------------------------------------------------------------------------
    

    Thanks
    Matthieu



  • @Tom-Elliott Everything seems fine, thanks ;)


  • Senior Developer

    Found the issue with the object reference and corrected now in trunk again.


  • Senior Developer

    @Jbob Throwing 500 is done as a protocol system (hence the 403 error’s too.). I don’t get any control over what’s sent as the error message unfortunately.


  • Senior Developer

    Server is leaking old traffic format into 0.10.0+ traffic. @Tom-Elliott. As for your hashes not equaling, I have seen this before. When downloading a snapin if the FTP credentials are bad the server will print an error message to the file instead of throwing a 500 error. I’d consider checking your credentials. @Tom-Elliott you may want to consider throwing a 500 error instead for this scenario (even if it isn’t what he is having) as it makes the logs more useful in debugging.



  • @Tom-Elliott Test on another computer (Win 7)

    ------------------------------------------------------------------------------
    --------------------------------Authentication--------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 17:57 Client-Info Version: 0.10.6
     11/05/2016 17:57 Client-Info OS:      Windows
     11/05/2016 17:57 Middleware::Authentication Waiting for authentication timeout to pass
     11/05/2016 17:57 Middleware::Communication Download: http://192.168.10.60/fog/management/other/ssl/srvpublic.crt
     11/05/2016 17:58 Data::RSA FOG Server CA cert found
     11/05/2016 17:58 Middleware::Authentication Cert OK
     11/05/2016 17:58 Middleware::Communication POST URL: http://192.168.10.60/fog/management/index.php?sub=requestClientInfo&authorize&newService
     11/05/2016 17:58 Middleware::Response Success
     11/05/2016 17:58 Middleware::Authentication Authenticated
    
    
     11/05/2016 17:58 Bus Registering ParseBus in channel Power
     11/05/2016 17:58 Middleware::Communication URL: http://192.168.10.60/fog/management/index.php?sub=requestClientInfo&mac=E8:40:F2:0B:E9:0E&newService&json
     11/05/2016 17:58 Middleware::Response ERROR: Could not parse data
     11/05/2016 17:58 Middleware::Response ERROR: Unexpected character encountered while parsing value: #. Path '', line 0, position 0.
     11/05/2016 17:58 Middleware::Communication URL: http://192.168.10.60/fog/service/getversion.php?clientver&newService&json
     11/05/2016 17:58 Middleware::Communication URL: http://192.168.10.60/fog/service/getversion.php?newService&json
     11/05/2016 17:58 Service ERROR: Unable to get cycle data
     11/05/2016 17:58 Service ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
     11/05/2016 17:58 Middleware::Response Success
    
    ------------------------------------------------------------------------------
    ---------------------------------ClientUpdater--------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 17:58 Client-Info Client Version: 0.10.6
     11/05/2016 17:58 Client-Info Client OS:      Windows
     11/05/2016 17:58 Client-Info Server Version: 
     11/05/2016 17:58 Middleware::Response ERROR: Unable to get subsection
     11/05/2016 17:58 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
     11/05/2016 17:58 Service ERROR: Unable to run module
     11/05/2016 17:58 Service ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    ----------------------------------TaskReboot----------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 17:58 Client-Info Client Version: 0.10.6
     11/05/2016 17:58 Client-Info Client OS:      Windows
     11/05/2016 17:58 Client-Info Server Version: 
     11/05/2016 17:58 Middleware::Response ERROR: Unable to get subsection
     11/05/2016 17:58 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
     11/05/2016 17:58 Service ERROR: Unable to run module
     11/05/2016 17:58 Service ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    --------------------------------HostnameChanger-------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 17:58 Client-Info Client Version: 0.10.6
     11/05/2016 17:58 Client-Info Client OS:      Windows
     11/05/2016 17:58 Client-Info Server Version: 
     11/05/2016 17:58 Middleware::Response ERROR: Unable to get subsection
     11/05/2016 17:58 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
     11/05/2016 17:58 Service ERROR: Unable to run module
     11/05/2016 17:58 Service ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 17:58 Client-Info Client Version: 0.10.6
     11/05/2016 17:58 Client-Info Client OS:      Windows
     11/05/2016 17:58 Client-Info Server Version: 
     11/05/2016 17:58 Middleware::Response ERROR: Unable to get subsection
     11/05/2016 17:58 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
     11/05/2016 17:58 Service ERROR: Unable to run module
     11/05/2016 17:58 Service ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
    ------------------------------------------------------------------------------
    
    
    ------------------------------------------------------------------------------
    --------------------------------PrinterManager--------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 17:58 Client-Info Client Version: 0.10.6
     11/05/2016 17:58 Client-Info Client OS:      Windows
     11/05/2016 17:58 Client-Info Server Version: 
     11/05/2016 17:58 Middleware::Response ERROR: Unable to get subsection
     11/05/2016 17:58 Middleware::Response ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
     11/05/2016 17:58 Service ERROR: Unable to run module
     11/05/2016 17:58 Service ERROR: La référence d'objet n'est pas définie à une instance d'un objet.
    ------------------------------------------------------------------------------
    


  • @Tom-Elliott ok I’ll update.
    I have 2 more pc to deploy tomorrow, I’ll give you the result ;)


  • Senior Developer

    Can you update to the latest? I think the issue is it wasn’t returning any data with the new client as it makes the calls to checkin and download the files.



  • @Tom-Elliott ok it works if I deploy single snapin
    Windows firewall is disabled


  • Senior Developer

    @Matthieu-Jacquart And if you try to redeploy the snapin to the client?

    Do you run firewalls that might be blocking a client from accessing the FOG webpages?



  • @Tom-Elliott If I go to http://192.168.10.60/fog/status/getsnapinhash.php?filepath=/opt/fog/snapins/avast_business_online.exe
    I’ve got c3f2466d83da8f5f766280ff739894f344ee657985c40fb8acfb0b41772ccfbf76c0e6cffdb5c52d0ef7ff0781a82a8e19ea82bbcd886513f9462d51aca28c2c|5113288


  • Senior Developer

    @Matthieu-Jacquart And if you manually go to that page in the browser adding http://192.168.10.60/fog/status/getsnapinhash.php?filepath=/opt/fog/snapins/<yoursnapinfilehere>



  • Once again :

    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     11/05/2016 12:17 Client-Info Client Version: 0.10.6
     11/05/2016 12:17 Client-Info Client OS:      Windows
     11/05/2016 12:17 Client-Info Server Version: 7575
     11/05/2016 12:17 Middleware::Response Success
     11/05/2016 12:17 SnapinClient Snapin Found:
     11/05/2016 12:17 SnapinClient     ID: 591
     11/05/2016 12:17 SnapinClient     RunWith: 
     11/05/2016 12:17 SnapinClient     RunWithArgs: 
     11/05/2016 12:17 SnapinClient     Name: Avast
     11/05/2016 12:17 SnapinClient     File: avast_business_online.exe
     11/05/2016 12:17 SnapinClient     Created: 2016-05-11 12:02:28
     11/05/2016 12:17 SnapinClient     Args: 
     11/05/2016 12:17 SnapinClient     Action: 
     11/05/2016 12:17 Middleware::Communication Download: http://192.168.10.60/fog/service/snapins.file.php?mac=9C:B7:0D:CA:3F:8C|9C:B7:0D:CA:3F:8C|E8:40:F2:6A:51:CE|9C:B7:0D:CA:7B:B4&taskid=591
     11/05/2016 12:17 SnapinClient C:\Program Files (x86)\FOG\tmp\avast_business_online.exe
     11/05/2016 12:17 SnapinClient ERROR: Hash does not match
     11/05/2016 12:17 SnapinClient ERROR: --> Ideal: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>403 FORBIDDEN</TITLE>
    </HEAD><BODY>
    <H1>FORBIDDEN</H1>
    <P>YOU DON'T HAVE PERMISSION TO ACCESS /FOG/STATUS/GETSNAPINHASH.PHP
    ON THIS SERVER.<BR />
    </P>
    <HR>
    <ADDRESS>APACHE/2.4.10 (DEBIAN) SERVER AT 192.168.10.60 PORT 80</ADDRESS>
    </BODY></HTML>
    
     11/05/2016 12:17 SnapinClient ERROR: --> Actual: C3F2466D83DA8F5F766280FF739894F344EE657985C40FB8ACFB0B41772CCFBF76C0E6CFFDB5C52D0EF7FF0781A82A8E19EA82BBCD886513F9462D51ACA28C2C
     11/05/2016 12:17 Middleware::Communication URL: http://192.168.10.60/fog/service/snapins.checkin.php?taskid=591&exitcode=-1&mac=9C:B7:0D:CA:3F:8C|9C:B7:0D:CA:3F:8C|E8:40:F2:6A:51:CE|9C:B7:0D:CA:7B:B4&newService&json
    ------------------------------------------------------------------------------
    
    root@FOG:/opt/fog/snapins$ sha512sum avast_business_online.exe
    c3f2466d83da8f5f766280ff739894f344ee657985c40fb8acfb0b41772ccfbf76c0e6cffdb5c52d0ef7ff0781a82a8e19ea82bbcd886513f9462d51aca28c2c  avast_business_online.exe
    


  • I upgrade Fog this morning, delete all active tasks (snapins) and it seems to be ok if I try to deploy single snapin…
    To be continued, but I leave work for 4 days, have a good week-end !



  • @Tom-Elliott I tried on one snapin on one computer, and it’s ok.
    But I still have several computers waiting for 2 or 3 snapin deployement, and it din’t progress…


  • Senior Developer

    @Matthieu-Jacquart That does make sense in that regard. Is this still happening though?



  • @Tom-Elliott Yes, I agree !
    But just for test, as previous snapin didn’t complete and fog.log show hash error, I just tried once to delete and create new snapin, and it was ok ;)


  • Senior Developer

    @Matthieu-Jacquart I don’t understand what you mean. You shouldn’t have to delete and recreate the snapins at all.



  • I tried to delete one snapin and create it once again, and it’s ok.
    But I didn’t want to delete and re-create all my snapins ^^


  • Senior Developer

    For the record I have reverted v0.10.5’s ability to hash files larger than 2GB incase it was causing any part of this issue.


Log in to reply
 

417
Online

39.3k
Users

11.0k
Topics

104.6k
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.