NPC fails to sync with NetVoyant Request timed out PullDeviceItems Thread Aborted

Document ID : KB000048740
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

NPC fails to sync with NetVoyant: Request timed out.
The following error is displayed in the NetVoyant datasource log in NPC:
Entry for NetVoyant@[IP address]

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:

--
<html>
    <head>
        <title>Request timed out.</title>
        <style>
         body {font-family:"Verdan
Source: Device Manager
Severity: Error
Occurred On: [Date and time of the event]

The following message is also seen in the PollerWebServiceLog in the NetVoyant Console:
WebService: [0.65625] NetVoyantService - GetDeviceList(): nqPoller
PullDeviceItems - back from GetDeviceList
Caught exception in NPC Sync PullSystem.Threading.ThreadAbortException: Thread was being aborted.
   at nqpoller.PullSyncRequest.AddDeviceItem(DataTable items, DataRow src)
   at nqpoller.PullSyncRequest.PullDeviceItems(SyncTime syncTime, SyncUpdateState& syncUpdateState)
   at nqpoller.PullSyncRequest.Pull(SyncTime syncTime, SyncUpdateState syncUpdateState)

Solution:

Timeout is caused by a large number of DNS lookups being performed by NPC during NV device sync.
As long as they're at NV 7.1.25 patched, you can adjust the DeviceBatchSize in the PollerWebService Web.config to reduce the batch size of the devices being synched and consequently limit the number of DNS lookups being performed.

Editing the web.config file

  • Open D:\NetVoyant\Portal\WebServices\PollerWebService\Web.config in Notepad.
  • Add the following lines under the <appSettings> tag or edit if not already present:
    <add key="poller.npc.BatchSize" value="5000"/>
    <add key="poller.npc.DeviceBatchSize" value="500"/>
  • Save the file.
  • Run the command "iisreset".
  • Restart the NetVoyant Service Manager.
  • Verify that NPC<->NV Sync Now Completes Successfully