Could not resolve all files for configuration ':benchmarks:classpath'

elasticsearch version: 5.5.2
OS: Windows
When I compile elasticsearch source code with gradle, I encountered a problem, such as:

  • What went wrong:
    A problem occurred configuring project ':benchmarks'.

Could not resolve all files for configuration ':benchmarks:classpath'.
Could not resolve com.github.jengelman.gradle.plugins:shadow:1.2.3.
Required by:
project :benchmarks
Could not resolve com.github.jengelman.gradle.plugins:shadow:1.2.3.
Could not get resource 'https://plugins.gradle.org/m2/com/github/jeng
elman/gradle/plugins/shadow/1.2.3/shadow-1.2.3.pom'.
Could not GET 'https://plugins.gradle.org/m2/com/github/jengelman/
gradle/plugins/shadow/1.2.3/shadow-1.2.3.pom'.
sun.security.validator.ValidatorException: PKIX path building f
ailed: sun.security.provider.certpath.SunCertPathBuilderException: unable to fin
d valid certification path to requested target

Can anyone give me some advice? Thanks a lot.

Hi,

something is wrong with your certificate configuration in the JDK as indicated by the error message:

sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

This Stackoverflow thread provides some pointers.

Daniel

Well, I'm a newer. Can you say more in detail? Thanks a lot.

---Original---

I have download a SSLPoke.class and run with the command(
java SSLPoke developer.
nrel.gov 443) in CMD.exe, but it got a error:
D:\jdk1.8\bin>java SSLPoke developer.nrel.gov 443
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
mpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
va:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
Impl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:432)
at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryIm
pl.java:88)
at SSLPoke.main(SSLPoke.java:25)
Can anyone give some advice?

Hi @saliormoon,

you get:

You cannot even connect to this site from your network and this can have a lot of reasons, e.g. you are behind a proxy and it blocks connections to that host.

I get this when I try to connect with curl:

daniel@io:~ $ curl -v https://developer.nrel.gov
* Rebuilt URL to: https://developer.nrel.gov/
*   Trying 54.164.53.78...
* Connected to developer.nrel.gov (54.164.53.78) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: developer.nrel.gov
* Server certificate: Let's Encrypt Authority X3
* Server certificate: DST Root CA X3
> GET / HTTP/1.1
> Host: developer.nrel.gov
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK

So I think you need to fix your (Java?) network issues before-hand.

Daniel

Yes, thanks a lot. I can't access external network and have to use Cntlm to configure some proxy settings. So it's maybe that the proxy settings occur errors.

This problem has been resolved. Thanks a lot.

Hi @saliormoon,

glad to hear that.

Daniel

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.