Ombi-app / Ombi

Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
http://ombi.io
GNU General Public License v2.0
3.71k stars 395 forks source link

Requested TV never appears as available #1951

Closed samwiseg0 closed 6 years ago

samwiseg0 commented 6 years ago

Ombi build Version:

V 3.0.2849

Update Branch:

Open Beta

Media Sever:

Plex

Media Server Version:

Plex 1.11.1.4760

Operating System:

Linux 3.10.0-693.2.2.el7.x86_64

Problem Description:

After a user requests any TV it is not appearing as Available. image

It sees the show...

Feb 05 23:57:26 Ombi[4788]: We already have show The Curse of Oak Island checking for new seasons
Feb 05 23:57:26 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0]

The EP cacher completes successfully... But it still shows as pending.

Feb 05 23:57:31 Ombi[4788]: Starting EP Cacher
Feb 05 23:57:32 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002]
Feb 05 23:57:32 Ombi[4788]: Total Epsiodes found for TV Shows = 7986
Feb 05 23:57:32 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002]
Feb 05 23:57:32 Ombi[4788]: Processed 150 more episodes. Total Remaining 7836
Feb 05 23:57:32 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002]
Feb 05 23:57:32 Ombi[4788]: Processed 150 more episodes. Total Remaining 7686
Feb 05 23:57:33 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002]
Feb 05 23:57:33 Ombi[4788]: Processed 150 more episodes. Total Remaining 7536
Feb 05 23:57:33 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002]
Feb 05 23:57:33 Ombi[4788]: Processed 150 more episodes. Total Remaining 7386
Feb 05 23:57:33 Ombi[4788]: info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002]

I checked the DB and the episode is cached. image

Edit: Same situation when requesting a tv show that is already available. It wont let you select it but it does not say available either. image

tidusjar commented 6 years ago

Please can you try the latest

samwiseg0 commented 6 years ago

same problem... version 3.0.2855.. also I ran the plex cacher after I upgraded just to be sure image

image

tidusjar commented 6 years ago

Logs?

samwiseg0 commented 6 years ago

Sure ombi.log

samwiseg0 commented 6 years ago

I ran the plex cacher manually a few more times and I did not see it try to recache the episodes... not sure if that is normal or not. ombi2.log

tidusjar commented 6 years ago

I notice you have ignored quite a few libraries, are you sure that you have all the correct libraries monitored in Ombi?

samwiseg0 commented 6 years ago

Yep... I am sure... The other libraries are scripts/dupes of the content. The 2 that are selected contain all movies and TV shows image Edit: I also double checked and it is going and caching the episodes from plex. journalctl was dropping the messages due to rate limiting. edit2: full logs attached... no errors ombi3.log

samwiseg0 commented 6 years ago

Any updates on this one? Anything I can do to help debug?

tidusjar commented 6 years ago

I've looked into it but I cannot figure it out.

Are you able to create me a local user on your ombi and send me the database? (ombi.db) to me on Discord or at tidusjar@gmail.com

samwiseg0 commented 6 years ago

Are you able to create me a local user on your ombi and send me the database? (ombi.db) to me on Discord or at tidusjar@gmail.com

Yep... sent via email...

FelixClements commented 6 years ago

I have the same problems. But somehow some of the TV series are well imported. Anything I can do to help? capture capture2

suckerfish commented 6 years ago

I have the same issue.

I'm on 3.0.2903 Docker + Unraid

TV and Movies both affected.

btw, I use a reverse proxy with letsencrypt/nginx but not sure if it plays any part in these issues. My base URLs do seem to be set correctly.

bcpletcher commented 6 years ago

This may be related to my issue as well, but only have tested with Movies since I dont add TV Shows as frequently #1995

tidusjar commented 6 years ago

Can you guys try the latest version.

samwiseg0 commented 6 years ago

Requested shows are now working... but when trying to request shows it still shows as pending... so one part is fixed but not the other.

image

Logs: ombilog.txt

tidusjar commented 6 years ago

@samwiseg00 That's via searching right?

tidusjar commented 6 years ago

It looks like that Doctor Who in Plex has a MovieDbId but no TvDbId or ImdbId, So what are you Plex agents setup for, for TV Shows?

samwiseg0 commented 6 years ago

yes it is via searching. I use the movie DB because if I use thetvdb the notifications from tautulli will not display the poster unless I use the movie db. image

tidusjar commented 6 years ago

Oh man this is awkward then.

TV Maze does not return TheMovieDb Id's for Tv Shows...So i'll never be able to match a TV Show if it's only got a MovieDBId.

samwiseg0 commented 6 years ago

Hmm... that sucks... is there a way that you could look it up and then store it?

samwiseg0 commented 6 years ago

Looks like you can get the tvdbID from TMDb? https://developers.themoviedb.org/3/getting-started/external-ids

tidusjar commented 6 years ago

I do not use TheMovieDb to lookup TV Shows, I use TV Maze and it looks like they do not pass back TheMovieDbId.

I could look into adding more lookups but this would slow down the search.

I do not plan to switch from using TV Maze.

samwiseg0 commented 6 years ago

I would be ok with a slower search... or if the lookup can be done when the cacher pulls the info from plex and then stores it? that way the searcher can still be quick...

Another option would be to be able to chose which searcher to use?

samwiseg0 commented 6 years ago

on a side note... digging through the logs on the latest version it looks like there was an issue with the cacher...

Feb 21 10:39:11 server Ombi[7536]: Exception thrown when attempting to cache the Plex Content
Feb 21 10:39:11 server Ombi[7536]: Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException: SQLite E
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.Data.Sqlite.SqliteCommand.<ExecuteDbDataReaderAsync>d__52.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__17.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.<ExecuteAsync>d__32.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of inner exception stack trace ---
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.<ExecuteAsync>d__32.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.<ExecuteAsync>d__10.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<SaveChangesAsync>d__61.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.<SaveChangesAsync>d__59.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Microsoft.EntityFrameworkCore.DbContext.<SaveChangesAsync>d__48.MoveNext()
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Ombi.Store.Repository.Repository`1.<AddRange>d__6.MoveNext() in C:\projects\requestplex\src\Ombi.Store\Repository\Repository.cs:line 41
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Ombi.Schedule.Jobs.Plex.PlexContentSync.<StartTheCache>d__17.MoveNext() in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 298
Feb 21 10:39:11 server Ombi[7536]: --- End of stack trace from previous location where exception was thrown ---
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
Feb 21 10:39:11 server Ombi[7536]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Feb 21 10:39:11 server Ombi[7536]: at Ombi.Schedule.Jobs.Plex.PlexContentSync.<CacheContent>d__16.MoveNext() in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 80
Feb 21 10:39:11 server Ombi[7536]: info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0]
tidusjar commented 6 years ago

I'll see what I can do. Regarding the above error I have a fix for it. I just need to test it tonight.

samwiseg0 commented 6 years ago

I'll see what I can do. Regarding the above error I have a fix for it. I just need to test it tonight.

Awesome!!! thanks again for all your hard work! All my users love this!

bcsteeve commented 6 years ago

I think this is still a problem.

I've updated to 3.0.2907.

I've changed my jobs to run every 5 minutes

I added a request for TV and Sonarr handles it and SAB downloads it... but it just doesn't ever show up as available. Furthermore... I got an email saying "user so-and-so made a request for" when I requested a MOVIE... but not for a TV show. Similarly, I got a "such and such is available" for the MOVIE, but not for the TV show.

I'd love to show you logs... but I have been having trouble with log generation. Once in awhile there will be a small, practically useless log file. But for the most part I can spent an hour in Ombi with not even a single log entry being generated.

tidusjar commented 6 years ago

What are your TV agents in Plex?

bcsteeve commented 6 years ago

I'm sure I left it on the default from years ago. Admittedly, I've never understood the Agents or what difference they make. Anyway, for TV I'm using "TheTVDB"

[Edit]: That's what it says when I click "edit" for TV Shows library. Under server settings -> Agents -> Shows I have under TheTVDB the following in order:

Local Media Assets (TV) TheTVDB Plex Theme Music Fanart.tv [unchecked] OpenSubtitles.org [unchecked] The Movie Database

tidusjar commented 6 years ago

Can you please provide some log files? I'd also suggest not running it every 5 minutes since depending on your lib size it could take longer.

bcsteeve commented 6 years ago

No, I can't provide log files. They are rarely created. Right now the folder is empty.

If five minutes isn't good... how about some guidance? Every hour (default) is kind of horrible for testing. Does five minutes or even less with with a very small test library?

tidusjar commented 6 years ago

What about the logs from stdout? You can manually run it from the Plex Settings page.

bcsteeve commented 6 years ago

Manually run "it"?

I have no idea about stdout logs.

tidusjar commented 6 years ago

Manually trigger the job that scans Plex, Check the console/terminal for errors

daibakes commented 6 years ago

Also experiencing this. Fresh install of Ombi, everything else is working as expected except requested TV show status remains at 'Processing Request'. Attempted to manually run cacher but had no effect.