JetBrains / teamcity-investigations-auto-assigner

Assigns investigations of build failures automatically based on heuristics
Apache License 2.0
9 stars 14 forks source link

Error when downloading dependencies from external repositories(Sorry I'm not experienced with Intellig IDEA and Gradle) #15

Closed medboz closed 6 years ago

medboz commented 6 years ago

I tried to add proxy config in gradle.properties and in Itellig IDEA settings but still gettings this error:

NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)) NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)) NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))

FAILURE: Build failed with an exception.

CONFIGURE FAILED in 0s Could not GET 'https://repo.maven.apache.org/maven2/com/github/rodm/gradle-teamcity-plugin/1.1/gradle-teamcity-plugin-1.1.pom'. Received status code 407 from server: authenticationrequired Enable Gradle 'offline mode' and sync project

Can you please advice on how to fix this ?

rugpanov commented 6 years ago

@medboz, hi! First of all, it isn't a problem of the project, but the problem of your proxy configuration. Have you tried to configure a proxy with all these suggestions?

medboz commented 6 years ago

Hello @rugpanov,

I get the error bellow when I set proxy properties in gradle.properties or when I run gradlew --info -Dhttps.proxyHost={Company Proxy} -Dhttps.proxyPort=8080 -Dhttps.proxyUser={my login} -Dhttps.proxyPassword={my password}, I get this error :

Evaluating root project 'investigations-auto-assigner' using build file 'D:\ARD\git\teamcity-investigations-auto-assigner\build.gradle'. NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)) Failed to get resource: GET. [HTTP HTTP/1.1 407 authenticationrequired: https://repo.maven.apache.org/maven2/com/github/rodm/gradle-teamcity-plugin/1.1/gradle-teamcity-plugin-1.1.pom] NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)) Failed to get resource: GET. [HTTP HTTP/1.1 407 authenticationrequired: https://plugins.gradle.org/m2/com/github/rodm/gradle-teamcity-plugin/1.1/gradle-teamcity-plugin-1.1.pom] NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)) Failed to get resource: GET. [HTTP HTTP/1.1 407 authenticationrequired: https://jcenter.bintray.com/com/github/rodm/gradle-teamcity-plugin/1.1/gradle-teamcity-plugin-1.1.pom]

FAILURE: Build failed with an exception.

Any idea?

medboz commented 6 years ago

It seems gradle doesn't work properly with ntlm proxy. As a workaround, I'm using cntlm as local proxy in the middle (gradle <=> cntlm local proxy <=> company ntlm proxy

medboz commented 6 years ago

@rugpanov: don't know what could be the next issue :)