AnsweredAssumed Answered

Cloud Agent receives responses but fails to transmit, with error 121152

Question asked by John Skinner on Dec 8, 2017
Latest reply on Jan 19, 2018 by Johnny Five

Anyone know what may be causing this error?

 

We have deployed the cloud agent to many systems, but a group of them all seem to have errors transmitting or receiving data from the server. These client never upgrade past initial installation.

 

I have included examples of a successful communication and a failed communication from the same client below.

These successes and failures piggyback each other over and over in the client log.

 

Example of successful connection:

12/08/2017 7:40:10.0458 [4B30]: Information: Scheduling Thread: RUNNING event 'INTERVAL_EVENT_CAPI'...
12/08/2017 7:40:10.0552 [4B30]: Warning:
12/08/2017 7:40:10.0552 [4B30]: Information: Agent CAPI json: {"Data":{"Agent":{"CustomerID":"XXX","ActivationID":"ZZZZ","AgentID":"YYYY","AgentVersion":"1.5.6.46","CapiVersion":"1.0","Platform":"WINDOWS"},"Client":{"ComputerName":"AAAA","NetBiosName":"AAAA","IPv4":"1.2.3.4"},"Synchronization":{"Sequence":"1337","RetryCount":"1"},"Resources":{"Config":"72F58379-FDC1-47C1-A76F-88C38D958666","Binary":"6155225D-3DF8-4EAF-9A8B-53EAA741F94A"},"Status":{"Capi":{"Time":"2017-12-08T12:55:40Z","ID":"","OsStatus":12152,"HttpStatus":0,"RetryCount":0}},"ScanManagement":{"Manifests":[{"ID":"03C0D6B4-7217-4EA0-BFC5-670CD6202BCF","PendingDelta":{"ID":"7D4D22DE-5BFA-4ABA-8DC8-C6694398EE65","Hash":-1609727563974274441}},{"ID":"39FF7445-F7CA-430D-9D06-1DE66B916FD2"}]}}}
12/08/2017 7:40:11.0255 [4B30]: Information: Detecting proxy for [secure] URI:443 - HTTPS://qagpublic.qg1.apps.qualys.com/CloudAgent/v1.0/customer/XXXX/agent/F7A8D5CA-6AA6-4268-A7FC-BF25BE43B3D1/CAPI...
12/08/2017 7:40:11.0271 [4B30]: Information: No WinHTTP proxies defined. Detecting auto proxy...
12/08/2017 7:40:11.0271 [4B30]: Information: No proxies found.
12/08/2017 7:40:11.0786 [4B30]: Information: Retrieving server HTTP(S) response...
12/08/2017 7:40:11.0864 [4B30]: Information: Http status code received: 200
12/08/2017 7:40:11.0880 [4B30]: Information: No more bytes available from server. 400 bytes received.
12/08/2017 7:40:11.0880 [4B30]: Information: Server CAPI json: {"Data":{"Synchronization":{"NextSequence":1338},"Resources":{"Config":"72f58379-fdc1-47c1-a76f-88c38d958666","Binary":"15015e01-19e8-450d-9bcd-3da71cf5ea7a"},"ScanManagement":{"CompletedDeltas":["7d4d22de-5bfa-4aba-8dc8-c6694398ee65"],"Resources":{"Manifests":[{"ID":"03c0d6b4-7217-4ea0-bfc5-670cd6202bcf","ScanInterval":14400},{"ID":"39ff7445-f7ca-430d-9d06-1de66b916fd2","ScanInterval":14400}]}}}}
12/08/2017 7:40:11.0896 [4B30]: Information: Reset the backoff multiplier to: 1.0
12/08/2017 7:40:11.0896 [4B30]: Information: Next Sequence No: 1338.
12/08/2017 7:40:11.0911 [4B30]: Information: Completed Snapshot: 7d4d22de-5bfa-4aba-8dc8-c6694398ee65.
12/08/2017 7:40:15.0255 [4B30]: Information: Scheduling Thread: FINISHED running event 'INTERVAL_EVENT_CAPI'. Result: Error: 0, "The operation completed successfully.
"..
12/08/2017 7:40:15.0317 [4B30]: Information: INTERVAL_EVENT_CAPI Interval: 0 days, 0 hours, 29 minutes, 56 seconds
12/08/2017 7:40:15.0317 [4B30]: Information: INTERVAL_EVENT_EXECUTE_SETUP Interval: -486 days, -16 hours, -36 minutes, -51 seconds (Disabled)
12/08/2017 7:40:15.0333 [4B30]: Information: INTERVAL_EVENT_SCAN (Manifest: {03C0D6B4-7217-4EA0-BFC5-670CD6202BCF}) Interval: 0 days, 2 hours, 2 minutes, 33 seconds (Enabled)
12/08/2017 7:40:15.0333 [4B30]: Information: INTERVAL_EVENT_SCAN (Manifest: {39FF7445-F7CA-430D-9D06-1DE66B916FD2}) Interval: 0 days, 0 hours, 12 minutes, 41 seconds (Enabled)
12/08/2017 7:40:15.0349 [4B30]: Information: Scheduling Thread: WAITING 761 seconds for event 'INTERVAL_EVENT_SCAN'.

 

Example of failed transmission:

12/08/2017 12:08:21.0481 [4B30],Information: Scheduling Thread: FINISHED running event 'INTERVAL_EVENT_UPLOAD_CHANGELIST'. Result: Error: 0, "The operation completed successfully."..
12/08/2017 12:08:21.0559 [4B30],Information: INTERVAL_EVENT_CAPI Interval: 0 days, 0 hours, 3 minutes, 47 seconds
12/08/2017 12:08:21.0574 [4B30],Information: INTERVAL_EVENT_EXECUTE_SETUP Interval: -486 days, -21 hours, -4 minutes, -57 seconds (Disabled)
12/08/2017 12:08:21.0574 [4B30],Information: INTERVAL_EVENT_SCAN (Manifest: {03C0D6B4-7217-4EA0-BFC5-670CD6202BCF}) Interval: 0 days, 2 hours, 15 minutes, 41 seconds (Enabled)
12/08/2017 12:08:21.0590 [4B30],Information: INTERVAL_EVENT_UPLOAD_CHANGELIST (Manifest: {39FF7445-F7CA-430D-9D06-1DE66B916FD2}) Interval: 0 days, 0 hours, 0 minutes, -3 seconds (Enabled)
12/08/2017 12:08:21.0590 [4B30],Information: Scheduling Thread: WAITING 0 seconds for event 'INTERVAL_EVENT_UPLOAD_CHANGELIST'.
12/08/2017 12:08:21.0606 [4B30],Information: Scheduling Thread: RUNNING event 'INTERVAL_EVENT_UPLOAD_CHANGELIST' (Manifest: {39FF7445-F7CA-430D-9D06-1DE66B916FD2})...
12/08/2017 12:08:21.0606 [4B30],Information: Detecting proxy for [secure] URI:443 - HTTPS://qagpublic.qg1.apps.qualys.com/CloudAgent/v1.0/customer/XXXX/agent/YYYY/Delta/D5CB7028-E99B-4F56-B3D6-402B3358CC8E/finalize...
12/08/2017 12:08:21.0621 [4B30],Information: No WinHTTP proxies defined. Detecting auto proxy...
12/08/2017 12:08:21.0621 [4B30],Information: No proxies found.
12/08/2017 12:08:21.0715 [4B30],Information: Retrieving server HTTP(S) response...
12/08/2017 12:08:21.0715 [4B30],Error: WinHttpReceiveResponse() failed to receive initial response from server: (Error: 12152)
12/08/2017 12:08:21.0731 [4B30],Error: Failed to retrieve server response to web request: (Error: 12152)
12/08/2017 12:08:21.0731 [4B30],Error: Failed to send delta Finalize to web service: Error: 12152, URI("https://qagpublic.qg1.apps.qualys.com/CloudAgent/v1.0/customer/XXXX/agent/YYYY/Delta/D5CB7028-E99B-4F56-B3D6-402B3358CC8E/finalize"), Port(443), Secure(1)
12/08/2017 12:08:21.0731 [4B30],Error: Failed to upload resource to server. Error: (Error: 12152)
12/08/2017 12:08:21.0746 [4B30],Information: Set the backoff multiplier to: 1.500

Outcomes