Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MEDIA-SYNC - Job failed, check logs for more info #1349

Open
ShakeSp33r opened this issue Aug 31, 2020 · 7 comments
Open

MEDIA-SYNC - Job failed, check logs for more info #1349

ShakeSp33r opened this issue Aug 31, 2020 · 7 comments
Labels
bug Something isn't working release/0.2 Issues that should be included in the 0.2 release

Comments

@ShakeSp33r
Copy link

Bug report

Describe the bug
System start syncing the library from Jellyfin and stop after a couple of seconds with nothing synced.

To Reproduce
Steps to reproduce the behavior:

  1. Click on Movies
  2. "No movies found" screen appears
  3. Click on "Start Media Sync"

System (please complete the following information):

  • OS: Docker (linuxserver/embystat)
  • Browser Safari, Chrome, Opera, Firefox
  • Version 0.2.0-beta.23
  • Media server type Jellyfin 10.6.2

Additional context
2020-08-31 04:33:40.7708 [INFO] SYSTEM --------------------------------------------------------------------
2020-08-31 04:33:40.7961 [INFO] SYSTEM Booting up server with following options:
2020-08-31 04:33:40.7961 [INFO] SYSTEM Log level: Information
2020-08-31 04:33:40.7961 [INFO] SYSTEM Port: 6555
2020-08-31 04:33:40.7961 [INFO] SYSTEM URL's: http://*
2020-08-31 04:33:40.7961 [INFO] SYSTEM ConfigDir: /config
2020-08-31 04:33:40.7961 [INFO] SYSTEM DataDir: /config
2020-08-31 04:33:40.7961 [INFO] SYSTEM LogDir: /config/logs
2020-08-31 04:33:40.7961 [INFO] SYSTEM Updates enabled: False
2020-08-31 04:33:40.7961 [INFO] SYSTEM Running as service: False
2020-08-31 04:33:40.7961 [INFO] SYSTEM --------------------------------------------------------------------
2020-08-31 04:33:41.4409 [INFO] Starting Hangfire Server using job storage: 'Hangfire.MemoryStorage.MemoryStorage'
2020-08-31 04:33:41.4434 [INFO] Using the following options for Hangfire Server:
Worker count: 1
Listening queues: 'main'
Shutdown timeout: 1.00:00:00
Schedule polling interval: 00:00:05
2020-08-31 04:33:41.6079 [INFO] Server main server:251:3c2c927a successfully announced in 137.114 ms
2020-08-31 04:33:41.6119 [INFO] Server main server:251:3c2c927a is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler...
2020-08-31 04:33:41.6224 [INFO] Server main server:251:3c2c927a all the dispatchers started
2020-08-31 04:33:56.6612 [INFO] MEDIA-SYNC Starting job
2020-08-31 04:33:57.0149 [INFO] MEDIA-SYNC First delete all existing media and root media libraries from database so we have a clean start.
2020-08-31 04:33:57.0178 [INFO] MEDIA-SYNC Asking MediaServer for all root folders
2020-08-31 04:33:57.1464 [INFO] MEDIA-SYNC Found 6 root items, getting ready for processing
2020-08-31 04:33:57.1544 [INFO] MEDIA-SYNC Lets start processing movies
2020-08-31 04:33:57.7215 [INFO] MEDIA-SYNC Found 1358 movies in Movies library
2020-08-31 04:33:59.1359 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1516 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1558 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1558 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1558 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1558 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1558 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-08-31 04:33:59.1609 [ERROR] Error while running job System.ArgumentNullException: Value cannot be null. (Parameter 'entity')
at LiteDB.BsonMapper.ToDocument(Type type, Object entity)
at LiteDB.BsonMapper.ToDocument[T](T entity)
at LiteDB.LiteCollection1.GetBsonDocs(IEnumerable1 documents)+MoveNext()
at LiteDB.Engine.LiteEngine.<>c__DisplayClass30_0.b__0(TransactionService transaction)
at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func2 fn) at LiteDB.Engine.LiteEngine.Upsert(String collection, IEnumerable1 docs, BsonAutoId autoId)
at LiteDB.SharedEngine.Upsert(String collection, IEnumerable1 docs, BsonAutoId autoId) at LiteDB.LiteCollection1.Upsert(IEnumerable1 entities) at EmbyStat.Repositories.MovieRepository.<>c__DisplayClass1_0.<UpsertRange>b__0() at EmbyStat.Repositories.BaseRepository.ExecuteQuery(Action query) at EmbyStat.Repositories.MovieRepository.UpsertRange(IEnumerable1 movies)
at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.ProcessMoviesAsync(IReadOnlyList1 libraries, CancellationToken cancellationToken) at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.RunJobAsync() at EmbyStat.Jobs.BaseJob.Execute() 2020-08-31 04:33:59.1942 [WARN] MEDIA-SYNC Job failed, check logs for more info. 2020-08-31 04:33:59.3649 [WARN] Failed to process the job '9882794c-afcd-439b-be61-041b8e235289': an exception occurred. Retry attempt 1 of 2 will be performed in 00:00:22. System.ArgumentNullException: Value cannot be null. (Parameter 'entity') at LiteDB.BsonMapper.ToDocument(Type type, Object entity) at LiteDB.BsonMapper.ToDocument[T](T entity) at LiteDB.LiteCollection1.GetBsonDocs(IEnumerable1 documents)+MoveNext() at LiteDB.Engine.LiteEngine.<>c__DisplayClass30_0.<Upsert>b__0(TransactionService transaction) at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func2 fn)
at LiteDB.Engine.LiteEngine.Upsert(String collection, IEnumerable1 docs, BsonAutoId autoId) at LiteDB.SharedEngine.Upsert(String collection, IEnumerable1 docs, BsonAutoId autoId)
at LiteDB.LiteCollection1.Upsert(IEnumerable1 entities)
at EmbyStat.Repositories.MovieRepository.<>c__DisplayClass1_0.b__0()
at EmbyStat.Repositories.BaseRepository.ExecuteQuery(Action query)
at EmbyStat.Repositories.MovieRepository.UpsertRange(IEnumerable1 movies) at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.ProcessMoviesAsync(IReadOnlyList1 libraries, CancellationToken cancellationToken)
at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.RunJobAsync()
at EmbyStat.Jobs.BaseJob.Execute()
at EmbyStat.Jobs.BaseJob.Execute()
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

@mregni mregni added bug Something isn't working release/0.2 Issues that should be included in the 0.2 release labels Sep 1, 2020
@mregni
Copy link
Owner

mregni commented Sep 1, 2020

Thanks for logging this bug!
Looks like I need to add some more debug information to see what property is null for some odd reason. I will let you know asap when I can create a nightly build for this so you can rerun your tests.

@ShakeSp33r
Copy link
Author

I have excluded the Movies, and the Shows are now processing without an issue. I will after the scan finished do a Library update in Jellyfin, to make sure there are no deleted Movies & then try and process the Movies again... Will let you know.

@ShakeSp33r
Copy link
Author

Enabled Movies to scan, no luck.

Upgraded to Version 0.2.0-beta.24

Try another scan with Movies enabled. Still same thing:

2020-09-18 10:19:35.0518 [INFO] MEDIA-SYNC Found 865 movies in Movies library
2020-09-18 10:19:38.3532 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3589 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3610 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3610 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3610 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3610 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.3610 [WARN] BASE-HTTP-CLIENT Value cannot be null. (Parameter 'source')
2020-09-18 10:19:38.4546 [ERROR] Error while running job System.NullReferenceException: Object reference not set to an instance of an object.
at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.<>c.b__17_2(Movie x)
at System.Linq.Enumerable.WhereListIterator1.MoveNext() at LiteDB.LiteCollection1.GetBsonDocs(IEnumerable1 documents)+MoveNext() at LiteDB.Engine.LiteEngine.<>c__DisplayClass30_0.<Upsert>b__0(TransactionService transaction) at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func2 fn)
at LiteDB.SharedEngine.Upsert(String collection, IEnumerable1 docs, BsonAutoId autoId) at EmbyStat.Repositories.MovieRepository.<>c__DisplayClass1_0.<UpsertRange>b__0() at EmbyStat.Repositories.BaseRepository.ExecuteQuery(Action query) at EmbyStat.Repositories.MovieRepository.UpsertRange(IEnumerable1 movies)
at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.ProcessMoviesAsync(IReadOnlyList1 libraries, CancellationToken cancellationToken) at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.RunJobAsync() at EmbyStat.Jobs.BaseJob.Execute() 2020-09-18 10:19:38.6059 [WARN] MEDIA-SYNC Job failed, check logs for more info. 2020-09-18 10:19:38.8233 [WARN] Failed to process the job '5ae3e2f1-9a1a-436b-ba37-3ee757d7b46a': an exception occurred. Retry attempt 1 of 2 will be performed in 00:00:26. System.NullReferenceException: Object reference not set to an instance of an object. at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.<>c.<ProcessMoviesAsync>b__17_2(Movie x) at System.Linq.Enumerable.WhereListIterator1.MoveNext()
at LiteDB.LiteCollection1.GetBsonDocs(IEnumerable1 documents)+MoveNext()
at LiteDB.Engine.LiteEngine.<>c__DisplayClass30_0.b__0(TransactionService transaction)
at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func2 fn) at LiteDB.SharedEngine.Upsert(String collection, IEnumerable1 docs, BsonAutoId autoId)
at EmbyStat.Repositories.MovieRepository.<>c__DisplayClass1_0.b__0()
at EmbyStat.Repositories.BaseRepository.ExecuteQuery(Action query)
at EmbyStat.Repositories.MovieRepository.UpsertRange(IEnumerable1 movies) at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.ProcessMoviesAsync(IReadOnlyList1 libraries, CancellationToken cancellationToken)
at EmbyStat.Jobs.Jobs.Sync.MediaSyncJob.RunJobAsync()
at EmbyStat.Jobs.BaseJob.Execute()
at EmbyStat.Jobs.BaseJob.Execute()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

@mregni
Copy link
Owner

mregni commented Nov 6, 2020

This seems to be a different error. I'll see why you get a nullref exception and try to fix it.

@scicomrunner
Copy link

I ran into this same/similar problem no media would sync. exception errors base client can not be null etc. I noticed in the log that the movie count was not complete, it was the count of Movies/Collections not the full movie count. I went into my Jellyfin server and turned off Group Movies into Collections in the library settings, and bingo EmbyStat started to sync. Not a long term solution as I prefer to have my movies displayed in their collections when browsing (Jellyfin 10.6.4 EmbyStat .2.24)

@the-lazy-fox
Copy link

Please note that you need to select server type as Jellyfin and not Emby if you connect to a Jellyfin instance, it seems obvious but the option selector is not easy to see in the wizard.
Don't know if it's the root cause but might be.

@ShakeSp33r
Copy link
Author

I followed @scicomrunner thought and disabled the Group Movies into Collections, and now my null error is a thing of the past. It scanned TVShows & Movies, not just TVShows...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release/0.2 Issues that should be included in the 0.2 release
Projects
None yet
Development

No branches or pull requests

4 participants