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.7k stars 395 forks source link

Requests not marked available V 3.0.3950 #2626

Closed pyto00 closed 5 years ago

pyto00 commented 5 years ago

Ombi build Version:

V 3.0.3950

Update Branch:

Develop

Media Sever:

Plex

Media Server Version:

Version 1.13.9.5439

Operating System:

Ubuntu 18.04.1 LTS

Ombi Applicable Logs (from /logs/ directory or the Admin page):

2018-10-30 01:28:17.138 +00:00 [Error] StatusCode: TooManyRequests, Reason: , RequestUri: http://api.themoviedb.org/3/movie/103218?api_key=*************************************&append_to_response=videos,release_dates
2018-10-30 01:28:17.162 +00:00 [Error] Retrying RequestUri: http://api.themoviedb.org/3/movie/437667?api_key=************************************* Because we got Status Code: TooManyRequests
2018-10-30 01:28:17.172 +00:00 [Error] Retrying RequestUri: http://api.themoviedb.org/3/movie/318342?api_key=*************************************&append_to_response=videos,release_dates Because we got Status Code: TooManyRequests
2018-10-30 01:28:17.210 +00:00 [Error] Retrying RequestUri: http://api.themoviedb.org/3/movie/174209?api_key=*************************************&append_to_response=videos,release_dates Because we got Status Code: TooManyRequests
2018-10-30 01:28:17.215 +00:00 [Error] Retrying RequestUri: http://api.themoviedb.org/3/movie/17707?api_key=*************************************&append_to_response=videos,release_dates Because we got Status Code: TooManyRequests
2018-10-30 01:28:17.215 +00:00 [Error] Retrying RequestUri: http://api.themoviedb.org/3/movie/370391?api_key=************************************* Because we got Status Code: TooManyRequests
2018-10-30 01:28:17.230 +00:00 [Error] Retrying RequestUri: http://api.themoviedb.org/3/movie/103218?api_key=*************************************&append_to_response=videos,release_dates Because we got Status Code: TooManyRequests

Problem Description:

The requests are not marked available. It also doesnt work when manually running the sync in settings. There is no info in the log folder, i've added the log info, its only showing too many requests error, I don't think that that is the culprit.

Also I checked the Ombi.db and Plexepisode, PlexSeasonContent,PlexServerContent is completely empty. I have no idea anymore what I can do to get it working.

tidusjar commented 5 years ago

All the Plex content is now in the Ombi external db

pyto00 commented 5 years ago

OK, found that database. Nothing in the plex tables, although the Sonarr and Radarr tables are filled.

tidusjar commented 5 years ago

Is Plex actually envied the settings?

On Thu, 1 Nov 2018, 5:36 am pyto00, notifications@github.com wrote:

OK, found that database. Nothing in the plex tables, although the Sonarr and Radarr tables are filled.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tidusjar/Ombi/issues/2626#issuecomment-434936152, or mute the thread https://github.com/notifications/unsubscribe-auth/AGVaLKrYsQ7QP-kSasqZj4aRQW2iabDVks5uqohygaJpZM4YBlU6 .

pyto00 commented 5 years ago

Yes, plex is enabled in settings. Screenshots below

plex1 plex2

pyto00 commented 5 years ago

An update. When an requested movie has been downloaded and indexed. Ombi does set its status to " available " BUT only in the search tab. In the Requests tab it doesnt changes the movies status automatically. This is what I am talking about this whole time, I suddenly noticed that I was not clear about this.

This can be a feature request if this is not yet implemented.

tidusjar commented 5 years ago

So what you are seeing is that Ombi is probably not picking up the movie from your Plex server for some reason. Can you make sure all the metadata for the movie is correct and it's correctly matched inside Plex?

pyto00 commented 5 years ago

I don't know how to make it clear to you but i'll try it once more :). So I can assume that the metadata collected by plex is correct because Ombi does pick up the movie and list it as " available" in search But when U look at the same media in the requested list it doest mark it as available.

Here is an example: This is a movie on the " search " page. It is marked available because it is indexed by plex already. 1

This is the same movie on the " requests ' page, where it is not marked as available. I have to do it manually. 2

I always thought that when the movie is on plex, it automatically marks the movie as available on both the " search" and "requests" page

tidusjar commented 5 years ago

So when it's available in the search, it means that we have picked up the status of available from Radarr (it's slightly confusing why we do this, but I was just trying it out to get multiple statuses from multiple sources). But it get marked as available (properly available) when we find the media on Plex.

pyto00 commented 5 years ago

Ok , So that means that there still is somethin wrong with the connection to the plex server. Correct ?

tidusjar commented 5 years ago

Potentially. Do you mind jumping on discord so I can investigate further?

pyto00 commented 5 years ago

I'll hop on discord after work today.

magicscott commented 5 years ago

Any updates on this? I am seeing the exact same thing.

tidusjar commented 5 years ago

No update as of yet. I've been too busy to be able to look into these issues.

Have you tried the develop branch?

magicscott commented 5 years ago

I just installed the develop branch and still the same. ..

I requested a movie, it sent the request to Radarr and radarr successfuly got the movie and up into PLEX. If I search for the movie, it shows as avail, however it is still "Processing request" in the requests tab..

On Tue, Nov 13, 2018, 5:01 PM Jamie <notifications@github.com wrote:

No update as of yet. I've been too busy to be able to look into these issues.

Have you tried the develop branch?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tidusjar/Ombi/issues/2626#issuecomment-438454903, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4JQviGF08G50WYmh2SigTHWlZgJmzpks5uu0FAgaJpZM4YBlU6 .

tidusjar commented 5 years ago

How long did you wait? Since it's all in a job that needs to run. Go into your Plex settings and run the recently added job.

magicscott commented 5 years ago

I waited overnight, and I also ran it manually, still didn't work.. :(Anything else I can try?

On Wed, Nov 14, 2018 at 1:58 PM Jamie notifications@github.com wrote:

How long did you wait? Since it's all in a job that needs to run. Go into your Plex settings and run the recently added job.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tidusjar/Ombi/issues/2626#issuecomment-438777823, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4JQksysWkaxIyi-T7hrQeSwoDw2Ng_ks5uvGfAgaJpZM4YBlU6 .

-- ScottB

tidusjar commented 5 years ago

Can you jump on discord?

magicscott commented 5 years ago

sure. just got on it. Never used it before though :) magicscott is my name

On Wed, Nov 14, 2018 at 3:03 PM Jamie notifications@github.com wrote:

Can you jump on discord?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tidusjar/Ombi/issues/2626#issuecomment-438799157, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4JQg6P3mf8Sr4xSiC-lPAKIlPuLlziks5uvHcLgaJpZM4YBlU6 .

-- ScottB

tidusjar commented 5 years ago

Join the Ombi server :P

The link is on the readme (the Chat button)

magicscott commented 5 years ago

ha. Got it. I'm in.

goldenpipes commented 5 years ago

@tidusjar does it make a difference if during these sort of investigations we have folks run incognito? or does the cache not cache the stuff we are looking at here? just a thought.

tidusjar commented 5 years ago

It is. Strange issue. For some reason he cannot connect to Plex, I've been able to connect to his Plex server but he cannot. Still trying to work it out.

goldenpipes commented 5 years ago

👍

lastb0isct commented 5 years ago

I'm seeing the same issue.

pyto00 commented 5 years ago

Let me know if you need more specific information

tidusjar commented 5 years ago

Have you guys tried the develop version yet?

pyto00 commented 5 years ago

I am on version 3.0.3973 of develop. Issue is stillt the same. I see that there is a new version. I'm going to update now and report back.

goldenpipes commented 5 years ago

any updates @pyto00 ?

pyto00 commented 5 years ago

@goldenpipes Currently on version 3.0.4007. Ran the 'Recently Added Sync' to test if it would mark movies as available on the "Requests" page but it still does not. Here is an example.

Search: search

Requests: requests

magicscott commented 5 years ago

still The same issue here as well.

On Thu, Dec 6, 2018 at 3:08 PM pyto00 notifications@github.com wrote:

@goldenpipes https://github.com/goldenpipes Currently on version 3.0.4007. Ran the 'Recently Added Sync' to test if it would mark movies as available on the "Requests" page but it still does not. Here is an example. This movie is indexed by plex and watchable.

Search: [image: search] https://user-images.githubusercontent.com/16019397/49609006-8d8e6780-f99a-11e8-949b-c158253aa63d.PNG

Requests: [image: requests] https://user-images.githubusercontent.com/16019397/49609175-0b527300-f99b-11e8-9e9c-babe951732ca.PNG

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tidusjar/Ombi/issues/2626#issuecomment-445012558, or mute the thread https://github.com/notifications/unsubscribe-auth/AF4JQqR7TjZtQMN7VUPjygGY3K7_xC44ks5u2XlIgaJpZM4YBlU6 .

-- ScottB

lastb0isct commented 5 years ago

Same issue with me as well...

asegner commented 5 years ago

same issue

ma-karai commented 5 years ago

same

tarkah commented 5 years ago

Same here as well

tidusjar commented 5 years ago

Can someone email me their ombiexternal dB and include what movie or show is missing?

tarkah commented 5 years ago

So actually, I run mine in a proxmox lxc container and I stumbled upon a relevant Common Error in the Wiki...

Updating my locale to en_US.UTF-8, rebooting and running a manual sync on recently added fixed the problem on my end!

magicscott commented 5 years ago

tarkah!!!! You nailed it! I don't run in proxmox. However, I updated the locale to en_US.UTF-8 and BOOM! It worked.. been trying to figure this out for over a month! tidusjar, make a note :)

My automated system is now complete!

lastb0isct commented 5 years ago

Does anyone know how to set locale in docker? Will the docker container take a variable?

magicscott commented 5 years ago

Does anyone know how to set locale in docker? Will the docker container take a variable? Its pretty simple. check out: http://jaredmarkell.com/docker-and-locales/

tarkah commented 5 years ago

@magicscott Awesome!! I just happened to be the magical intersection of that issue and this one :)

ma-karai commented 5 years ago

its early in the morning for me, but my locale is set to en_US.UTF-8 and BOOM still the same problem :D

nebb00 commented 5 years ago

My locale is en_US.UTF-8 and I have the same problem. Movies fine. TV bad. Looks to be an API request problem. Too many lookups? API block?

2018-12-13 21:41:06.269 +01:00 [Error] StatusCode: NotFound, Reason: Not Found, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=350300
2018-12-13 21:41:06.269 +01:00 [Error] StatusCode: NotFound, Reason: Not Found, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=354068
2018-12-13 21:41:06.272 +01:00 [Error] StatusCode: NotFound, Reason: Not Found, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=354539
2018-12-13 21:41:06.274 +01:00 [Error] StatusCode: NotFound, Reason: Not Found, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=349935
2018-12-13 21:41:06.274 +01:00 [Error] StatusCode: NotFound, Reason: Not Found, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=273836
2018-12-13 21:46:06.935 +01:00 [Error] There was no season numer 1 in Sonarr for title "The Rookie"
2018-12-13 21:48:28.471 +01:00 [Error] StatusCode: TooManyRequests, Reason: Too Many Requests, RequestUri: http://api.tvmaze.com/shows/34379/episodes
2018-12-13 21:48:28.978 +01:00 [Error] StatusCode: TooManyRequests, Reason: Too Many Requests, RequestUri: http://api.tvmaze.com/lookup/shows?thetvdb=245821
2018-12-13 21:48:28.980 +01:00 [Error] StatusCode: NotFound, Reason: Not Found, RequestUri: http://api.tvmaze.com/shows/0/episodes
2018-12-13 21:48:29.715 +01:00 [Error] StatusCode: TooManyRequests, Reason: Too Many Requests, RequestUri: http://api.tvmaze.com/search/shows?q=Amateur
2018-12-13 21:48:32.643 +01:00 [Error] Something bad happened, ErrorMiddleware caught this
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Ombi.Api.TvMaze.Models.TvMazeEpisodes]' b                                        ecause the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.

TVMaze has this statement

API calls are rate limited to allow at least 20 calls every 10 seconds per IP address. If you exceed this rate, you might receive an HTTP 429 error. We say at least, because rate limiting takes place on the backend but not on the edge cache. So if your client is only requesting common/popular endpoints like shows or episodes (as opposed to more unique endpoints like searches or embedding), you're likely to never hit the limit. For an optimal throughput, simply let your client back off for a few seconds when it receives a 429. 

So based on that, is it possible that because I have shows with TVDB IDs which "do not exist" Ombi is retying and hitting the API limit? Just a thought.

I am also running v3.0.3988

pyto00 commented 5 years ago

@tidusjar I can send you mine. But this counts for every movie on plex. I request a movie radarr grabs it sabnzbd downloads it plex indexes it Done.

But Ombi doesn't get the feedback from plex to update the requested movies status.

pyto00 commented 5 years ago

@tidusjar @tarkah The problem seems to be solved! I run Ombi on Ubuntu 18.04.1 LTS I ran the following command

sudo localectl set-locale LANG=en_IN.UTF-8

Then rebooted the server. After that I ran the full manual sync. few seconds later my phone went crazy with notifications from Ombi, every movie has been marked as available.

So for me updating the locale to en_IN.UTF-8 solved this problem.

It doesnt have to be en_US.UTF-8 exactly. As en_IN.UTF-8 worked for me too.

tidusjar commented 5 years ago

That does explain a lot of the issues that I couldn't figure out!

nebb00 commented 5 years ago

I ran the command as suggested, rebooted and manually full sync. This did not resolve for me.

sudo localectl set-locale LANG=en_IN.UTF-8
lastb0isct commented 5 years ago

This did not solve my issue...I am migrating to a docker image today so we will see if that resolves it.

ma-karai commented 5 years ago

I am on docker, and i have this issue.

tidusjar commented 5 years ago

OK, can someone who still has the issue email me their OmbiExternal db please?

ma-karai commented 5 years ago

@tidusjar I send it to you this morning (my timezone )