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.

Moved show on server throws duplicate key error

See original GitHub issue

Hi im also seeing some sync errors. Im on EmbyStat version: 0.2.0-beta.13 Its probably my own doing i moves some shows to a different folder. 2019-11-13 18:16:55.6020 [ERROR] Error while running job LiteDB.LiteException: Cannot insert duplicate key in unique index ‘_id’. The duplicate value is ‘145990’. at LiteDB.IndexService.AddNode(CollectionIndex index, BsonValue key, Byte level, IndexNode last) at LiteDB.IndexService.AddNode(CollectionIndex index, BsonValue key, IndexNode last) at LiteDB.LiteEngine.InsertDocument(CollectionPage col, BsonDocument doc, BsonType autoId) at LiteDB.LiteEngine.<>c__DisplayClass22_0.<Insert>b__0(CollectionPage col) at LiteDB.LiteEngine.Transaction[T](String collection, Boolean addIfNotExists, Func2 action) at LiteDB.LiteEngine.InsertBulk(String collection, IEnumerable1 docs, Int32 batchSize, BsonType autoId) at LiteDB.LiteCollection1.InsertBulk(IEnumerable1 docs, Int32 batchSize) at EmbyStat.Repositories.ShowRepository.<>c__DisplayClass5_0.<UpsertShow>b__0() in d:\a\1\s\EmbyStat.Repositories\ShowRepository.cs:line 90 at EmbyStat.Repositories.BaseRepository.ExecuteQuery(Action query) in d:\a\1\s\EmbyStat.Repositories\BaseRepository.cs:line 29 at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.PerformShowSyncAsync(IReadOnlyList1 showsThatNeedAnUpdate, Library library, DateTime updateStartTime) in d:\a\1\s\EmbyStat.Jobs\Jobs\Sync\MediaSyncJob.cs:line 267 at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.ProcessShowsAsync(IEnumerable1 libraries, CancellationToken cancellationToken) in d:\a\1\s\EmbyStat.Jobs\Jobs\Sync\MediaSyncJob.cs:line 204 at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.RunJobAsync() in d:\a\1\s\EmbyStat.Jobs\Jobs\Sync\MediaSyncJob.cs:line 85 at EmbyStat.Jobs.BaseJob.Execute() in d:\a\1\s\EmbyStat.Jobs\BaseJob.cs:line 54

_Originally posted by @jaycedk in https://github.com/mregni/EmbyStat/issues/978#issuecomment-553506021_

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jaycedkcommented, Jan 7, 2020

You can close this 😃 Your hard work fixed the issue 😃

0reactions
mregnicommented, Jan 7, 2020

Thanks for the update!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Ignore "Duplicate Key" error in T-SQL (SQL Server)
If by "Ignore Duplicate Error statments", to abort the current statement and continue to the next statement without aborting the trnsaction then ...
Read more >
Duplicate key error when inserting into a table that has no ...
I'm having trouble with an insert statement that is throwing a duplicate error (shown below) on a table with zero records in it....
Read more >
Where to handle duplicate key exceptions in multy layer ...
So the simple answer is that each of your repositories needs to catch their own exceptions,and then translate them into an acceptable exception ......
Read more >
Duplicate key error in Jira server on creating issue via ...
Through the Database. If the duplicate field is not shown on the screen or if the screen cannot be opened _(error message or...
Read more >
duplicate keys in error.extensions object · Issue #3835
package name and version of Apollo showing the problem: apollo-server-errors@2.3.4. I believe the problem lies in 1 of 2 places, ...
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