TeamCity Agent Missing DotNetFramework4.0_x86, but not?
Asked Answered
F

4

6

I've been trying to move our TeamCity install from an old server onto a new Windows Server 2008 R2 server, I've finally got everything configured. However the build agent is saying that DotNetFramework4.0_x86 isn't available on the build agent, but .NET 4.0 framework is installed.

Has anyone come across this issue, is it a Windows Server 2008 R2 thing?

Feint answered 7/9, 2011 at 8:24 Comment(0)
C
10

Your build agent seems to failed to autoupgrade. Do the following:

  • stop agent
  • kill all java processes
  • remove agent/system, agent/plugins, agent/tools folders
  • start agent service
  • wait for agent to update. This could take 5-10 minutes and build agent service may be shown as stopped.
  • check agent/logs/update.log for errors

Please attach agent/logs folder to [email protected]

Make sure build agent running windows service user account has rights to start/stop agent service and update all files under build agent installation directory

Concierge answered 7/9, 2011 at 11:45 Comment(3)
Thanks, I found a forum post that outlined this process, seemed to work.Feint
This was also outlined here: on jetbrains forum, but has the deviation that you only delete the plugins directory. I deleted all three directories mentioned above and restarted the service with success. NOTE: Just deleting the contents of the plugins directory doesn't work.Sipe
I also needed to make sure I use the IP:8111 and not dns which went through ARR (Application Request Routing - reverse proxy). Perhaps it uses other protocols beside HTTP on the same portJingo
B
0

Also check Programs and Features list in Control Panel that both Microsoft .NET Framework 4 Client Profile and Microsoft .NET Framework 4 Extended packages are installed - MSBuild and other required development tools are included in Extended package.

Bluegill answered 7/9, 2011 at 11:52 Comment(0)
H
0

I had same problem and installed this version of .NET framework 4. by installing this it solve my problem. You also give it a shot.

http://www.microsoft.com/download/en/details.aspx?id=17718

Hypoplasia answered 23/3, 2012 at 17:16 Comment(0)
A
0

I tried the method in the accepted answer but unfortunately it did not work.

What worked was that I disabled all build steps in my configuration and then turned them back on one at a time till I found one that caused the build agent requirements to fail with the .NET framework 4.0 thing.

Turns out mine was a Nuget Installer step. I had Nuget 2.7.x and according to this page: https://confluence.jetbrains.com/display/TCD9/NuGet+Installer Nuget 2.5x+ requires .NET 4 and Nuget 2.8.6+ requires .NET 4.5+

Once I updated to the latest Nuget command line (Team City admin has a page for this), my build took off.

Apocope answered 4/10, 2016 at 18:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.