Azure Functions | Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups


Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups


Issue:
·       The function runtime is unable to start. Microsoft.Azure.WebJobs.Script.WebHost: Repository has more than 10 non-decryptable secrets backups.
·       Internal Server Error.

Solution:

Sometimes you may see this issue in your Azure functions. You check this error message again then it indicates something about secrets backups and secret keys and folder for any function app is stored in the following location of KUDU site,

D:\home\data\Functions\secrets

If you go to this location then you can see some snapshots file there.





Please note, Limit of these backup is 10 and if you have more backup then you will see this exception.

To solve this issue, you need to take the backup of this folder and delete “*.shapshot.*.json” files or secret folder itself to regenerate secret files.

If runtime can’t decrypt secrets then they will be regenerated and non-decryptable secrets will be stored in “*.snapshot.*.json” files.
Exception bellow start firing if number of snapshots > 10.

This can happen:
  1. If you delete the app and recreate it with the same name.
  2.  If some functions app uses the same storage account.


You may have to restart the Azure function after deleting the secret backups.

I believe this helps. Please share your query/feedback.



Other useful references,

Issue: Azure Functions: The Consumption pricing tier is not allowed in this resource group


Issue: Azure function is throwing one of the following exceptions
·       Unable to retrieve Functions Keys
·       We are not able to retrieve the keys for function
·       The function runtime is unable to start.
·       Function host is not running.
·       Internal Server error.
·       Service Unavailable.


Issue: Disable Azure functions





Post a Comment

Previous Post Next Post