locked
PWA server name change - now cannot register PWA with TFS

    Pregunta

  • Hi

    Running TFS 2012 RC with Project 2010.

    We had TFS 11 beta syncing with PWA (with URL http://<oldservername>/PWA), but since then have upgraded TFS to the 2012 RC, and also renamed the server PWA is running on (and hence the URL)

    Had issues getting the sync to work, so decided to run /UnregisterPWA, and start again.

    Now, when I run /GetRegisteredPWA I get:

    No PWA instances are registered.

    Attempting to run /RegisterPWA with the new URL http://<servername>/PWA I get:

    Registering PWA http://<servername>/PWA

    ........TF244011: The following PWA instance is not currently registered: http://<servername>/PWA. If this PWA was previously registered under a different URL, you can re-register it by using /RegisterPWA and by specifying the /previousPwa argument.

    So, attempt to run /RegisterPWA with the /previousPWA argument, and I get:

    ........TF244011: The following PWA instance is not currently registered: http://<oldservername>/PWA.

    I've also tried using the /force argument with no joy.

    So, I'm a bit stuck! I've even tried re-registering the oldservername URL, but with the same errors. Any help greatly appreciated.

    (Similar to http://social.msdn.microsoft.com/Forums/en-US/tfsprojectsrvint/thread/345ec7fa-88a3-4adb-ab32-25f3f34b8a73, but following the steps, haven't been able to fix...)

    miércoles, 13 de junio de 2012 10:55

Respuestas

  • Usually if your PWA url changes you should run

    RegisterPWA /PWA:<NewPWAUrl> /PreviousPWA:<OldPWAUrl>

    Now that you have passed that stage can you give me more info on how you did /UnregisterPWA.

    If you had the sync working, I assume you did unmap the plan and unmapPWAFromTPC and then did UnRegisterPWA and everything worked successfully.

    If not please provide more info.

    From the error looks like TFS has no info of the PWA but PWA still has TFS instance Url and Id.

    If you have UnregisterPWA all the binding b/w the existing Project Server tasks and TFS work items is lost.

    Here is a workaround that I am not sure if it will work but worth trying.

    Go to PWA Project Server Settings page -> Enterprise Custom Fields and Lookup Tables -> Click on "Microsoft.VSTS.ProjSrv.TFSMapLT.DoNotDelete" lookup table.

    Copy the 1 row data about the TFS url and instance ID for backup purposes and delete the row.

    Now try RegisterPWA /PWA:  (Don't use previousPWA or force args)

    Hope it helps,


    Smitha Saligrama MSFT

    • Marcado como respuesta wedeman viernes, 15 de junio de 2012 9:03
    jueves, 14 de junio de 2012 23:58

Todas las respuestas

  • Usually if your PWA url changes you should run

    RegisterPWA /PWA:<NewPWAUrl> /PreviousPWA:<OldPWAUrl>

    Now that you have passed that stage can you give me more info on how you did /UnregisterPWA.

    If you had the sync working, I assume you did unmap the plan and unmapPWAFromTPC and then did UnRegisterPWA and everything worked successfully.

    If not please provide more info.

    From the error looks like TFS has no info of the PWA but PWA still has TFS instance Url and Id.

    If you have UnregisterPWA all the binding b/w the existing Project Server tasks and TFS work items is lost.

    Here is a workaround that I am not sure if it will work but worth trying.

    Go to PWA Project Server Settings page -> Enterprise Custom Fields and Lookup Tables -> Click on "Microsoft.VSTS.ProjSrv.TFSMapLT.DoNotDelete" lookup table.

    Copy the 1 row data about the TFS url and instance ID for backup purposes and delete the row.

    Now try RegisterPWA /PWA:  (Don't use previousPWA or force args)

    Hope it helps,


    Smitha Saligrama MSFT

    • Marcado como respuesta wedeman viernes, 15 de junio de 2012 9:03
    jueves, 14 de junio de 2012 23:58
  • Thanks Smitha - that's fixed the issue!

    In answer to your questions, yes it was syncing successfully before, and I didn't have any error messages when I unregistered.

    A small point - After deleting the row, I needed to use the /force argument - see below:


    tfsadmin projectserver /registerpwa /tfs:http://server:8080/tfs /pwa:http://server/PWA

    Registering PWA http://server/PWA

    ................................................................................
    .........................................TF244085: The following PWA instance is
     registered to Team Foundation Server "": http://server/PWA. You must unregister
     it from that Team Foundation Server.


    tfsadmin projectserver /registerpwa /tfs:http://server:8080/tfs /pwa:http://server/PWA /force

    Registering PWA http://so-tfs/PWA

    ............................
    You have successfully registered PWA http://so-tfs/PWA.

    Wait a few minutes before running another provisioning command while background
    processes complete.

    Thanks again. 

    viernes, 15 de junio de 2012 9:03