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

Impossible to connect a Jellyfin server to Ombi #3505

Closed
mattthhdp opened this issue Apr 22, 2020 · 9 comments
Closed

Impossible to connect a Jellyfin server to Ombi #3505

mattthhdp opened this issue Apr 22, 2020 · 9 comments

Comments

@mattthhdp
Copy link

Describe the bug
Got an error into the debug log when trying to connect jellyfin with ombi

To Reproduce
Install both ombi and jellyfin (lastest version available on Linuxserver)

Ombi version 4.0.291.0 (image: linuxserver/ombi:v4-preview)
Jellyfin version 10.5.4 (image: linuxserver/jellyfin)

Expected behavior
Ombi should connect to jellyfin

Screenshots
chrome_2020-04-22_13-44-30

Logs (Logs directory where Ombi is located)

Fail: Ombi.Controllers.V1.External.TesterController[1000]


      Could not test Emby


Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.


   at Newtonsoft.Json.JsonTextReader.ParseValue()


   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)


   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)


   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)


   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)


   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)


   at Ombi.Api.Api.Request[T](Request request, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Ombi.Api/Api.cs:line 81


   at Ombi.Api.Emby.EmbyApi.GetUsers(String baseUri, String apiKey) in /home/vsts/work/1/s/src/Ombi.Api.Emby/EmbyApi.cs:line 33


   at Ombi.Controllers.V1.External.TesterController.Emby(EmbyServers settings) in /home/vsts/work/1/s/src/Ombi/Controllers/V1/External/TesterController.cs:line 326

Desktop (please complete the following information):

  • OS: Ubuntu 20.04

Ombi Version (please complete the following information):
-Ombi: Version 4.0.291.0

  • Jellyfin: Version 10.5.4
@ombi-bot
Copy link
Contributor

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://github.com/tidusjar/ombi/wiki/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.

@tidusjar
Copy link
Member

Can you try using the IP address? Very strange since your settings look ok

@Ashyni
Copy link
Contributor

Ashyni commented Apr 24, 2020

Hello, i have the same issue, and it seems related to the base url use by jellyfin not configurable in Ombi v4, adding this settings and make the change in all api url should be enough.
https://github.com/jellyfin/jellyfin/releases/tag/v10.4.1
Before 1.4.1 http://mydomain.com/jellyfin/system/info
Since 1.4.1 http://mydomain.com/system/info
All people that use jellyfin before 1.4.1 and didn't make the change have Ombi v4 working but new user don't.

@mattthhdp
Copy link
Author

@tidusjar i got the same error with the ip address (with http and without http)

@Ashyni i do have /jellyfin as my base url into jellyfin, i will try removing it but as you said, it should work.

@Maltahl
Copy link

Maltahl commented Apr 30, 2020

I have this same problem
Logs here:
https://pastebin.com/LfwV1fDF
Jellyfin runs on Version: 10.5.4 with base url /jellyfin ( i know but it is required to work with a reverse proxy)
Anything you guys want to me try out ?

@mattthhdp did you try and remove /jellyfin as base url in Jellyfin and now did it go ?

@mattthhdp
Copy link
Author

Sorry for the wait ... Crazy at the office.
I do have remove the /jellyfin as base URL and it's working !
A big thank you to the team . Keep on the good work.

@Maltahl
Copy link

Maltahl commented May 1, 2020

I can confirm removing /jellyfin ( or anything from base url inside of Jellyfin) fixes the problem.

I recommend that we can add the base url in Ombi so we dont have to compromise our proxy setups for Ombi to work with Jellyfin.

@tidusjar
Copy link
Member

tidusjar commented May 1, 2020

Added to V4 and V3

@tidusjar tidusjar closed this as completed May 1, 2020
@Ashyni
Copy link
Contributor

Ashyni commented May 2, 2020

Hello, it's still a problem for me, src/Ombi.Api.Emby/JellyfinApi.cs need change to remove jellyfin/ from api call.

Logs:

fail: Ombi.Api.Api[1000]
      StatusCode: NotFound, Reason: Not Found, RequestUri: http://jellyfin:8096/jellyfin/users
fail: Ombi.Controllers.V1.External.TesterController[1000]
      Could not test Emby
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: U. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Ombi.Api.Api.Request[T](Request request, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Ombi.Api/Api.cs:line 90
   at Ombi.Api.Emby.JellyfinApi.GetUsers(String baseUri, String apiKey) in /home/vsts/work/1/s/src/Ombi.Api.Emby/JellyfinApi.cs:line 32
   at Ombi.Controllers.V1.External.TesterController.Emby(EmbyServers settings) in /home/vsts/work/1/s/src/Ombi/Controllers/V1/External/TesterController.cs:line 326

Edit: Jellyfin server v10.5.5 actually respond to http://jellyfin:8096/emby/system/info or http://jellyfin:8096/system/info by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants