I’m trying 1.4-rc-1 as replacement for 1.3.0 but when running gradle dependencies I get in an endless loop and it keeps printing:
NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))
I think I’ve seen such a message with 1.3.0 also but I didn’t looked further as everything worked as expected further down the line. (I just tried same build file with 1.3.0 and I don’t see the message at all).
I’m wondering where the message is coming from. I’have configured proxy settings in gradle.properties for my companies firewall and I’ve specified credentials for an Ivy repo. But as mentioned in 1.3.0 this works without problems, only 1.4-rc-1 gives this endlessly repeating message.
Are you sure that the message is “endlessly” repeating. Or is it possible that it is emitted once per dependency that gets resolved? 2. Do you see the message when you use Gradle 1.3 with ‘–refresh-dependencies’ 3. Can you please provide the full output of running with 1.4-rc-1 and ‘–debug’?
Yes it really seems “endlessly” repeating. 2) When using the --refresh-dependencies option in 1.3 I can see the “NEGOTIATE authentication error: No valid credentials provided” message as well. But only 1 time but it does not affect the further build. 3) For both 1.3 and 1.4-beta-1 I run it with the --debug option. Can I send the outcome to you/someone by email?
@Partha: Note that I do see the message one in 1.3 but in my case it seems to have no impact. E.g. Central Maven dependencies are downloaded and all dependencies are resolved.
@Marcel: I suspect I might be doing something wrong about proxy setting. Could you please share some more details about the proxy setting in 1.3 that is working for you.
Where is the gradle.properties file located in your directory structure? In my case it is the root folder of the java project that I am building with gradle.
I am using a Windows box for development. What is your box?
Could you possibly share the exact gradle.properties file perhaps…Just in case I am mistyping something.
As you can tell it is getting fairly frustrating for me and any help will be appreciated
Thanks for the report Marcel. The error message you see printed is actually harmless: it’s a warning emitted by HttpClient. It is not the cause of the resolution problems you are seeing.
I’m assuming that you’re running into GRADLE-2641, which causes the infinite loop you describe. We’ll have a fix out very soon as 1.4-rc-2.
If you run the build with ‘–debug’ you should be able to see the dependency that is repeatedly downloaded. Can you please send the details of the pom file being resolved repeatedly?
Hi Partha. Your issue with 1.3 is not related to the issue Marcel is having with 1.4-rc-1. Can you please create a separate forum posting for your issue?
@Luke are you behind a proxy? I have the feeling it has to do with the proxy. I will also try later today from home without proxy. But weird thing is that in 1.3 it works. Is the http client or something maybe upgraded in 1.4?
@ Marcel. Unfortunately, it looks like you are hitting a different problem to the one that we fixed for 1.4-rc-2. I can successfully resolve ‘android:4.1.+’ with both 1.4-rc-1 and 1.4-rc-2.
We’re definitely going to need to see your debug log files to work out what’s going on. You can email them to me (darrell.deboer@gradleware.com). Using Luke’s script above, the output of the following commands would be useful:
I’m having the same problem (NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided)) with Gradle 1.4 and 1.5.