k8s-prom-hpa icon indicating copy to clipboard operation
k8s-prom-hpa copied to clipboard

Makefile:14: recipe for target 'gencerts' failed

Open k8s19 opened this issue 4 years ago • 5 comments

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

k8s19 avatar Aug 01 '19 16:08 k8s19

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

dimanzt avatar Feb 03 '21 20:02 dimanzt

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

dimanzt avatar Feb 03 '21 20:02 dimanzt

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

PavanMakadia avatar Feb 26 '21 16:02 PavanMakadia

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

PavanMakadia avatar Feb 28 '21 14:02 PavanMakadia

using old version doesn't solve my issue on CentOS

deadjoker avatar Mar 04 '21 08:03 deadjoker