tfsaggregator / aggregator-cli

A new version of Aggregator aiming at Azure DevOps (ex Visual Studio Team Services)
https://tfsaggregator.github.io/
Apache License 2.0
73 stars 32 forks source link

Cannot create a new instance using install.instance as it times out as 30 minutes or errors #130

Closed rfennell closed 4 years ago

rfennell commented 4 years ago

I have been trying to get aggregator-cli setup to on a new instance, but I am having problems.

  1. Downloaded the latest ZIP'd release of aggregator-cli
  2. Made sure the zip did not have the blocked property, then unzipped the file
  3. Using the tool, logged into Azure and Azure DevOps
  4. Tried repeatedly to setup the a instance of the aggregator in Azure, but it is failing, and doing it very sloooowly at that
C:\Downloads\aggregator-cli-win-x64> .\aggregator-cli.exe install.instance --verbose --name rfado --location westeurope
[2020-06-11 15:39:57Z] Aggregator CLI v0.9.0+local.development (build: 0.9.0.0 Release) (c) TFS Aggregator Team
[2020-06-11 15:39:58Z] Authenticating to Azure...
[2020-06-11 15:39:58Z] Connected to subscription b59e7f04-c6e8-40e7-b839-908cb62c8f22
[2020-06-11 15:39:58Z] Authenticating to Azure DevOps...
[2020-06-11 15:39:59Z] Connected to dev.azure.com
[2020-06-11 15:39:59Z] Checking if Resource Group aggregator-rfado already exists
[2020-06-11 15:40:00Z] Started deployment (id: aggregator0842073954c)
[2020-06-11 15:40:47Z] Deployment running (3s)
[2020-06-11 15:41:12Z] Deployment Succeeded
[2020-06-11 15:41:12Z] Checking runtime package versions in GitHub
[2020-06-11 15:41:12Z] Found v0.9.10 on 16/04/2020 21:45:04 +00:00 in GitHub .
[2020-06-11 15:41:12Z] Latest Runtime package version is 0.9.10 (released on 16/04/2020 21:45:04 +00:00).
[2020-06-11 15:41:12Z] Locally cached Runtime package version is 0.9.10.
[2020-06-11 15:41:12Z] Retrieving functions runtime from rfado app
[2020-06-11 15:46:14Z] Cannot read aggregator-manifest.ini: Site Not Found
[2020-06-11 15:46:14Z] Function Runtime version is 0.0.0.
[2020-06-11 15:46:14Z] Using local cached runtime package 0.9.10
[2020-06-11 15:46:14Z] Uploading runtime package to rfadoaggregator.azurewebsites.net
[2020-06-11 15:53:21Z] Error while copying content to a stream.

I have tried the following

Is this a known issue, a random network or Azure issue, or have I missed something obvious?

giuliov commented 4 years ago

Love to hear from you @rfennell. Sadly I cannot check as my Internet is down at the moment and struggling to accomplish something useful via phone's 4G.

There is nothing wrong in what you are trying. Another attempt is to create the RG in advance and pass the name as a parameter.

Update: your log shows that upload is timing out, maybe there was some change in Kudu that breaks our code.

rfennell commented 4 years ago

Hi @giuliov, I have looked on the portal and it seems to have created the resources in the resource group, the problem appears to when it is uploading the function logic.

So I have these resources

image

And I can see load on the function

image

On my last test I got

[2020-06-11 16:30:50Z] Uploading runtime package to rfadoaggregator.azurewebsites.net
[2020-06-11 16:56:43Z] Upload failed with Bad Gateway
[2020-06-11 16:56:43Z] Failed uploading Runtime to rfadoaggregator.azurewebsites.net.
[2020-06-11 16:56:43Z] Failed!

So I am thing an Azure issue, I will try not using WIFI

rfennell commented 4 years ago

And that fixed it - as soon as a swapped to Ethernet to my router it worked.

So that is strange, as I was not aware I had any WIFI use.

Hope you broadband get sorted soon

giuliov commented 4 years ago

It's an ARM template that creates the resources, then Aggregator downloads the runtime from GitHub. At last, it calls the Kudu zipdeploy API to upload said runtime (a bunch of DLLs) to the Function.