Jump to content

Stuck in "loading" after Emby Connect


thejaem

Recommended Posts

Hi

 

I tried to connect with my apple TV 4k to Emby. It doesn't work:

  • manually with "address:8920"
    • it returns to the screen which I can decide between manually or with emby connect

 

  • with emby connect
    • "loading" screen is shown infinite.

 

  • The emby server is not in the same network like the apple 4k TV box.
  • Emby works with the android app (doesn't matter in which network the mobile is) with the same "address:8920".
    • this means the ports on the Emby Server network are just fine.
    • Emby works for months like a charm with the smartphone app, chromecast and local DLNA
  • Emby Version is 4.2.1.0 on a Synology NAS
  • Ports 8920 and 443 are forward to the apple 4k TV box on the local Network.
    • I used my mobile hotspot to try manually AND with emby connect, both doesn't work either so its not a local router problem.

 

Can you help me? Any idea what the problem is?

 

Kind regards.

Edited by thejaem
Link to comment
Share on other sites

vdatanet

Hi

 

I tried to connect with my apple TV 4k to Emby. It doesn't work:

  • manually with "address:8920"
    • it returns to the screen which I can decide between manually or with emby connect

 

  • with emby connect
    • "loading" screen is shown infinite.

 

  • The emby server is not in the same network like the apple 4k TV box.
  • Emby works with the android app (doesn't matter in which network the mobile is) with the same "address:8920".
    • this means the ports on the Emby Server network are just fine.
    • Emby works for months like a charm with the smartphone app, chromecast and local DLNA
  • Emby Version is 4.2.1.0 on a Synology NAS
  • Ports 8920 and 443 are forward to the apple 4k TV box on the local Network.
    • I used my mobile hotspot to try manually AND with emby connect, both doesn't work either so its not a local router problem.

 

Can you help me? Any idea what the problem is?

 

Kind regards.

 

What's your Apple TV host name?

Link to comment
Share on other sites

vdatanet

it was: "wohnzimmer" since you asked I changed it now to "apple" now. Why?

 

There are login problems when the Apple TV host name has non-ASCII characters, but this is not the case.

Link to comment
Share on other sites

vdatanet

The log you desire? ;)

https://pastebin.com/YfJFekpK

I think the issue starts above 12:00:00 time.

Authentication failed because the remote party has closed the transport stream.

 

It seems a SSL issue. Maybe Apple TV doesn't trust the ssl certificate.

Link to comment
Share on other sites

Authentication failed because the remote party has closed the transport stream.

 

It seems a SSL issue. Maybe Apple TV doesn't trust the ssl certificate.

Hmm yeah it is expired. Thing is I can't automatically renew it and have to do it manually everytime, which is really painful. What would be your suggestion on this?

Link to comment
Share on other sites

vdatanet

Hmm yeah it is expired. Thing is I can't automatically renew it and have to do it manually everytime, which is really painful. What would be your suggestion on this?

 

My options are to renew certificate or disable ssl. I don't know if there are any more options. Maybe @@Luke or @@ebr can help there.

Link to comment
Share on other sites

My options are to renew certificate or disable ssl. I don't know if there are any more options. Maybe @@Luke or @@ebr can help there.

 

I do a renewal now and then I report you guys if it works or not

Link to comment
Share on other sites

My options are to renew certificate or disable ssl. I don't know if there are any more options. Maybe @@Luke or @@ebr can help there.

Okay guys I might have found something.

 

What I do is I renew my Cert on Synology (works), then I run this script on my Synology for emby:

#!/bin/bash

cd /usr/syno/etc/certificate/system/default
openssl pkcs12 -export -out cert.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:XYZ

/var/packages/EmbyServer/scripts/_restart

The pass:XYZ is the same I define in the Emby Dashboard.

 

So now I run this script daily. Right now I run it manually but it did not run either, so I figured out that my _restart is gone. Could it be that emby deleted it with an update? Do you have another better option for me to restart emby?

 

I restarted it manually in the dashboard and the certificate is running. Emby works now on the 4k apple TV box as well!

 

So only question I have now is:

@@Luke How can I restart emby in this script above ?

 

Kind regards

 

Edited by thejaem
Link to comment
Share on other sites

Okay guys I might have found something.

 

What I do is I renew my Cert on Synology (works), then I run this script on my Synology for emby:

#!/bin/bash

cd /usr/syno/etc/certificate/system/default
openssl pkcs12 -export -out cert.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:XYZ

/var/packages/EmbyServer/scripts/_restart

The pass:XYZ is the same I define in the Emby Dashboard.

 

So now I run this script daily. Right now I run it manually but it did not run either, so I figured out that my _restart is gone. Could it be that emby deleted it with an update? Do you have another better option for me to restart emby?

 

I restarted it manually in the dashboard and the certificate is running. Emby works now on the 4k apple TV box as well!

 

So only question I have now is:

@@Luke How can I restart emby in this script above ?

 

Kind regards

 

 

@@Happy2Play I saw your other post about restart api. I found the SystemRestart API but how can I schedule a regular (daily) restart? I'm bit confused on this.

Link to comment
Share on other sites

Happy2Play

@@Happy2Play I saw your other post about restart api. I found the SystemRestart API but how can I schedule a regular (daily) restart? I'm bit confused on this.

You would have create a script to run the command since there is no scheduled task on the server for this.

curl -X POST "http://localhost:8096/emby/System/Restart?api_key=YOURGeneratedAPIKEY" -d ""

If running this command from a different machine, change localhost to ipaddress.

Link to comment
Share on other sites

Okay guys I might have found something.

 

What I do is I renew my Cert on Synology (works), then I run this script on my Synology for emby:

#!/bin/bash

cd /usr/syno/etc/certificate/system/default
openssl pkcs12 -export -out cert.pfx -inkey privkey.pem -in cert.pem -certfile chain.pem -passout pass:XYZ

/var/packages/EmbyServer/scripts/_restart

Emby works now on the 4k apple TV box as well!

 

Thanks for the feedback !

Link to comment
Share on other sites

Thanks for the feedback. It sounds like the VPN was blocking something but we'll look into this and make sure it doesn't cause the app to get stuck.

Link to comment
Share on other sites

  • 2 weeks later...
Chuck_IV

I was having this issue too, when trying to connect Emby on my new ATV 4K. I could not get it to remember the password for my login no matter if I entered then shut it down or not.

 

Where I would get this is if I wanted to switch servers or just going back in after backing out to the main ATV menu after having connected once or just gotten to the password prompt and backed out. The next time in it would hang.

 

What solved it for me was on my server, I set it to NOT require a password when the connection is on my local network. Now it just doesn’t prompt for a password anymore.

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

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...