Closed DanielBMann9000 closed 5 years ago
I am seeing a similar issue with "work item created" event. I get Status Code: 500. The "work item update" event still works.
How do i update the current azure appservice running the service with the newest build fixing this issue? Do i have to redeploy a new box or is the a script to deploy the latest version on the box?
Looking in the in the log file: 2018-03-15T06:32:22 PID[5920] Error [Critical] 00.068 dfb13329-3301-406f-b217-32b285669b17 Exception encountered processing notification: TF31002: Unable to connect to this Team Foundation Server: https://nxax7.visualstudio.com/8225915f-3591-4127-90ab-08c907f970d9/. Team Foundation Server Url: https://nxax7.visualstudio.com/8225915f-3591-4127-90ab-08c907f970d9/.
Possible reasons for failure include:
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
Stack Trace: at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
at Aggregator.Core.Facade.WorkItemRepository..ctor(IRuntimeContext context)
at Aggregator.WebHooks.Controllers.WorkItemController.<>c.
I've got the same this with the work item created - has anyone resolved it yet?
The develop
branch, i.e. v2.4.0-RC1 contains a fix.
You need to build locally as it breaks Azure CI.
Do i need to deploy a new instance to update the tfsaggregator-webhook appservice or can I update it? I can not find any information on how to update the appservice with the newest build from Git. @giuliov can you help?
@mihtr assuming that you deployed tfsaggregator-webhook in Azure as an App Service, then the answer is yes, you can update it How is more complicated. Sketchy, you have to disconnect the current deploy and setup a Continuous Delivery pipeline in the App Service blade
Thank you @giuliov . I can build and deploy 2.4.0-rc1 using VS, but will have to wait until you build 2.4.0 and the I can sync using deployment options in Azure portal. Is there a expected release date for 2.4.0? TIA
I'm also hitting this problem.
If anyone has a PR that fixes the Azure deploy button then we can release. Currently stumped by what's not working there.
On Tue, 8 May 2018, 18:48 John D. Shkolnik, notifications@github.com wrote:
I'm also hitting this problem.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tfsaggregator/tfsaggregator-webhooks/issues/22#issuecomment-387467887, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-uS75zbO8LL86FTvRRsFk7VN6S7jdIks5twcxqgaJpZM4SqeNu .
I tried deploying the develop branch to Azure but I get the following error:
D:\home\site\repository\Aggregator.WebHooks\Aggregator.WebHooks.csproj(74,64): error MSB4066: The attribute "Version" in element
MSBuild 14 matches Visual Studio 2015: we switched to Visual Studio 2017 a while ago
I built it locally and deployed it so now I have the develop branch running, but I'm still getting a 404:
2018-05-11T10:35:39 PID[12980] Verbose [Verbose] 494.191 pre-request-parsing User 'vsts' authenticated 2018-05-11T10:35:39 PID[12980] Verbose [Verbose] 493.400 27646e0e-b520-4d2b-9411-bba7524947cd Connecting to https://smartframeworkdev.visualstudio.com/c24e8fdf-85ad-418c-bbf0-40b7090eb17b/ impersonating PersonalAuthenticationToken, running as test-vstsaggregator 2018-05-11T10:35:40 PID[12980] Error [Critical] 00.674 e06ea187-bfbe-475e-918d-834f4ed9e7b3 Exception encountered processing notification: TF31002: Unable to connect to this Team Foundation Server: https://smartframeworkdev.visualstudio.com/c24e8fdf-85ad-418c-bbf0-40b7090eb17b/. Team Foundation Server Url: https://smartframeworkdev.visualstudio.com/c24e8fdf-85ad-418c-bbf0-40b7090eb17b/.
Possible reasons for failure include:
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
Stack Trace: at Microsoft.TeamFoundation.Client.TfsConnection.EnsureProviderConnected()
at Aggregator.Core.Facade.WorkItemRepository..ctor(IRuntimeContext context)
at Aggregator.WebHooks.Controllers.WorkItemController.<>c.
As Jesse wrote 3 days ago, Kudu does not work with our project anymore. Currently you must build locally using Visual Studio Community or so and publish to an IIS site, like Azure Web App.
We have a few ideas in the work to offer a better experience but we need some time to test them.
@giuliov That's what I did. I downloaded the develop branch, built it locally and published it to an Azure Web App through Visual Studio. However the develop branch doesn't seem to solve the 404 issue.
Hi. What is the status of this problem please? Is the recommended solution still to build the develop branch and deploy manually to Azure?
Thanks
I'm new to TFS Aggregator and spent a large chunk of yesterday getting things set up and running only to run into this issue.
I followed the directions as specified at - https://tfsaggregator.github.io/admin/install-webhooks/
Is there a proven work around to properly get authentication working? And if not, any sort of timetable when you expect to have a solution?
@raistlin-ht I am really surprised that you were able to deploy: as far as I know I does not work for the develop
branch (just checked) and the master
branch is not working anymore with VSTS.
My current suggestion is to build and deploy the develop
branch yourself using Visual Studio.
I hope to find the time in the next weeks to find a solution for deployment and update both code and documentation. Contributions are welcomed.
I built and deployed the develop branch but am getting this:
Status Code: 500
Reason Phrase: Internal Server Error
HTTP Version: 1.1
Headers:
{
Pragma: no-cache
Cache-Control: no-cache
Date: Wed, 27 Jun 2018 02:59:09 GMT
Set-Cookie: ARRAffinity=e3a8761ce3056497006ce92f995ddcf6bb4651f4a55edeef03442174d6d35b37;Path=/;HttpOnly;Domain=tfsaggregator-webhooks93z7.azurewebsites.net
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 36
Content-Type: application/json; charset=utf-8
Expires: -1
}
Have you checked the instructions in the admin pages? We explain configuration, logging and troubleshooting.
The version in the develop
branch looks for many conditions in the incoming message or the configuration so I expect that you can find an explicit error somewhere.
If you want a more interactive support, join the Slack workspace (time-zone permitting).
I did the following to fix the issue.
Starting a few days ago, a client had the Aggregator start to fail against their VSTS account. I was able to track down the root cause to a "404" error when trying to connect back to VSTS with the URLs scraped from the JSON generated by the service hooks.
I identified the problem: The URI parsing logic strips off everything up to and including the _api part of the URI. In the case of VSTS, this now includes the Team Project GUID. As a result, trying to authenticate to that as though it was the Team Project Collection URI results in a 404 error.
Fixed in PR #21.