Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

Grafana quick link UI is giving ERR_SSL_PROTOCOL_ERROR error.

avatar
Contributor

when i click on grafana UI then it will take me to the a different page and there its giving

This site can’t provide a secure connection

<hostname> sent an invalid response.

ERR_SSL_PROTOCOL_ERROR

1 ACCEPTED SOLUTION

avatar
Super Mentor

@Yukti Agrawal

Can you please try the following to see if it fixes your issue?

1. Edit /etc/ambari-server/conf/ambari.properties to set the empty values:

http.strict-transport-security=
views.http.strict-transport-security=

2. Restart ambari server

ambari-server restart

3. Clear the browsers cache (or for testing open the browser in "Incognito mode") then access the grafana UI. Please have a look at the HSTS setting of browsers : http://classically.me/blogs/how-clear-hsts-settings-major-browsers

.

View solution in original post

13 REPLIES 13

avatar
Super Mentor
@Yukti Agrawal

- By any chance have you added "https" instead of "http" in your "Advanced ams-grafana-ini" for the "protocol" field?

avatar
Contributor

[server]

# Protocol (http or https)

;protocol = http

protocol = http

# The ip address to bind to, empty will bind to all interfaces

;http_addr =

# The http port to use

;http_port = 3000 http_port = 3000

# The public facing domain name used to access grafana from a browser

;domain = localhost

avatar
Super Mentor

@Yukti Agrawal

Are you facing this issue with some specific browser like "Google Chrome" ? Or have you tried with other browsers as well? Sometimes this kind of issue might happen due to browser setting as well like:

http://stackoverflow.com/questions/25277457/google-chrome-redirecting-localhost-to-https

avatar
Super Mentor

@Yukti Agrawal

It will be great if you can share the output of the following command :

# cd /var/log/ambari-metrics-grafana

# grep 'Listen' grafana.log
2017/02/22 12:34:04 [I] Listen: http://0.0.0.0:3000

# grep 'Listen' grafana.out 
2017/02/22 14:09:44 [I] Listen: http://0.0.0.0:3000

.

avatar
Contributor

$ grep 'Listen' grafana.log

2017/02/22 07:14:40 [I] Listen: http://0.0.0.0:3000

2017/02/22 09:29:05 [I] Listen: http://0.0.0.0:3000

2017/02/22 09:31:09 [I] Listen: http://0.0.0.0:3000

$ grep 'Listen' grafana.out

2017/02/22 09:31:09 [I] Listen: http://0.0.0.0:3000

avatar
Contributor

one thing i want to clear here is:

https://<localhost>:8443 --- my ambari address

And when i click on Grafana UI link its:

https://<localhost>:3000

avatar
Super Mentor

@Yukti Agrawal

Which version of ambari is it?

avatar
Contributor

Its 2.2.2.3

avatar
Super Mentor

@Yukti Agrawal

I will check why is it happening .. at my lab with similar setup.

In the mean time as a quick workaround you might want to setup HTTPs for Grafana which is quite easy.

https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-user-guide/content/setup_https_fo...

avatar
Contributor

I have one more cluster and there grafana is working fine.

I thing i observe there is:

https://<hostname>:8443 --- my ambari address

And when i click on Grafana UI link its:

http://<hostname>:3000

so the difference here is grafana is going to http here not on https.

can you tell me how can we resolve this?

avatar
Super Mentor

@Yukti Agrawal

Can you please try the following to see if it fixes your issue?

1. Edit /etc/ambari-server/conf/ambari.properties to set the empty values:

http.strict-transport-security=
views.http.strict-transport-security=

2. Restart ambari server

ambari-server restart

3. Clear the browsers cache (or for testing open the browser in "Incognito mode") then access the grafana UI. Please have a look at the HSTS setting of browsers : http://classically.me/blogs/how-clear-hsts-settings-major-browsers

.

avatar

@Yukti Agrawal

That could be some thing to do with your cert/privatekey, recently I have written an article on this. can you please check this?

https://community.hortonworks.com/articles/85365/enable-ssl-for-grafana.html

avatar
New Contributor

There are many reasons for not connecting with the server or any website and you are getting this issue “ERR_SSL_PROTOCOL_ERROR” error but you can fix it with this guide. https://www.clickssl.net/blog/fix-err_ssl_protocol_error-for-google-chrome

Labels