confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 703 forks source link

ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:latest' returned a non-zero code: 7 #888

Open CX1data opened 3 years ago

CX1data commented 3 years ago

Currently trying to follow the Quick Start gude https://docs.confluent.io/5.1.4/quickstart/ce-docker-quickstart.html#ce-docker-quickstart

When trying to build the container I'm getting the following:

james.grant@DEM-C02XJGAAJG5H cp-all-in-one % docker-compose up -d --build
Building connect
Step 1/3 : FROM confluentinc/cp-kafka-connect:5.1.4
 ---> 3b42e7260b0a
Step 2/3 : ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components"
 ---> Using cache
 ---> 0556eedb9ef9
Step 3/3 : RUN confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:latest
 ---> Running in bcaa4a900f56
Running in a "--no-prompt" mode
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Error: Unknown error
ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:latest' returned a non-zero code: 7
james.grant@DEM-C02XJGAAJG5H cp-all-in-one %

MacOS Catalina (10.15.7). corporate build (i.e. I don't have admin) Docker Version 18.06.1-ce-mac73 (26764)

I've also tried % docker-compose build --no-cache connect as was suggested in a similar issue ticket but for an earlier release. Same result.

I also tried editing the Dockerfile and removed the --noprompt flag on step 3, and got the following output - it may be a "red herring" but there's an option that gets displayed neither option is selected:

james.grant@DEM-C02XJGAAJG5H cp-all-in-one % docker-compose up -d --build
Building connect
Step 1/3 : FROM confluentinc/cp-kafka-connect:5.1.4
 ---> 3b42e7260b0a
Step 2/3 : ENV CONNECT_PLUGIN_PATH="/usr/share/java,/usr/share/confluent-hub-components"
 ---> Using cache
 ---> 9f459d7a6541
Step 3/3 : RUN confluent-hub install confluentinc/kafka-connect-datagen:latest
 ---> Running in 9403384f93c3
The component can be installed in any of the following Confluent Platform installations:
  1. / (installed rpm/deb package)
  2. / (where this tool is installed)
Choose one of these to continue the installation (1-2): No line found

Error: Unknown error
ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install confluentinc/kafka-connect-datagen:latest' returned a non-zero code: 7
james.grant@DEM-C02XJGAAJG5H cp-all-in-one %

Any ideas?

CX1data commented 3 years ago

Oh, and yes docker has been allocated 8GB of RAM

amanyanye commented 2 years ago

Did you get a solution on this, I am facing the same issue here

nikkumar-mdsol commented 2 years ago

Please refer this: https://stackoverflow.com/questions/56958382/use-confluent-hub-without-confluent-platform-installation