question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restarted host is not picking up newly-deployed assemblies

See original GitHub issue

Spawning this from #1690, as it is a separate issue.

While investigating #1690, I noticed that a customer was seeing ~20 simultaneous requests to shutdown the host, yet the process never recycled. The newly deployed assembly was never loaded so the site had to be restarted to pick up the changes.

Details on finding site name:

| where PreciseTimeStamp between (datetime(2018-03-08 11:00) .. datetime(2018-03-08 12:10))
| where Summary contains "c67d3f04-1134-4b2d-a4c3-266878710784"

And then for seeing the full timeframe of this occurrence:

| where PreciseTimeStamp between (datetime(2018-03-08 11:00) .. datetime(2018-03-08 12:10))
| where AppName == "{sitenamefoundabove}"
| project PreciseTimeStamp, Pid, Details, Summary, FunctionName  

You’ll see that an environment restart was requested around 11:05, yet the process id never changed. That didn’t happen until the next request around 12:05, at which point the host shuts down and the process id changes.

@simonness, FYI

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:37 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
paulbatumcommented, Apr 28, 2020

@petro2050 Thanks for this additional info. It is possible for multiple workers to be assigned, even when load is low. This sometimes happens when we are running a platform upgrade. We start running your app on another machine so that we can unload it from the existing machine, and we do this with overlap so there is no downtime. I think what was happening here is as you said, an older version of the app running in parallel with the new version.

The fact that even after waiting 10 minutes, the old version was still running and you had to do a restart is suspicious. It sounds like something did not work right. But this is different to the problem I was worried about that can happen very occasionally with deployments that are not based on a package, where the app picks up only some of the file changes.

2reactions
andrewdmorenocommented, Oct 28, 2019

As an update to my last comment, this seems to be happening pretty consistently on our end (function deployment requires a manual restart in order for new code to run).

Just a heads up that we will probably be submitting a formal support request for this today to see if we can get some traction as perhaps it’s something we are doing wrong since no one else appears to be having this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assembly changes detected. Restarting host - azure
I am not deploying new code so not sure what is triggering the Assembly Change event to fire. I was running on the...
Read more >
Does replacing an assembly in the GAC cause a reset?
So, I have a web part I wrote that is not working correctly, I get "object reference not set to an instance of...
Read more >
Common error troubleshooting for Azure App Service and ...
Provides troubleshooting advice for the most common errors when hosting ASP.NET Core apps on Azure Apps Service and IIS.
Read more >
Troubleshoot on-premises deployments - Finance & ...
This article provides troubleshooting information for deployments of Microsoft Dynamics 365 Finance + Operations (on-premises).
Read more >
How to correctly reset, restart, and recycle IIS websites
You want to make sure that the web server has picked up new application or configuration changes. Your website is not responding/is slow....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found