jbramwell / VSTS-Tools

Various command-line utilities for interacting with Visual Studio Team Services (VSTS)
MIT License
11 stars 7 forks source link

TFS on-premises agent version mismatch #5

Closed jdshkolnik closed 8 years ago

jdshkolnik commented 8 years ago

Hi,

I'm on TFS 2015: Update 2 on my test box and Update 3 on my prod box. You require version 1.99.0 but the version available for on-premises is 1.95.x.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
        <Provider Name="Microsoft-Team Foundation Server" Guid="{80761876-6844-47D5-8106-F8ED2AA8687B}" /> 
        <EventID>5</EventID> 
        <Version>2</Version> 
        <Level>2</Level> 
        <Task>1</Task> 
        <Opcode>10</Opcode> 
        <Keywords>0x8000000000000001</Keywords> 
        <TimeCreated SystemTime="2016-06-28T20:54:59.597578700Z" /> 
        <EventRecordID>7871246</EventRecordID> 
        <Correlation ActivityID="{DC87D3BF-5580-40AB-AE86-483198F2C868}" /> 
        <Execution ProcessID="2000" ThreadID="12036" /> 
        <Channel>Microsoft-Team Foundation Server/Debug</Channel> 
        <Computer>xxx</Computer> 
        <Security UserID="S-1-5-21-238447276-1040861923-1850952788-200545" /> 
    </System>
    <UserData>
        <JobAgentHistory xmlns="http://schemas.microsoft.com/TeamFoundation/2010/Framework">
            <Plugin>Microsoft.TeamFoundation.DistributedTask.Server.Extensions.ContributionTasksDownloaderJob</Plugin> 
            <JobName>Tasks Downloader Job for 'moonspace-labs-llc.vsts-tools-build-extensions'</JobName> 
            <JobSource>{3A63750F-1D37-47C4-B01B-BB413FD3FE10}</JobSource> 
            <JobId>{F2347F64-A4A3-4704-9868-43BC2548C5DA}</JobId> 
            <QueueTime>2016-06-28T20:54:58.860000000Z</QueueTime> 
            <StartTime>2016-06-28T20:54:59.427000000Z</StartTime> 
            <ExecutionTime>166296</ExecutionTime> 
            <AgentId>{69A3F376-560F-4AC1-97FE-5965EDEE511D}</AgentId> 
            <Result>2</Result> 
            <ResultMessage>Microsoft.TeamFoundation.DistributedTask.WebApi.TaskAgentVersionMismatchException: The task definition being uploaded requires a minimum agent version of 1.99.0. The server's agent version is 1.95.1. at Microsoft.TeamFoundation.DistributedTask.Server.DistributedTaskService.UploadTaskDefinition(IVssRequestContext requestContext, TaskDefinition taskDefinition, Stream fileStream, TaskPackageResource iconResource, IList'1 resources, Boolean overwrite) at Microsoft.TeamFoundation.DistributedTask.Server.DistributedTaskService.UploadTaskDefinition(IVssRequestContext requestContext, String contributionIdentifier, String contributionVersion, Stream fileStream) at Microsoft.TeamFoundation.DistributedTask.Server.Extensions.ContributionTasksDownloaderJob.InstallContribution(IVssRequestContext requestContext, String publisherName, String extensionName, String version, Guid hostId) at Microsoft.TeamFoundation.DistributedTask.Server.Extensions.ContributionTasksDownloaderJob.Run(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage)</ResultMessage> 
            <QueuedReasons>2</QueuedReasons> 
            <QueueFlags>0</QueueFlags> 
            <Priority>10</Priority> 
            <LogicalReads>0</LogicalReads> 
            <PhysicalReads>0</PhysicalReads> 
            <CPUTime>0</CPUTime> 
            <ElapsedTime>0</ElapsedTime> 
            <Feature>Unknown</Feature> 
        </JobAgentHistory>
    </UserData>
</Event>
jbramwell commented 8 years ago

@jdshkolnik Quick question... are all of the build tasks in the extension failing to load or is it only the VSTS Keep task that is failing to load? For example, after installing the extension, do you see any of the "VSTS-???" tasks when you go to add a task to a build definition?

The VSTS Keep task requires 1.99 (or greater) because of an API change that was made in VSTS but has yet to be applied to TFS (on premises). If the other tasks are showing up then this would explain why you're not seeing the VSTS Keep task. However, if all tasks are failing to install then that's another issue.

Let me know if you're seeing any of the other tasks.

--- Thanks, Jeff

jdshkolnik commented 8 years ago

@jbramwell It's only that one; I see the others.

jbramwell commented 8 years ago

OK. Thanks! In that case, this is expected since that particular task (VSTS Keep) does not yet work for TFS on-premises. Once they update TFS with the proper API support it should start working. Until then, unfortunately, that task only works with VSTS.

jbramwell commented 8 years ago

Closing this issue since it's out of my control at the moment.