Jump to content

Cannot Login to my local server with TV App


Recommended Posts

ionfan2000
Posted

Hello.

recently my emby app won't login anymore into the server. So i cleared all caches and file storage on the Android TV and restarted the app. After that i am presented with the "Connect with Emby Connect" Screen. There i chose to login via IP-Adress (the german translation for that button needs to be improved :) )

After that i put in https://emby.mydomain.de and port 443. When confirming these settings nothing happens and the "connect with emby connect" screen is still showing. No error message or other reaction. The app also stays responsive to my inputs.

My server is internally resolved to a local ip address and there it is run as a docker container with traefik as a reverse proxy.

I can access the emby GUI from everywhere in the world and also in my local network. The only thing that is not working is the app on my TV.

In the emby log i can see the following log-lines that may correnspond to that:

2023-06-15 06:32:11.064 Info Server: http/1.1 POST http://host1/emby/Sessions/Capabilities/Full?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=44c78b08-9d42-4e87-be55-da6a2d9a88b9&X-Emby-Client-Version=4.7.13.0&X-Emby-Language=de&reqformat=json. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
2023-06-15 06:32:11.065 Info Server: http/1.1 Response 204 to host2. Time: 1ms. http://host1/emby/Sessions/Capabilities/Full?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=44c78b08-9d42-4e87-be55-da6a2d9a88b9&X-Emby-Client-Version=4.7.13.0&X-Emby-Language=de&reqformat=json

 

I attached a screenshot of the emby connect screen where it stays after entering the connection details.

My TV is a Sony KD-55XF9005

 

Can you tell me how to get more information what the client on the tv does? Right now it is a blackbox and i have no clue what the problem is.

Regards

ionfan

emby-screenshot

Posted
Quote

After that i put in https://emby.mydomain.de and port 443. When confirming these settings nothing happens and the "connect with emby connect" screen is still showing.

Hi, can you please show a screenshot of what you mean? Thanks.

ionfan2000
Posted

After entering the url and port to my emby server like in the screenshot, and then press "ok" the url window dissapears and i get the "connect with emby connect" screen again. There is nothing happening. I assume after pressing ok i should be asked for the credentials for my server but that is not happening.

 

emby-url.jpeg

Posted
19 hours ago, ionfan2000 said:

My server is internally resolved to a local ip address

Hi.  If you are on the local LAN, why are you using the external domain name?  What happens if you use the local IP address and port?

ionfan2000
Posted (edited)

Because emby server is hosted on a docker host with many other docker services. Therefore i have made it available via traefik which is responsible for reverse proxying and providing the right certificate. When i am not addressing the host with the right hostname/url traefik would not forward me to the right docker host.

When resolving the dns name internally it resolves to the internal ip of the docker host (where traefik is listening on port 443) and if i resolve it externally it will resolve to the public ip of my firewall, which has a dnat to my docker host.

It sounds complicated but it has worked for several years. And the only thing that may have changed is the server via updates or the app via updates. Also the access via Browser is working fine. It is only the tv app that is silent when connecting.

Edited by ionfan2000
pwhodges
Posted
1 hour ago, ebr said:

Hi.  If you are on the local LAN, why are you using the external domain name?  What happens if you use the local IP address and port?

I do this with all my devices, then they work seamlessly in or out of home (even coming and going while playing!) as they switch between my internal DNS server and the phone company's global one.

Paul

Posted

Sounds like a lot of points of possible failure.  Is it possible to test the connection directly to the local IP address?

ionfan2000
Posted

I'm sorry that is not possible, because when i access the local ip directly traefik does not know where to forward the request to. I think it's called SNI.

My question firsthand was how to get a debug output from the tv app. At the moment i cannot say in any way what is happening in the app. For me the first logical step is to get debug output from where the problem is happening.

So can you tell me a way to get more debug output in the tv app?

ionfan2000
Posted

I now sideloaded the android app on the tv.

I can enter the url and port. After that i get a login prompt with username and password (this step doesn't even show up in the tv version of the app). There i can login flawlessly into the server.

The only thing that does not work is to play any media. Even mp3 audio files fail with the message "no compatible streams available". Maybe i downloaded the version for the wrong architecture. I downloaded the arm7 version.

Any suggestions how to proceed further? How can i debug the tv app?

Posted
On 6/23/2023 at 1:27 PM, ionfan2000 said:

I now sideloaded the android app on the tv.

I can enter the url and port. After that i get a login prompt with username and password (this step doesn't even show up in the tv version of the app). There i can login flawlessly into the server.

The only thing that does not work is to play any media. Even mp3 audio files fail with the message "no compatible streams available". Maybe i downloaded the version for the wrong architecture. I downloaded the arm7 version.

Any suggestions how to proceed further? How can i debug the tv app?

@ionfan2000

 

Hi there, let's look at an example. Please attach the information requested in how to report a media playback issue. Thanks!

 

  • 2 weeks later...
ionfan2000
Posted

i have tried playing a video file with the sideloaded app and after that i collected the server-log. It is attached.

But i thought that we would debug the android tv app and not the android sideloaded app.

embyserver.txt

Posted

Are you happy using the standard app if we can resolve the playback problem?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...