Mostrando entradas con la etiqueta Error. Mostrar todas las entradas
Mostrando entradas con la etiqueta Error. Mostrar todas las entradas

sábado, 2 de febrero de 2013

Tips/info #12 Team Foundation Server

1-TFS 2010 – Cruz roja sobre la carpete Documents y Reports (red X over Reports and Documents)

TFS_Red Cross next to documents and reports

Cierra el Visual Studio. Limpia la cache de TFS en tu máquina:

C:\Users\<UserName>\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache
C:\Users\<UserName>\Local Settings\Application Data\Microsoft\Team Foundation\3.0\Cache

También borra la cache de Team Web Access, la carpeta se encuentra en el web.config que está en la siguiente ubicación:

C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Access\Web

En el web.config aparece la key WorkItemTrackingCacheRoot

<appSettings>
    <!-- Directory path where cache is stored. –>

    <add key="WorkItemTrackingCacheRoot" value="C:\ProgramData\Microsoft\Team Foundation\Web Access\Cache_v10.0.30319"/>

    <!--<add key="DetailedRequestTrace" value="true" />-->
  </appSettings>

También se recomienda resetear los permisos tanto en el Reporting Services como en Sharepoint.

http://tfs:8080/tfs/web/ –> Project Portal –> Site Actions –> Site Settings –> People and Groups –> New –> Add Users

http://tfs/Reports –> Folder Settings –> Security –> New Role Assignment.

Otra posibilidad es que el nombre de los servers de TFS/Sharepoint/Reporting  no esté como FQDN.

Ej:El TFS se encuentra publicado en miTFS.dominio.com, y tu configuraste Visual Studio con miTFS

Para solucionarlo, se puede usar el archivo host de tu máquina.

2-TFS 210 client tracing (Visual Studio 2010)

El tracing de lo que ocurre del lado del cliente al conectarse con TFS, puede ser útil para ver solucionar errores. Para activarlo haga lo siguiente:

  • Cerrar Visual Studio 2010
  • Abrir el directorio: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
  • Hacer backup del archivo devenv.exe.config
  • Editar el archivo agregando las siguientes líneas, antes de tag </configuration>
 <appSettings>     <add key="VersionControl.EnableSoapTracing" value="true" />
<add key="VersionControl.TraceDownloadContent" value="false" />     <add key="VersionControl.EnableCompression" value="true" />
</appSettings>

<system.diagnostics>
  <switches>
    <add name="TeamFoundationSoapProxy" value="4" />
    <add name="VersionControl" value="4" />
  </switches>
  <trace autoflush="true" indentsize="3">
    <listeners>
      <add name="myListener"
   type="Microsoft.TeamFoundation.TeamFoundationTextWriterTraceListener,Microsoft.TeamFoundation.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
       initializeData="c:\Logs\tfs.log" />
      <add name="perfListener" type="Microsoft.TeamFoundation.Client.PerfTraceListener,Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
               />
    </listeners>
  </trace>
</system.diagnostics>



  • Los datos se guardaran en el path c:\Logs\tfs.log

  • Inicia Visual Studio, y empezará a hacer tracing de lo que pasa entre VS y TFS.

2-TFS 2010 Server tracing


Los logs de la consola de TFS se encuentran en C:\ProgramData\Microsoft\Team Foundation\Server Configuration\Logs


TFS Application Tier Trace Logging

Ir hasta C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Services\


Abrir el web.config, y agregar las siguientes líneas:


<appSettings>
<add key="traceWriter" value="true" />


<add key="traceDirectoryName" value="c:\Logs\" />
</appSettings>


Recuerda que el usuario de app pool de TFS, debe tener permisos para escribir en el archivo de logs. Para editar el tipo de trace level, hay que editar una clave de registro. También se puede hacer desde la línea de comando: reg.exe add HKLM\SOFTWARE\Microsoft\TeamFoundationServer\10.0\Admin /t REG_DWORD /v TraceLevel /d 4 /f



0 – Off, 1 – Error, 2 – Warning, 3 – Information, 4 – Verbose


Hay otra posibilidad para habilitar el verbosity para 2010 y es a través de un web services:


http://<tfsserver>:<port>/tfs/tftrace.ashx?[traceWriter=<true|false>][&][All=<traceLevel>]

Ej: http://<tfs_server>:8080/<WebServices>/tftrace.ashx?traceWriter=true&All=Verbose

Para deshabilitar los traces, ejecute lo siguiente:

http://<tfs_server>:8080/<WebServices>/tftrace.aspx?traceWriter=false&All=Verbose

<WebServices> puede reemplazarse por: Build, services, VersionControl, Warehouse, y WorkItemTracking

Ej: para VersionControl

http://localhost:8080/VersionControl/tftrace.aspx?traceWriter=true&All=Verbose

Recuerde, que la opción del handle vía web services NO es persistente, ya que cuando se haga un recycle o un iisreset, la configuración se pierde. Para ello se debe usar la opción de la clave de registro o el web.config (C:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Services\)

<system.diagnostics>

<assert assertuienabled="true" />

<trace autoflush="false" indentsize="4" />

<!-- Trace Switches
Each of the trace switches should be set to a value between 0 and 4, inclusive.
0: No trace output
1-4: Increasing levels of trace output; see Systems.Diagnostics.TraceLevel
-->

<switches>
<add name="API" value="4" />
<add name="Authentication" value="0" />
<add name="Authorization" value="0" />
<add name="Database" value="0" />
<add name="General" value="0" />
<!-- WorkItem trace switches -->
<add name="traceLevel" value="4" />
</switches>

</system.diagnostics>


Recuerde que puede utilizar http://localhost:8080/tfs/trace.axd para ver el trace de la ejecución.


clip_image008

Puedes usar DebugView http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx para revisar los logs. Recuerda habilitar Capture Win 32, Pass-Through y Capture Events

image

image



3-Configuración del delay de Notification en TFS 2010


Por default, TFS genera un delay de 2 minutos antes de enviar las alertas o notificaciones.


Para modificarlo, ejecute lo siguiente en una consola de PowerShell:


[Reflection.Assembly]::Load("Microsoft.TeamFoundation.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")

# Modifica la url de tu TFS

$configServer = new-object Microsoft.TeamFoundation.Client.TfsConfigurationServer "http://localhost:8080/tfs/"

# Obtiene el servicio de registry de TFS

$tfsRegService = $configServer.GetService([Microsoft.TeamFoundation.Framework.Client.ITeamFoundationRegistry])

# Seteo un delay de  30 seg.

$tfsRegService.SetValue("/Service/Integration/Settings/NotificationJobDelay", 30)

Otra posibilidad es usar la tool http://www.teamsystempro.com/downloads/TfsReg.zip

tfsreg.exe /server:https://yourtfs:8080/tfs/path:/Service/Integration/Settings/NotificationJobDelay /value:30

Recuerda hacer un recycle del app pool de  TFS.

viernes, 13 de julio de 2012

Tips/Info # 8 Team Foundation Server

1-Borrar un Team Project de TFSPreview con Visual Studio 2012

Abrir la línea de comandos de Visual Studio 2012:
TFSDeleteProject /collection:”https://urlName.tfspreview.com/DefaultCollection/” <TeamProject a Borrar>

2-Editar permisos para Areas/Iteration en TFS

Ir a Team –> Team Project Settings –> Areas and Iterations…
Seleccionar el tab de Area o Iteration
Hacer click en el botón de Security
A continuación configura los permisos de forma custom

IC422689

IC422690

Más información: http://msdn.microsoft.com/en-us/library/ms181692.aspx

3-Error al copiar un build definition: The type ‘TfsBuild.Process’ already contains a definition for…”

Cambiar la opción XamlAppDef a None en la sección Build Action.

image_thumb1

4-"Activity could not be loaded because of errors in the XAML":

Esto se debe a que la actividad no está registrada en la GAC.C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe

image

Si no está registrada en la GAC no podes hacer drag and drop de la actividad al workflow (Process Template XAML)

Después de regsitrarla, deberás reiniciar el IDE de Visual Studio.

5-Actualizar la memoria cache de datos en los equipos clientes

Para evitar que se produzcan errores de área de trabajo durante el control de versiones u operaciones de compilación en Team Foundation, se debe actualizar la memoria caché de datos de los equipos cliente después de realizar determinadas operaciones de mantenimiento. Después de mover, restaurar, cambiar el nombre o conmutar por error un servidor de capa de datos o de capa de aplicación o de recuperar de un error como un mal funcionamiento de hardware, debe actualizar la memoria caché para realizar el seguimiento de los elementos de trabajo y los usuarios deben actualizar la memoria caché de control de versiones en los equipos cliente.

http://msdn.microsoft.com/es-ar/library/cc716728(v=vs.100).aspx

lunes, 30 de enero de 2012

Errores TFS 2010

Este post será una lista de errores que pueden aparecer en TFS. La iré actualizando.

“TF14091: you cannot perform this operation on workspace. domain/eid are not the owner of the workspace”

http://blogs.msdn.com/b/tfssetup/archive/2012/02/20/getting-error-while-opening-the-team-project-tf14091-you-cannot-perform-this-operation-on-workspace-domain-eid-are-not-the-owner-of-the-workspace.aspx

TF14098: Access Denied: User xxx needs Checkin, CheckinOther permission(s)

http://www.anujchaudhary.com/2012/03/tfs-2010-gated-checkin-tf14098-access.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+AnujChaudhary+%28Anuj+Chaudhary%29

 

TF31001: tfs schema version version mismatch error

http://blogs.blackmarble.co.uk/blogs/rhancock/post/2011/09/19/tf31001-tfs-schema-version-did-not-match-the-expected-value.aspx ; http://geeks.ms/blogs/jorge/archive/2011/06/01/error-en-tfs-tf31001-value-cannot-be-null.aspx

http://blogs.msdn.com/b/wriju/archive/2012/02/29/tfs-schema-version-version-mismatch-error.aspx

 

TF31002:Unable to connect to this Team Foundation Server http://tfs.discountasp.net/KB/a988/tf31002-unable-to-connect-to-this-team-foundation-server.aspx ; http://blog.malevy.net/2010/05/tf31002-vs2008-and-tfs2010.html

 

TF200015: The following project does not exist

http://healmyscm.wordpress.com/2012/02/23/tf200015-the-following-project-does-not-exist/

 

TF200035 Sync error for identity with TFS 2010

http://blog.hinshelwood.com/tf200035-sync-error-for-identity-with-tfs-2010/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+MartinHinshelwood+%28Martin+Hinshelwood%27s+ALM+Blog%29&utm_content=Google+Reader

 

TF203035 Create Branch from Label : http://blogs.blackmarble.co.uk/blogs/rhancock/post/2011/09/19/tf203035-create-branch-from-label.aspx ;http://support.microsoft.com/kb/983504 ; http://social.msdn.microsoft.com/Forums/en-US/tfsadmin/thread/bc314f14-3a6c-468e-9777-41539bf414f9/

 

TF215097: An error occurred while initializing a build for build definition "Cannot create unknown type '{clr-namespace:BuildTasks;assembly=BuildTasks}'"

http://blogs.microsoft.co.il/blogs/royrose/archive/2010/06/09/custom-build-activities-and-tf215097-error.aspx

TF215097: An error occurred while initializing a build for build definition xxx: There is not enough space on the disk.

http://www.anujchaudhary.com/2012/03/tf215097-error-occurred-while.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+AnujChaudhary+%28Anuj+Chaudhary%29

 

TF221122 Processing OLAP cube :http://sstjean.blogspot.com/2010/07/tfs-2010-rtm-throws-tf221122-error-when.html

http://blogs.like10.com/2012/03/11/failed-to-process-analysis-database-tfs_analysis/

 

TF221123: Job Work Item Tracking Warehouse Sync for team project collection DefaultCollection was was unable to run after 20 attempts: http://blogs.msdn.com/b/dau-blog/archive/2012/01/06/tfs-2010-report-results-are-not-up-to-date-after-installing-service-pack-1.aspx ; http://msdnrss.thecoderblogs.com/2012/01/tfs-2010-report-results-are-not-up-to-date-after-installing-service-pack-1/ ; http://support.microsoft.com/kb/2567437/en-us

 

TF237159: The query contains columns that are not valid

http://healmyscm.wordpress.com/2011/08/12/tf237159-the-query-contains-columns-that-are-not-valid/

 

TF246017: Team Foundation Server could not connect to the database. Verify that the server that is hosting the database is operational, and that network problems are not blocking communication with the server.

http://healmyscm.wordpress.com/2012/02/23/tf246017-team-foundation-server-could-not-connect-to-the-database/

http://social.msdn.microsoft.com/Forums/pl-PL/tfsversioncontrol/thread/8c936873-9c10-44e6-bab3-e0519fae0dca

http://qa.social.msdn.microsoft.com/Forums/eu/tfsadmin/thread/2722b7e5-ae99-4ff7-b625-357612e4a92e

http://blogs.msdn.com/b/roberthorvick/archive/2009/10/27/enabling-tracing-during-tfs-2010-configuration.aspx

http://serverfault.com/questions/198200/detach-a-tfs-project-collection-when-the-database-doesnt-exist

http://blogs.msdn.com/b/tfssetup/archive/2012/05/23/tf246017-team-foundation-server-could-not-connect-to-the-database-failed-to-load-msxmlsql-dll-quot.aspx

 

TF254006: No usable accounts are present in your configuration database. Use TfsConfig accounts /add to add and account and return to this wizard."

http://blogs.msdn.com/b/tfssetup/archive/2012/01/25/tf254006-no-usable-accounts-are-present-in-your-configuration-database-use-tfsconfig-accounts-add-to-add-and-account-and-return-to-this-wizard-quot.aspx

 

TF254006:the “Grant Backup Plan Permissions” step failed with the error – Account… failed to create backups using path…

http://bobhardister.com/archive/2012/02/08/tfs-2010-gran-backup-plan-permissions-error.aspx

 

TF254027 You must correct all errors before you continue

http://blog.hinshelwood.com/creating-a-backup-in-team-foundation-server-2010-using-the-power-tools/

 

TF255115 Access Denied when starting TFSAgent Service : http://blogs.blackmarble.co.uk/blogs/rfennell/post/2011/04/14/tf255115-access-denied-when-starting-tfsagent-service.aspx

 

TF255231:You cannot change the following URL of the server that is running SCVMM because other resources depend on the current URL

http://healmyscm.wordpress.com/category/3-continuous-improvement/troubleshooting/

 

TF261007 On importing the collection a failure is seen due to lab management configuration being present. [System.MissingFieldException 'ProjectServerRegistration']

http://seesharper.wordpress.com/2012/01/24/issues-when-importing-a-tfs-project-collection/

 

TF266026: http://blogs.blackmarble.co.uk/blogs/rfennell/post/2012/01/18/TF266026-error-when-a-workflow-will-not-start-in-a-lab-environment.aspx

 
TF400069

http://1poquitodtodo.blogspot.com/2012/03/tfs11-error-tf400069-en-una-instalacion.html

"The workbook cannot be opened" Error with SharePoint Server 2010 (and TFS 2010)

 

Cuando navego por un site de proyecto de TFS, y los web parts dicen:

The workbook cannot be opened.

Este error surge porque la cuenta de servicio para Excel Services no tiene acceso a la content database de Sharepoint.

Dos soluciones:

  • cambiar la identidad de App Pool del IIS para Excel Services (no recomendada) con la misma cuenta del App Pool del web application (asociada a la base de contenido que no tiene acceso)
  • dar permisos con un script de PowerShell
Add-PSSnapin Microsoft.SharePoint.PowerShell -EA 0

$webApp = Get-SPWebApplication
http://web application

$webApp.GrantAccessToProcessIdentity("cuenta de servicio")

 


Fuente:


http://blogs.msdn.com/b/jjameson


http://sharepointsoldiers.wordpress.com/


Más información:


Configurar Excel Services para TFS: http://blogs.msdn.com/b/team_foundation/archive/2010/03/06/configuring-sharepoint-server-2010-beta-for-dashboard-compatibility-with-tfs-2010-beta2-rc.aspx