Error Chromecast Registration Failed with the following error

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Bembudo
Posts: 35
Joined: Sat Feb 13, 2016 6:02 am

Error Chromecast Registration Failed with the following error

Post by Bembudo »

Hello all,

I've seen previous threads on the same issue, however it appears a fix hasn't been found since no UMS developers own a Chromecast. However today I managed to replicate the issue in hopes this issue could finally get a fix. Please note the error does not appear until a few minutes of UMS left idling. Screen capture and UMS logs can be downloaded from URL's below. Also, the UMS version below is not the only version I've replicated this issue on, please let me know if you require a different version for a better view at what is going on here.

I am running the following:

Windows 10 Pro 64 Bit
Universal Media Server 7.0.0-B2
Using Ipv4 & Ipv6
Antivirus - Bitdefender
Firewall - Hitron Firewall - Firewall Level - minimum Security (low) No application or Traffic is blocked. This is the default configuration
Java Version 8 Build 1.8.0_121-b13

ums logs
https://app.box.com/s/b7suq09rcve89pampdnuawbuuud8ivca

screen caPTURE
https://app.box.com/s/k3ci5m15neji4bxxiq2qpj7qfwwpkliz
Bembudo
Posts: 35
Joined: Sat Feb 13, 2016 6:02 am

Re: Error Chromecast Registration Failed with the following error

Post by Bembudo »

Hello,

I recall submitting a post a few months ago on my feedback regarding UMS 6.5.0. When running UMS on this version I could not remember getting this error which prompted to uninstall existing version and install 6.5.0.
The install was completed yesterday at around 2 pm EST, and since than I have not been able to replicate this issue.

I am not sure what changed however I will continue to run on version 6.5.0 until further notice.

please let me know if you require anything from me to help you isolate this issue

kind regards,
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: Error Chromecast Registration Failed with the following error

Post by Sami32 »

Hello Bembudo,

Disable IPv6, as UMS and most DLNA renderer doesn't support it.
Your network configuration seem to be the root of your issue, so try without SSL, and hopefully you should be good ;)
If you're seeing it on multiple devices almost certainly points to some kind of network problem.

EDIT: You can try to upgrade your Java version to 8u131, as some users say that it solved this error.
Because i suspect it could also be the client 'cacert' not containing the server's certificate.
If you still have issue unistalling your Java and installing OpenJDK 8 could solve your issue.
Don't forget to return feedback.
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: Error Chromecast Registration Failed with the following error

Post by Sami32 »

If you look at this thread, you'll see that people with similar issue have solved it.
So you should find one answer that will work for you as well ;)
https://stackoverflow.com/questions/212 ... ing-handsh
Bembudo
Posts: 35
Joined: Sat Feb 13, 2016 6:02 am

Re: Error Chromecast Registration Failed with the following error

Post by Bembudo »

Thank you for your response Sami32

I've disabled Ipv6 and updated Java Version 8u131 , I will provide everyone with feedback as it becomes available.

kind regards,
Bembudo
Posts: 35
Joined: Sat Feb 13, 2016 6:02 am

Re: Error Chromecast Registration Failed with the following error

Post by Bembudo »

Hello Sami32,

I have since tried updating my version of java to 8u131 however issue was persistent. I than installed the latest version of OpenJDK and not version 8 as I was not able to find this version. I hope version 9 is okay.
Regardless after installing OpenJDK I tried running universal media Server, UMS prompted me to install Java 8+ , I can download the required version by clicking on to begin download. So i was left with no other option but to install Java.

I am assuming all I really need to do is associate the Java Runtime exe location to OpenJDK 9 and disable existing java version? Please correct me if i am wrong, I have provided a screen shot of my changes in the link below

https://app.box.com/s/vlx9xw8j95d3hd0bttbr3rc5mkf2roqi

kind regards
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: Error Chromecast Registration Failed with the following error

Post by Sami32 »

Hello,

- After having uninstalled all your Java version, you can download the OpenJDK 8 here:
https://github.com/ojdkbuild/ojdkbuild/ ... x86_64.msi

- Or you can add/modify this line to your UMS.bat file in your UMS program folder as following:

Code: Select all

start javaw -Xmx768M -Djava.net.preferIPv4Stack=true -Dhttps.protocols=TLSv1.1,TLSv1.2 -Dfile.encoding=UTF-8 -classpath update.jar;ums.jar net.pms.PMS
After having saved the modification, just double click this file and it will start UMS, and hopefully solve your issue.
Bembudo
Posts: 35
Joined: Sat Feb 13, 2016 6:02 am

Re: Error Chromecast Registration Failed with the following error

Post by Bembudo »

Hello,

This seems to have fixed my problem thank you so much, however will i need to run the Bat file every time I want to run UMS? Right now if i quit out of the application and start it normally it will still prompt me to install Java, is there a way to stop this?

Kind regards,
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: Error Chromecast Registration Failed with the following error

Post by Sami32 »

You're welcome ;)

Install Java correctly and it'll not ask you anymore.

Yes, you'll need to run the .bat file, until you fixed it correctly, that mean install the OpenJDK 8 that should have the certificate, or create/install the certicicate as explained in the link that i posted.
It is not a UMS issue.
Bembudo
Posts: 35
Joined: Sat Feb 13, 2016 6:02 am

Re: Error Chromecast Registration Failed with the following error

Post by Bembudo »

Hello Sami32,

Once again thank you for all your help. While I spent some time yesterday creating my own certificate, I thought it would be a good idea to show others how I did it, and where I found this documentation.

I followed the steps in the URL below, read carefully, not every single step is required since you are only creating one certificate.
http://opentox.ntua.gr/index.php?option ... Itemid=465

I than did my google search since I am running windows and unable to generate this certificate without running the Linux command in the instructions from the URL above. So I came across an App called Cygwin.
If your unsure how to install Cygwin see URL below, very helpful. Once installed you should be able to run the commands in Cygwin Terminal.
https://www.howtogeek.com/howto/41382/h ... th-cygwin/

If you follow the steps in creating the certificate properly and place it in your security folder where Java is installed it should resolve your problem.

Hope this helps anyone else experiencing related issues.

kind regards,
Post Reply