Asset Discovery - Agent File-Transfer List loop

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 4

      Issue Summary

      When using Agent File-Transfer List setting in Discovery tool to copy configuration files between Discovery Tool and Discovery Agents, if the source file is not within Discovery tool installation directory, Discovery tool gets stuck in a loop and Discovery logs and Discovery Agents logs increase their size dramatically.

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Install Discovery Agent in a Windows OS as per Set up Discovery Agent (Optional)
        • Unzip Discovery_3.1.4.zip in \Documents\Discovery_3.1.4 
        • Use the installer package: Discovery_Agent_Setup_x64
        • By default, installation directory will be "C:\Program Files\Atlassian\Discovery Agent Installer"
      2. Rename the location of the installation folder from \Documents\Discovery_3.1.4 to \Documents\Discovery_3.1.4_old
      3. Install Discovery tool in another Windows OS as per Set up Insight Discovery
        • Go to C:\Program Files and create a directory “Atlassian”
        • Unzip Discovery_3.1.4.zip into C:\Program Files\Atlassian directory
        • Navigate to the Discovery directory and type "discovery.exe -s" to access the Assets Discovery tool's setup mode.
        • Go to Service tab and add the Agent Ip address to Agent IP Range field
        • Add a file stored outside of the Discovery directory.
        • You can create a txt file within C:\Users\Administrator\Documents\new.txt.txt
        • Select the file just created
        • If Discovery is not enabled as a service, you can manually trigger the transfer:
          • As an administrator on your Windows, open a command-line interpreter window.
          • Navigate to your Asset Discovery directory and type discovery -stad in your terminal or command-line interpreter.

      Expected Results

      As designed, file should not be transfer as it is not within the Discovery directory

      Actual Results

      Discovery tool gets stuck in a loop and never stops.
      The below exception is thrown in the discovery.log file:

      12/19/2022 10:30:23 AM : --------------- Start Agent checks (3.1.4.0) ---------------
      12/19/2022 10:30:23 AM : Agent IP-Range: 10.227.30.209
      12/19/2022 10:30:23 AM : Generating list of IP's to scan from range: 10.227.30.209
      12/19/2022 10:30:23 AM : Getting 1 IP's to scan.
      12/19/2022 10:30:23 AM : Starting AgentClient to 10.227.30.209:51337
      12/19/2022 10:30:23 AM : AgentClient to 10.227.30.209:51337 connection state change to Connected
      12/19/2022 10:30:23 AM : Reveive Message: HELLO | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 37
      12/19/2022 10:30:23 AM : Send Hello
      12/19/2022 10:30:23 AM : Reveive Message: DATA_AVAILABLE | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 53
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:23 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:23 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:23 AM : Send Get Delta List
      12/19/2022 10:30:23 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:23 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:23 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:24 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:24 AM : Send Get Delta List
      12/19/2022 10:30:24 AM : Reveive Message: SEND_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 630
      12/19/2022 10:30:24 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      12/19/2022 10:30:24 AM : Reveive Message: GET_DELTA_LIST | FromName: Discovery-Agent | FromID: 243D3 | FromRemoteEndPoint 10.227.30.209:51337 | ObjSize: 0
      12/19/2022 10:30:24 AM : Send file: C:\Users\Administrator\Documents\new.txt.txt
      

      The same exceptions could be seen in the Discovery Agent logs.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Viktor Kryvoruchko (Inactive)
            Reporter:
            Pablo Bartolome (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: