Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Message: Unhandled exception while attempting agent update check.

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 10 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      Joseph.Saladino_7499
      last edited by

      Hello,

      Just recently, we have been having agents fall into a "Checking..." state, which has caused issues with deployments. When checking the logs for the agents from the servers page, there are no errors listed. Similarly, we do not see anything listed in the event viewer on the machines themselves.

      We did, however, notice an influx of the below error on the admin page:

      System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
      at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
      --- End of inner exception stack trace ---
      at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
      at System.IO.Stream.ReadByte()
      at Inedo.Agents.ServerConnection.<SendHandshakeAsync>d__15.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.Agents.InedoAgentClientBase.<ConnectAsync>d__24.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at Inedo.BuildMaster.Windows.ServiceApplication.ServerCheckerRunner.<CheckAgentAsync>d__10.MoveNext()
      

      All of the affected servers are running v46 of the InedoAgent, and are Windows 2008 or 2012R2. We are running v6.1.27 of BuildMaster

      Any help would be appreciated.

      Thanks!

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @Joseph.Saladino_7499
        last edited by

        Hi @Joseph-Saladino_7499 ,

        The message, "An existing connection was forcibly closed by the remote host" basically just means that the remote server abruptly hung-up the connection.

        Based on the fact that there's no errors happening on the remote servers (agents), then I wonder if it's related to firewalls blocking a connection?

        It could also be related to the agent refusing to connect because the AES encryption key is not correct. How are the agents configured (with / without encryption key?)?

        Hope this at least points in the direction.

        Thanks,
        Alana

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          Joseph.Saladino_7499 @atripp
          last edited by

          @atripp Hello! Thanks for the reply!

          We have the firewalls on the servers in question turned off, so I wouldn't think that would be the issue.

          We are using AES encryption for the agent connections. They seem to work fine for quite a while, then suddenly fall into the "Checking..." state after a random period of time. There doesn't seem to be any rhyme or reason as to why they start failing to connect. This started happening about a month ago, but we cannot figure out what might be causing the connection to drop.

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @Joseph.Saladino_7499
            last edited by

            Hi @Joseph-Saladino_7499 ,

            Hmm, that's really weird; the next thing I would try is to just restart all the machines (including the BuildMaster server). That's easy to do and the issue might go away. It could be a software error in the Windows networking stack 🤷

            It's possible that there's some intermediate network device that's interfering. Router, QoS device, etc. That's harder to diagnose, and would require some tracing ... starting by making sure that the RST packet is actually being received on the BuildMaster server (that's usually what indicates the error message), and then figuring out what device is sending it, and why.

            Our code doesn't work at the packet-level, but if the remote server (Inedo agent) is where the RST packets are coming from, it likely has to do with some obscure Windows setting... maybe even firmware on the network card. But at least something to look at.

            Cheers,
            Alana

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation