Grafana not accessible over https

Hello,

My grafana running on a linux machine has the following configuration. But grafana is not loading.

Protocol (http, https, socket)

protocol = https

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

http_addr = xx.xx.xx.xx

The http port to use

http_port = 443

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

domain = ec2-xx-xx-xx-xx.compute-1.amazonaws.com

https certs & key file

cert_file = /local/ams-grafana.crt

cert_key = /local/ams-grafana.key

When am starting the Grafana, am getting below error.

t=2019-08-08T17:58:51+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=xx.xx.xx.xx:443 protocol=https subUrl= socket=

t=2019-08-08T17:58:51+0000 lvl=eror msg=“Stopped HTTPServer” logger=server reason=“listen tcp xx.xx.xx.xx:443: bind: cannot assign requested address”

t=2019-08-08T17:58:51+0000 lvl=info msg=“Stopped provisioningServiceImpl” logger=server reason=“context canceled”
Grafana running as root user.

Can anybody help?

Hi techies,
It is possible that the error is that you are trying to bind the public ip. This ip cannot be bind by an instance of ec2, instead you must bind the ip of the vpc or all the ip with 0.0.0.0