aggregator-cli icon indicating copy to clipboard operation
aggregator-cli copied to clipboard

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

Open ysharabi76 opened this issue 2 years ago • 4 comments

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

ysharabi76 avatar May 14 '23 08:05 ysharabi76

@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

rbhole avatar May 17 '23 14:05 rbhole

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

ysharabi76 avatar May 18 '23 11:05 ysharabi76

@ysharabi76 It mean this issue coming from azure services?

rbhole avatar May 18 '23 14:05 rbhole

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

ysharabi76 avatar May 31 '23 06:05 ysharabi76