stefanprodan/k8s-prom-hpa

Makefile:14: recipe for target 'gencerts' failed

k8s19 opened this issue · 5 comments

k8s19 commented

Below error reported when doing custom metric:

~/go/k8s-prom-hpa$ sudo make certs
Generating TLS certs
Using default tag: latest
latest: Pulling from cfssl/cfssl
Digest: sha256:525005bc4e39d61a2302490329e414eab13ee7ec3edf261df5da68ff65cb506b
Status: Image is up to date for cfssl/cfssl:latest
Can't load /home/ubuntu/.rnd into RNG
139813639434688:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/ubuntu/.rnd
Generating a RSA private key
.................+++++
........................................................................................................+++++
writing new private key to 'metrics-ca.key'

Failed to load config file: {"code":5200,"message":"could not read configuration file"}Failed to parse input: unexpected end of JSON input
Makefile:14: recipe for target 'gencerts' failed
make: *** [gencerts] Error 1

I have the same issue? Is there a solution to this? I am using CentOS

make certs
Generating TLS certs
Using default tag: latest
latest: Pulling from cfssl/cfssl
Digest: sha256:c21e852f3904e2ba77960e9cba23c69d9231467795a8a160ce1d848e621381ea
Status: Image is up to date for cfssl/cfssl:latest
docker.io/cfssl/cfssl:latest
Generating a 2048 bit RSA private key
..........................+++
.............+++
writing new private key to 'metrics-ca.key'

Failed to load config file: {"code":5200,"message":"could not read configuration file"}Failed to parse input: unexpected end of JSON input
make: *** [gencerts] Error 1

Is there any update about this?
I am facing the same issue with Linux here.

Never mind ! I solved issue by using old version (1.3.2) of docker image cfssl/cfssl in Makefile.

using old version doesn't solve my issue on CentOS