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.

NuCache.Content.db locked when app starts after inactivity on Azure

See original GitHub issue

Sometimes when our web app in Azure turns off due to inactivity, whenever someone tries to go to the website the websites throws the following exception:

-> Umbraco.Core.Exceptions.BootFailedException: Boot failed.

-> System.IO.IOException: The process cannot access the file 'D:\home\site\wwwroot\App_Data\TEMP\NuCache\NuCache.Content.db' because it is being used by another process.

FullException.txt UmbracoTraceLog.RD0003FF744804.20190910.zip

This seems to only happen when the site goes offline due to inactivity, and a restart causes the file to be unlocked and everything to work properly again.

We do not use deployments slots or application insights currently. And the settings as described in Issue 5035 have also been configured properly. I am currently trying out the “fix” to ignore the localDb file but obviously I hope for a more appropriate solution. If there are any more logs needed please do tell.

Reproduction

  • Release an Umbraco site to Azure
  • Wait until it goed offline due to inactivity
  • Try to go to a page

Umbraco version: 8.1.3


This item has been added to our backlog AB#3407

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
claushingebjergcommented, Apr 15, 2020

experienced this in vanilla 8.6 as well on normal hosting, not Azure

0reactions
vladicaivanovskicommented, Sep 30, 2022

The process cannot access the file ‘D:\local\Temp\UmbracoData\8c88e448981650d162c7b798b5f3e3de\NuCache\NuCache.Content.db’ because it is being used by another process.

Happening a lot in our Umbraco Azure website v8.18.4. We have deployment slots and proper settings as suggested for Azure websites, but still we see this frustrating error very often which crashes the whole site and requires restart in order to get up and running.

Please help

Read more comments on GitHub >

github_iconTop Results From Across the Web

NuCache.Content.db is locked. Site is not rendering.
This site is running as an Azure App Service. I updated appsettings.json as described on the "Running Umbraco On Azure Web Apps" page....
Read more >
usync nucachecontentdb is being used by another process ...
I see this error intermittently, after adding uSync but not before. I need to re-start the website or app pool to fix this....
Read more >
Quick Tip: How to disabled the Umbraco Nucache local file
How to disable the local NuCache file if experiencing regular locking issues.
Read more >
Understand and resolve Azure SQL blocking problems
Blocking in a database in Azure SQL Database occurs when one session holds a lock on a specific resource and a second SPID...
Read more >
Umbraco Disable NuCache Database Composer
i have a problem (in log file): "An unhandled exception was thrown by the application.","@l":"Error","@x":"System.IO.
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