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.

Functions host fails to create "leases" collection

See original GitHub issue

I have multiple CosmosDBTriggers set up with LeaseCollectionName = "leases", CreateLeaseCollectionIfNotExists = true attributes. A console app deletes and recreates all collections (it also deletes the leases collection) on a regular basis. When a function is run, the associated trigger is supposed to create the leases collection if it doesn’t exist. Unfortunately, sometimes this collection is not created.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
adrianknight89commented, Jul 16, 2019

@kashimiz I will provide the requested information next time the issue happens. I added a lease collection prefix to every trigger since they were sharing the same collection and did not observe the issue since then. However, I deleted & created the collections only once after this change. If I observe the issue again, I will provide the information.

0reactions
v-anvaricommented, Dec 3, 2020

Hi @adrianknight89, We are proceeding to close the ticket since there were no visible errors. Please feel free to open a new issue in case of any further errors occur

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot issues with the Azure Functions trigger for ...
Your Azure function fails to start, with error message "The lease collection, if partitioned, must have partition key equal to id" This error ......
Read more >
Error in Azure function - Host lock lease acquired by ...
1 Answer 1 · The message Host lock lease acquired by instance ID '0000000000000000000000006000A33F' is not an error message, it's an expected ...
Read more >
How to fix "The listener for function was unable to start. Out of ...
Here is another pretty quick one – trying to debug Azure Functions fails with a confusing error message about failing to create a...
Read more >
Azure Cosmos DB Change Feed
Create Function to Add Documents to Cosmos DB ... Lease collections are a critical part of the Cosmos DB Change Feed. ... Host;...
Read more >
Error in Azure function - Host lock lease ... - appsloveworld.com
The message Host lock lease acquired by instance ID '0000000000000000000000006000A33F' is not an error message, it's an expected message, which means your ...
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