Closed vulcanjedi closed 5 years ago
Looks like it's not connected to Plex correctly, please double check your hostname, port and token
Thanks @tidusjar I tried to use no SSL, switch PMS to preferred. I grabbed all the tokens and url from Tautillli instance which runs perfect for ages now. I also tried the hostname/IP w/ the Docker GW address of 172.17.0.1 which also Successfully Test connects from the Ombi Admin Console. Whats odd is a handful of series and films sort of show up and I dont know why they work and the rest dont. Should be more an all/nothing thing. When I try to put the ###-###-#-###.asdfasfasfasdfasdfasdfas.plex.direct:32400/library/metadata/365831(directly) from the logs in my browser i get 401 unauthorized 'errors' but im sure I need to pass auth token in somehow. Pinging the ###-###-#-###.asdfasfasfasdfasdfasdfas.plex.direct does resolve the correct local IP of my host server. From the FAQ https://plex.tv/users/cpms does not work anymore apparently and not sure applicable as this is a self hosted PMS instance. The only other place to get the hostname / token / machine identifier I saw was in my seemingly working Tautulli instance. (also a linuxserver docker image)
If you have any insights how to validate the hostname/port/token further Im more than willing to try. My friends Ombi instance w/ Emby seems awesome.
Invalid URI: The hostname could not be parsed. ---> System.UriFormatException:
What's the format of your hostname?
If you mean by hostname by the field that says "hostname/IP" on the Plex Configuration in Ombi. it is
192-168-1-147.c74ea3fw93ed5e6ca87e232fg8a1a9d6.plex.direct (this was taken from my Tautulli admin page)
I have also tried the docker GW IPs of 172.17.0.1 and 172.18.0.1 (i'm using plex in docker network host mode) which also test connect ok but don't work per the logs. I can logon and see the libraries in addition to the test connection as well.
I also just reentered my creds in the Plex config page on Ombi and selected the server from drop down list my account has server access to there. Mine was the first in the list. Selected. It created a new Plex Authorization Token It prepopulated with the IP of the docker host 192.168.1.147 and different port failed test connection. I put port 32400 and turned off SSL and it passed test connection but the logs say this:
fail: Ombi.Api.Api[1000] StatusCode: Unauthorized, Reason: Unauthorized, RequestUri: https://plex.tv/users/sign_in.json fail: Ombi.Api.Api[1000] StatusCode: Unauthorized, Reason: Unauthorized, RequestUri: https://plex.tv/pms/servers.xml fail: Ombi.Controllers.External.TesterController[1000] Could not test Plex System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Threading.Tasks.ValueTask
1.get_Result() at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Threading.Tasks.ValueTask
1.get_Result() at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask1 creationTask) at System.Threading.Tasks.ValueTask
1.get_Result() at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Ombi.Api.OmbiHttpClient.SendAsync(HttpRequestMessage request) in C:\projects\requestplex\src\Ombi.Api\OmbiHttpClient.cs:line 61 at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 38 at Ombi.Api.Plex.PlexApi.GetStatus(String authToken, String uri) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 97 at Ombi.Controllers.External.TesterController.Plex(PlexServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 246 fail: Ombi.Controllers.External.TesterController[1000] Could not test Plex System.Net.Http.HttpRequestException: Connection refused ---> System.Net.Sockets.SocketException: Connection refused at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) at System.Threading.Tasks.ValueTask
1.get_Result() at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Threading.Tasks.ValueTask1.get_Result() at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask
1 creationTask) at System.Threading.Tasks.ValueTask1.get_Result() at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task
1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Ombi.Api.OmbiHttpClient.SendAsync(HttpRequestMessage request) in C:\projects\requestplex\src\Ombi.Api\OmbiHttpClient.cs:line 61 at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 38 at Ombi.Api.Plex.PlexApi.GetStatus(String authToken, String uri) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 97 at Ombi.Controllers.External.TesterController.Plex(PlexServers settings) in C:\projects\requestplex\src\Ombi\Controllers\External\TesterController.cs:line 246 info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0]
Ok, so those settings seem good so far, but the fact that we are getting a 401 back from Plex means that your Auth Token is not valid.
I have all my plex info in ombi, it tests successfully, shows my servers and librarys. When I hit manually run full sync, the pop says triggered the plex full sync, but it never show library. Any ideas?
Need log files
It's stating the connection was refused. So ombi cannot talk to Plex. Make sure it has access, check the hostname/ip, firewall etc
is there something within plex that has to be enabled? because as a test I installed ombi on my personal plex server at home and I get the same result. No firewall, on the same local network Thanks
Not sure this is related or not... but before I save my PMS config I'll put user/pass, I can select server list, and libaries and test connection. However after that, saving,, if I hit Load Servers button again i get:
Error When Requesting Plex Servers Please make sure your username and password are correct
Is this expected behavior? That I'd have to reenter user/pass again? Is this possibly related to issue why library indexing isnt working quite right in my ombi?
same thing for me vulcanjedi, user and pass doesn't save
So the load servers is talking to Plex.tv when you enter in the username and password (We authenticate with Plex.Tv to load the servers).
Once you choose a server it will populate the left hand side of the screen with the media server information, this is what Ombi uses to connect to plex. Ombi does not store the username and password for your plex account at all. So the load servers functionality is more of a "helper" to fill in the plex server information for you.
yes, my user and pass are accepted, it shows me server list, I choose my server, ensure the ip and port are correct, click load librarys, click full sync. the pop up in the upper right says triggered full snyc, but that's as far as it goes. even when ombi is on the same lan as plex server
Then I am not sure, It seems that the Plex server is refusing the connection according to your logs. Did you double check to make sure the Auth Token is correct?
the machine id and auth token are populated automatically
Yes I understand that, but can you double check to make sure your auth token is correct, That token is used to authenticate the communication between ombi and plex. You can check your auth token by following this: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
You were right, the token was wrong, what about machine id, is that the mac address of the network adapter?
if the info is correct, should it show me my library loading, or some kind of indication? I still haven't gotten anywhere
You were right, the token was wrong, what about machine id, is that the mac address of the network adapter?
My token was different too. My Machine ID is correct but using this method of viewing the XML my auth token isnt the same as the one the Ombi gui pulls back. https://support.plex.tv/articles/201638786-plex-media-server-url-commands/ all that said; still dont think mine is working.
So you've updated your token and saved it.
Why don't you think it's working?
Open up the ombiexternal.db with SQLite and query the PlexContent table. If there are rows returned then ombi is correctly syncing with Plex.
I have barely any TV stuff show up on obmi but the db has a bunch of stuff for TV. Some of the movies I've been checking show up in the db but they dont seem to have an IMDB or moviedb ID Any of those missing IDs dont show up in the Ombi page.
so if someone requests a movie that's in my library, does ombi show that it already exists? or show my library?
so if someone requests a movie that's in my library, does ombi show that it already exists? or show my library?
It should tell you. but yes my problem is my sonarr/radar don't have my storage linked so i dont want people pulling dupes.
I use application MediaCompanion to prepopulate NFOs. The NFOs have moviedb / tvdb / imdb IDs so not sure why not pulling in here and the NFO agent in Plex. From the XML in Plex the guid="com.plexapp.agents.xbmcnfo://tt#####?lang=xn" are both correct for one movie and its sequel (the original shows Available in Ombi, the sequel doesn't; the ombi db doesnt show any IDs for the sequel)
Ok, finally got it working, I thought the it would say the sync was complete or something like that. Now when I search for a movie using ombi that I have, it says available Does it periodically update my librarys or do I have to do it manually?
Ok, finally got it working, I thought the it would say the sync was complete or something like that. Now when I search for a movie using ombi that I have, it says available Does it periodically update my librarys or do I have to do it manually?
Howd you get working? just updated your token?
Actually when I put my plex user name and pass it, it show me my servers, I choose one and it automatically populates the machine id and token, - I used those and did a manual sync and waited. After a few minutes I went to ombi search and started searching for movies I had and they showed up as available, at least most of them, some still said they weren't available. Maybe it takes time?
Yes it syncs on a schedule, you can see and edit these schedules in Settings > Jobs
I noticed if im logged into via web browser new added movies show right away, but not on the mobile app. Does the app take a while to sync?
They should appear the same as the web version
that's strange, new movies are only showing on web interface, even tried logging out of app then back in
I've removed my ombi mount and image and redployed the container several times. Still cant figure this out why a handful of stuff shows up but largely most dont. This seems amazing just wish I could iron out whats going on.
Send me your ombi external dB and examples of what is not appearing as available.
Would you like me to use your email in your profile or some other means?
Please email it to tidusjar@gmail.com
On Mon, 31 Dec 2018, 9:16 pm vulcanjedi <notifications@github.com wrote:
Would you like me to use your email in your profile or some other means?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/tidusjar/Ombi/issues/2695#issuecomment-450691101, or mute the thread https://github.com/notifications/unsubscribe-auth/AGVaLKWDIUd_50GUkzTJ5SBGXavywZjSks5u-n6YgaJpZM4Za5np .
I think I may have figured it out. I have been examining the XML from the Get Info on Plex. (Im still a loyal XBMC/KODI user and have Plex on the side....I use this old legacy plugin for NFO importing in Plex. via GitHub - gboudreau/XBMCnfoMoviesImporter.bundle https://github.com/gboudreau/XBMCnfoMoviesImporter.bundle The ones that show up in Ombi were somehow scanned w/ the default Plex Agents and the ones that dont show up seem to have been scanned with the other agents guid="com.plexapp.agents.thetvdb://####/1/1?lang=en" guid="com.plexapp.agents.xbmcnfotv://#####/1/1?lang=xn" guid="com.plexapp.agents.imdb://tt#####?lang=en" guid="com.plexapp.agents.xbmcnfo://tt#####?lang=xn" I tried to manually change one and see if it reconciles in Ombi but hasn't yet. Also not sure how to mass change / update the Plex scan w/o removing the entire library and rescanning which could take quite a while.
I deleted the OmbiExternal.db and that seems like it was it. Is getting other agent working an issue? Based on this seems like I'd have to redo entire Plex library which is...suboptimal for losing watched status ...etc (which is one of the reasons why I still keep NFOs and thus that old agent)
That does make sense since ombi does not know about any other third party metadata agents.
Ok @vulcanjedi I have wrote some code to catch if it falls out of the 'usual' agents for ImdbId (since I know it will also be prefixed with tt
). But I will need to add a bit more code separate for the xbmcnfotv
agent, what is the value of that? Is it the TheTvDbId?
This has been done in dev
Cheers and Happy New Year Jamie. Yes it’s typically thetvdb ID however I think seldomly it may be the IMDb is for shows too.
From: Jamie notifications@github.com Sent: Tuesday, January 1, 2019 8:23 AM To: tidusjar/Ombi Cc: vulcanjedi; Mention Subject: Re: [tidusjar/Ombi] Docker Plex Ombi media library not being indexed. Test connections work but logs and ombi interface show it does not (#2695)
Ok @vulcanjedihttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvulcanjedi&data=02%7C01%7C%7Ccd3a1e049fd2462b081808d66ff4ba3d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636819494211538302&sdata=dhlq10xIFeufN7ChNA9iT6ba6%2Bo3%2BaQXV%2FFTEuXhlOw%3D&reserved=0 I have wrote some code to catch if it falls out of the 'usual' agents for ImdbId (since I know it will also be prefixed with tt). But I will need to add a bit more code separate for the xbmcnfotv agent, what is the value of that? Is it the TheTvDbId?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftidusjar%2FOmbi%2Fissues%2F2695%23issuecomment-450732062&data=02%7C01%7C%7Ccd3a1e049fd2462b081808d66ff4ba3d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636819494211538302&sdata=wI2gauBANGLoidNOPVohZrtCnNaGAWrZjsyI1dAjZ5E%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACDyvNxQuyGk2Adke70GxwJti9_CWRSQks5u-29rgaJpZM4Za5np&data=02%7C01%7C%7Ccd3a1e049fd2462b081808d66ff4ba3d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636819494211538302&sdata=S66IVlPl13Kuk2Znw4RvTPDTwxgeCjjLC%2B5GYpgwKYk%3D&reserved=0.
Ok the fix I have committed to the develop branch should fix this for you then!
Happy new year! 🎉🎊
I am going to close this issue to prevent further confusion.
If anyone else has an issue please try develop and if that does not work then please raise an issue.
Ombi build Version:
3.0.4036
Update Branch:
master
Media Sever:
Plex
Media Server Version:
Version 1.14.1.5488
Operating System:
Host Ubuntu 16.04.5 LTS linuxserver docker container for both Plex / Ombi
Ombi Applicable Logs (from
/logs/
directory or the Admin page):Problem Description:
Not getting media library inventory. Some show up others (most don't) Have tried to disable Secure Connections to Preferred instead of Required. Test connections to the PMS are successful and SOME stuff shows up.
Reproduction Steps:
Please include any steps to reproduce the issue, this the request that is causing the problem etc.