microsoft / vso-agent

Visual Studio Team Services and TFS agent for Mac OSX and Linux
MIT License
131 stars 56 forks source link

"Unauthorized" #314

Closed 9Rune5 closed 7 years ago

9Rune5 commented 7 years ago

Using fiddler I see that vsoagent.exe starts off nicely. It uses NTLM for authentication.

But as soon as I start a build, I get a Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: Unauthorized.

This GET request returns a 401: https://tfs:8443/tfs/DefaultCollection/_apis/connectionData?connectOptions=IncludeServices&lastChangeId=-1&lastChangeId64=-1 Its Authorization field looks like this: Authorization: Bearer (followed by lots of data)

The same GET request works fine (returns some nice chunky json) from a browser (well, it uses NTLM...). Same user running vsoagent interactively as well as the browser.

We did a trial run first before we took the final plunge. Build agent running fine prior to the final conversion of our TFS 2013 database (to 2015 patch 3).

bryanmacfarlane commented 7 years ago

This is not the vsoagent.exe repository :) This is a deprecated node agent for Linux and OSX.

Can you see what version of the agent this is? (It's in the pools web admin UI).

9Rune5 commented 7 years ago

Ah. Yeah, I am getting pretty desperate and was so happy when I found a github repos for vsohost that I immediately posted something. :) Will check closer next time.

version string: VsoAgent.exe/1.95.3

On Mon, Jul 25, 2016 at 8:39 PM, Bryan MacFarlane notifications@github.com wrote:

This is not the vsoagent.exe repository :) This is a deprecated node agent for Linux and OSX.

Can you see what version of the agent this is? (It's in the pools web admin UI).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/vso-agent/issues/314#issuecomment-235044461, or mute the thread https://github.com/notifications/unsubscribe-auth/AJhn8N5wX9Llj6o8g2gnEnrLk728Xv93ks5qZQLlgaJpZM4JUalb .

Rune

bryanmacfarlane commented 7 years ago

No problem.

Send a mail to us. Our microsoft aliases are bryanmac and tihuang. We'll figure out what your problem is.

BTW, the new agent for TFS.vNext and beyond (where we merged the two agents) is here (with releases there as well): https://github.com/Microsoft/vsts-agent