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

Object reference not set to an instance of an object on insall.instance #283

Open ysharabi76 opened 1 year ago

ysharabi76 commented 1 year ago

Installed .net core 3.1 + 6 + 7 runtimes, gave full permissions to service principal and to the token in ADO. I tried from windows 10 + ubuntu 22.04 and aggregator cli v1.2.0 (1.1.0 gave the exact same error) Deployment succeeded in Azure. Can someone please point me to what i have done wrong? image

rbhole commented 1 year ago

@giuliov This is the issue I'm facing for 2 weeks.

PS D:\aggregator-cli-win-x64> .\aggregator-cli.exe add.rule --verbose --instance AutoCalculateaggregator --name IssueCalculator --resourceGroup vm-east1 --file D:\Autocalculation\issueCalculation.rule
[2023-05-17 18:53:57Z] aggregator-cli v1.2.0 (build: 1.2.0.0 Release) (c) Copyright c TFS Aggregator Team
[2023-05-17 18:53:57Z] Authenticating to Azure...
[2023-05-17 18:53:57Z] Connected to subscription XXXXXXXXXXXXXXXXXXX
[2023-05-17 18:53:57Z] Validate rule file D:\Autocalculation\issueCalculation.rule
[2023-05-17 18:53:59Z] Rule file is valid
[2023-05-17 18:53:59Z] Layout rule files
[2023-05-17 18:53:59Z] Retrieving deployed aggregator-function.dll
[2023-05-17 18:53:59Z] Retrieving Kudu publish credentials for AutoCalculateaggregator.
[2023-05-17 18:54:01Z] Object reference not set to an instance of an object.
[2023-05-17 18:54:01Z] Exiting with code 99
ysharabi76 commented 1 year ago

Something has changed. webFunctionApp.GetPublishingProfile() in KuduApi.cs is returning null for ftp username and password...

rbhole commented 1 year ago

@ysharabi76 It mean this issue coming from azure services?

ysharabi76 commented 1 year ago

I changed the function configuration under General settings, FTP state, from FTPS only to all allowed. It worked for me.