TFS cannot connect to Sql Server after Server updates - tfs

Over the weekend, our network admin install updates on our Windows Server 2008 R2 server. After the updates, TFS can no longer connect to Sql Server. Both TFS and Sql Server are on the same box.
I am getting the following error when trying to connect to the http://mytfsname:8080/tfs/ :
Team Foundation services are not available from the server. Technical
information (for administrator): The request could not be processed
because the application is not configured correctly. No service host
is available for the request.
In the TFs Admin Console, I tried to connect with the NETWORK SERVICE account, which results in the following:
Exception Message: The database is being upgraded to the
Tfs2010.SP1.KB2564498.P#5 schema. The database cannot be used until
the upgrade is complete. (type DatabaseSchemaException)
Digging into the event logs, there are about 20 errors right after the server was restarted:
Error in Template (C:\Program Files (x86)\Microsoft Visual Studio
9.0\Common7\IDE\ItemTemplates\Web\VisualBasic\1033\AdoNetEntityDataModelVB_ASPNET.zip),
file (ModelObjectItemVB_ASPNET.vstemplate). Invalid template element
(TemplateID) value
(Microsoft.Data.Entity.Design.VSTemplate.ModelObjectItemVB_ASPNET).
Then I start seeing the TFS error:
TF53010: The following error has occurred in a Team Foundation
component or extension: Date (UTC): 2/15/2015 7:00:22 PM Machine:
xxxxxxx Application Domain:
/LM/W3SVC/8080/ROOT/tfs-1-130685004138949511 Assembly:
Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0,
Culture=neutral, PublicKeyToken=xxxxxxx; v2.0.50727 Service Host:
Process Details: Process Name: w3wp Process Id: 6180 Thread Id:
7364 Account name: NT AUTHORITY\NETWORK SERVICE
Detailed Message: Application Request Processing Started
Server Version = Microsoft.TeamFoundation.Framework.Server,
Version=10.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxx Service
Account = NT AUTHORITY\NETWORK SERVICE Machine Name = XXXXXXX Product
ID = xxxxxxxxx License Edition = xxxxx
Exception Message: The database is being upgraded to the
Tfs2010.SP1.KB2564498.P#5 schema. The database cannot be used until
the upgrade is complete. (type DatabaseSchemaException)
I have tried the following:
Reinstall TFS (repairing) '
ReInstall TFS SPI 1 (failed)
Delete TFS Cache

Related

Error Integrating TFS 2017 U3 with SQL Server 2016 Reporting Services

When I try to integrate TFS 2017 U3 with SQL Server 2017 Reporting Services, from TFS Administration Console, an error appear. Please see screenshot.
In the event viewer of TFS server, I see registered this error:
DCOM was unable to communicate with the computer servername using any of the configured protocols; requested by PID
1080 (C:\Program Files\Microsoft Team Foundation Server 2018\Tools\TfsMgmt.exe).
Error Image
I have had checked the following:
Windows Firewall is not blocking port 80
Reporting service is started
User Account has required permissions
WMI is running on the report Server
TFS databases are in the same server than reporting services and the TFS service is running without any problem.
Please, any idea how to revolve this error will be very appreciated
I was wrong when placing the error text messaage. I had performed a test from TFS 2018 that's the reason why I wrote with that description eror, but the productive environment is with TFS 2017 U3 and the error message is the same thing; the difference is the path where TfsMgmt.exe is located.
Thanks for your attention.
Audberto

TFS 2013 Release Management Client not communicating with Server

I am trying to configure Release Management Client to work with a Release Management Server for Microsoft TFS 2013 on a Windows Server 2008 R2 Standard.
I installed (without any errors) the following two from our subscription downloads:
en_release_management_server_for_team_foundation_server_2013_with_update_4_x64_web_installer_5920525
en_release_management_client_for_visual_studio_2013_with_update_4_x86_x64_web_installer_5920526
I have not installed any Microsoft Deployment Agents.
I have installed and configured the RM server for a SQLExpress db (different from the TFS db in our case) and for now I used my own network credentials (being a member of Administrators group on the server and a member of Default Collection Administrators on TFS, with "Make requests on behalf of others" set to "Allow" on TFS).
When I copy the RM Server URL from "Configure Release Management Server" screen (http://xxx:1000/ReleaseManagement) and paste it into a browser, the page loads without any errors.
However, when the same URL is used in RM Client Configuration, I get an error: "The server specified could not be reached":
We have VS2012 on the server and VS2013 Ultimate on my own dev machine.
I tried installing and configuring the client on both the server (Win Server 2008 R2 Standard) and my dev machine (Win 8.1 Pro), and I still get the same error (so I assume the version of VS is not an issue).
Looking at the event log, I get two errors.
ERROR ONE:
The remote server returned an error: (404) Not Found.: \r\n\r\n at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.TeamFoundation.Release.Data.WebRequest.PlatformHttpClient.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClientResponseRetriever.EndGetAsyncMemoryStreamFromResponse(IAsyncResult asyncResult, IPlatformHttpClient platformHttpClient)
.... [edited out for brevity]
Process Name: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Release Management\Client\bin\ReleaseManagementConsole.exe
ERROR TWO:
Error communicating to the web server URL: http://xxx:1000/ReleaseManagement/account/releaseManagementService/_apis/releaseManagement/
Indeed, when I enter that URL in a browser, I get "404 - File or directory not found". Here is what the site structure is:
What I should do to be able to configure our Release Management Client without errors, please?
Additional observations:
I cannot see "Release Management" role on our server, but have seen in mentioned in relation to RM installs.
The client installer reads "Release Management Client for Visual Studio 2013 Update 4", whereas instructions here indicate it should be "Release Management Client for Team Foundation Server 2013 Update 4". Surprisingly, when I ran the installer recommended by that article, the title again read "...for Visual Studio" as opposed to "...for Team Foundation Server".
Many thanks in advance!
You're entering the wrong URL. The URL should be http://<RM Server Name>:<Port>. No /ReleaseManagement/.
The /ReleaseManagement/ folder is not for the desktop client, but rather for the approval dashboard.

Can't add server in Microsoft Test Manager

When I want to connect to a server in Microsoft Test Manager I got this error message:
Unable to connect to server 'tfsserver:8282'. Check that the server name is correct and that you have access to the server.
This is Microsoft Test Manager 2010.
I can access tfs server in that url throughout a web browser, using Visual Studio 2010, using Team Explorer 2012.
The TFS server is installed in Windows Server 2008 R2 Standar
The TFS installed version is: 11.0.50727.1 (RTM)
Configured virtual directory is: \tfs
Configured ports are: 8282
Service account: NT AUTHORITY\Network Service
Authentication: NTLSM
Notificacion url: http: //tfsserver:8282/tfs
Server url: http: //localhost:8282/tfs
Web Access url: http:// tfsserver:8282/tfs
Machine name: TFSSERVER
My PC and the server are under a windows domain. My domain user is included in the management console users in TFS.
What can be wrong?
this is compatibility issue you need
tfs 2010,test manager2010,team explorer2010
or
tfs 2012,test manager2012,team explorer2012
and the second solution for this is to download update patches from Microsoft Website to enable upward or downward compatibility.

In TFS 2010 the Email alerts are not working, failure sending mail

I'm using smtp4dev to send email alerts from TFS. I'm using Windows VIsta.
In TFS administration Console->Email Alert Settings, I set SMTP server as localhost and Email from Address is my mail id.
In Visual Studio 2010, Team->Project Alerts, I enabled "Anything is checked in" and gave another email id in Send to field.
After my checkins, I didn't receive any email. smtp4Dev is visible in system tray.
In Event Viewer, I found the below Error,
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 12/3/2012 6:07:33 AM
Machine: MACHINE112
Application Domain: TfsJobAgent.exe
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Service Host:
Process Details:
Process Name: TFSJobAgent
Process Id: 2804
Thread Id: 6996
Account name: NT AUTHORITY\LOCAL SERVICE
Detailed Message: TF271001: An error occurred while attempting to send an e-mail notification to the following address: yyyy#example.com. Further e-mail notification errors that occur within the next five minutes might not be logged. Verify that the e-mail notification settings are correct in the Team Foundation Administration Console.
Exception Message: Failure sending mail. (type SmtpException)
Please confirm the identity of Visual Studio Team Foundation Server Background Job Agent And Team Foundation Server Web Access Application Pool in IIS.
Web Access will use the identity of this app pool to connect to Smtp Server to send mail. And if you change a workitem, the notification will be sent by Visual Stidio Team Foundation Server Background Job Agent. If the account does not have permission to connect to smtphost, you will not receive the mail.
Both services must be running under same account.

Team Foundation Server Administration Console throws error message "Servicing"; tfsjobagent.exe has an error during job execution

Randomly, the TFS 2010 Server stopped working. When I go to the console to see what is going on, I get a simple "Servicing" error message. When I click okay, none of the Team Project Collections actually show up.
When I go to the Event Viewer and look at the log, I see the following message:
Application Domain: TfsJobAgent.exe
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Service Host:
Process Details:
Process Name: TFSJobAgent
Process Id: 2680
Thread Id: 3304
Account name: NT AUTHORITY\NETWORK SERVICE
Detailed Message: There was an error during job agent execution. The operation will be retried. Similar errors in the next five minutes may not be logged.
Exception Message: Servicing (type HostShutdownException)
Exception Stack Trace: at Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceHost.ThrowIfShutdown()
at Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceHost.CreateSystemContext()
at Microsoft.TeamFoundation.Framework.Server.JobApplication.SetupInternal()
at Microsoft.TeamFoundation.Framework.Server.JobServiceUtil.RetryOperationsUntilSuccessful(RetryOperations operations)
I've done some googling and some people have suggested this is a sql server login issue. There have been NO CONFIGURATION CHANGES of any kind to the database or the TFS application layer.
It seems like connection issue for me. There is one retry operation
in the stack trace.
You don't have TFS2010 SP1 installed apparently (Microsoft.TeamFoundation.Framework.Server, Version=10.0.0.0). Please try to install TFS2010 SP1.

Resources