web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

(0) ShareShare
ReportReport
Posted on by 1,214

Hi,

My build pipeline failed on "Create Deployable Package" step with following error:

"We stopped hearing from agent Hosted Agent. Verify the agent machine is running and has a healthy network connection. Anything that terminates an agent process, starves it for CPU, or blocks its network access can cause this error. "

agent-error.PNG

Is it because the build takes too long? We set the repository to public, so timeout shouldn't be an issue here, I suppose.

But why does the agent return this error?

Thank you.

I have the same question (0)
  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi Hairul,

    I agree that it should be 6 hours according to the documentation and I also mentioned that in my case I saw a clear error "The job running on agent Azure Pipelines 2 ran longer than the maximum time of 60 minutes.".

    But if you said that you have succesful runs within 1 hour, it could be something wrong with timeouts in public repos.

    But as Nikolaos mentioned, public projects are not the best option for customer projects. Maybe you can try to switch to private repo and set timeouts explicitly.

  • HAIRUL HAZRI Profile Picture
    1,214 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Yes Nikolaos. We are actually thinking to consolidate the code & reduce the number of models so that we can reduce the build time. But maybe in the future. After all, we need to consider deleting those models as well. Plus we have more important projects ongoing at the moment.

    For now, we just want to survive the all-in-one package enforcement.

  • HAIRUL HAZRI Profile Picture
    1,214 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi Sergei,

    Job timeout is set to 0. Should be able to run up to 6 hours here since the repos is public.

    job-timeout.PNG

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Perhaps it would anyway be a good idea to try to consolidate the code in fewer models. It would be easier for maintainability in the long run. You're not the only one who has chosen this "one model for each custom functionality" approach - also I was using it initially. And I've seen many others do the same thing. It indeed allowed to deploy customizations in a more granular way, but the correct approach would be instead to have separate dev and main branches, and merge only the "to-be-delivered" changes to main branch for deployment.

    The fact that Microsoft itself split the base application in numerous models and packages also indicated that it would make sense to split one's own code as well.

    The good news is that it should be quite straight forward to consolidate the code - mostly copy paste of files and/or fields/methods etc.

    This is not directly related to your question, just wanted to share my thoughts.

  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi Hairul,

    On your screenshot, I see timeout for the whole build job, but I was talking about agent job timeout ("Compile x++" agent job where all tasks are added)

    docs.microsoft.com/.../phases

  • HAIRUL HAZRI Profile Picture
    1,214 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi Nikolaos,

    not on each build, but more error than successful rates. One thing I noticed, when the build is successful, it took around 58, 59 minutes. That is barely less than an hour.

    Its frustrating getting the error only after waiting more than an hour.

  • HAIRUL HAZRI Profile Picture
    1,214 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi Sergei,

    Create Deployable Package task timeout already set to 0. Should be infinite here:

    create-package-timeout.PNG

    Also, build timeout is set to 2 hours:

    build-timeout.PNG

    But error received only after 1 hour 14 minutes.

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    By the way, do you get this error on each build? Does it always happen in the same step and/or after the same time?

  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi HAIRUL,

    You can set up a timeout on the agent job level. Recently I had an issue with 1-hour timeout on agent hosted build and I just increased it to 2 hours. But in my case, I saw an error about the timeout (so I'm not sure if your issue is related to timeout)

    pastedimage1604047127430v1.png

  • HAIRUL HAZRI Profile Picture
    1,214 on at
    RE: Build Automation "Stopped Hearing From Agent Hosted Agent" Error.

    Hi Nikolaos,

    we have more than 50 models to build. We didn't use version control before, so we create a model for each requirement. Before all-in-one deployable package, we deploy each requirement model by model. So we had no problem with build duration before. We only recently aware that this is not a good practice.

    Now that we have so many models, to build the all-in-one package would take this long. We had no choice but to make the repos public to bypass the timeout error somehow.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 882 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 723 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans