Migration doesn't work - Azure Cosmos MongoDB
MauriceEberle opened this issue · 2 comments
Hello guys,
I'm trying to use hangfire with azure cosmos mongodb.
But every time I build my project, I get this error:
"System.TimeoutException: "Could not complete migration. Never acquired lock within allowed time: 00:02:00
Either another server did not complete the migration or migration was abruptly interrupted
If migration has been interrupted you need to manually delete 'hangfire.migrationLock' and start again."
"
I already checked like 99% of the web, but couldnt find any solution.
I know that this issue already existed years before and got fixed, but it looks like the problem returned.
Hangfire is correctly implemented and I tested it local with normal mongo implementation - No problems. But when i use the implementation for cosmos db, the timeout happens. On cosmos db the "jobs" - folder got created, but the rest of migration is missing.
Thanks.
Sorry for the late reply. I have been on vacation.
Did you use the "UseCosmosStorage" extension method?
Thanks
closing due to inactivity