Getting x509: failed to load system roots and no roots provided; open /etc/ssl/certs/ca-certificates.crt: too many open files error while running heartbeat

Hi All,

I am running an ECS on aws with heartbeat container. I am trying to connect to our elasticsearch instance which is running and managed by aws. I am getting this below error -

ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(elasticsearch(https://vpc-asdasdasdadasd.amazonaws.com:port)): Get “https://vpc-asdasdasdadasd.amazonaws.com:port”: x509: failed to load system roots and no roots provided; open /etc/ssl/certs/ca-certificates.crt: too many open files

Has anyone faced this issue?