Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Azure App Service deploy : TypeError: Cannot read property 'retrieveSecret' of undefined #18359

Closed
2 of 4 tasks
corentinvds opened this issue May 25, 2023 · 18 comments
Closed
2 of 4 tasks

Comments

@corentinvds
Copy link

Task name

Azure App Service deploy

Task version

4.223.0

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows

Task log

##[section]Starting: Deploy [REMOVED]
==============================================================================
Task         : Azure App Service deploy
Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
 Version      : 4.223.0
 Author       : Microsoft Corporation
 Help         : https://aka.ms/azureappservicetroubleshooting
 ==============================================================================
 Got service connection details for Azure App Service:'[REMOVED]'
 [command]C:\[REMOVED]\_work\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\4.223.0\node_modules\azure-pipelines-tasks-webdeployment-common\7zip\7zip\7z.exe x -oC:\[REMOVED]\_work\_temp\temp_web_package_14232955676860182 C:\[REMOVED].zip

7-Zip [64] 16.00 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-10

Scanning the drive for archives:
1 file, 156212779 bytes (149 MiB)

Extracting archive: [REMOVED]
--
Path = [REMOVED]
Type = zip
Physical Size = 156212779

Everything is Ok

Folders: 82
Files: 663
Size:       398178722
Compressed: 156212779
##[warning]Resource file haven't been set, can't find loc string for key: VariableSubstitutionInitiated
VariableSubstitutionInitiated C:\[REMOVED]\_work\_temp\temp_web_package_14232955676860182\[REMOVED].dll.config
##[warning]Resource file haven't been set, can't find loc string for key: SubstitutionForXmlNode
SubstitutionForXmlNode appSettings
##[warning]Resource file haven't been set, can't find loc string for key: SkippedUpdatingFile
SkippedUpdatingFile C:\[REMOVED]\_work\_temp\temp_web_package_14232955676860182\[REMOVED].dll.config
##[warning]Resource file haven't been set, can't find loc string for key: VariableSubstitutionInitiated
VariableSubstitutionInitiated C:\[REMOVED]\_work\_temp\temp_web_package_14232955676860182\app.config
##[warning]Resource file haven't been set, can't find loc string for key: SubstitutionForXmlNode
SubstitutionForXmlNode appSettings
##[warning]Resource file haven't been set, can't find loc string for key: SkippedUpdatingFile
SkippedUpdatingFile C:\[REMOVED]\_work\_temp\temp_web_package_14232955676860182\app.config
##[warning]Resource file haven't been set, can't find loc string for key: VariableSubstitutionInitiated
VariableSubstitutionInitiated

[REMOVED]

JSONvariablesubstitutionappliedsuccessfully
JSONvariablesubstitutionappliedsuccessfully
Trying to update App Service Application settings. Data: null
App Service Application settings are already present.
##[error]TypeError: Cannot read property 'retrieveSecret' of undefined
Successfully updated deployment History at [REMOVED]
App Service Application URL: [REMOVED]
##[section]Finishing: Deploy [REMOVED]

Relevant log output

##[warning]Resource file haven't been set, can't find loc string for key: VariableSubstitutionInitiated
...
##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

Aditional info

This is blocking multiple releases. Previous releases releases succeeded without modifications on our side. The last successful release occurs on 2023-05-23 with version 4.221.103.
@freke1981SWE
Copy link

I also just started to get this error.

@Ghkuijer
Copy link

Yes also the case here. This issue seems related to #16821 where the same kind of issue occurred.

@MatthewSteeples
Copy link

We're seeing it here but with a lot less output

2023-05-25T10:43:22.7835477Z ==============================================================================
2023-05-25T10:43:22.7835639Z Task         : Azure App Service deploy
2023-05-25T10:43:22.7835717Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2023-05-25T10:43:22.7835886Z Version      : 4.223.0
2023-05-25T10:43:22.7835948Z Author       : Microsoft Corporation
2023-05-25T10:43:22.7836023Z Help         : https://aka.ms/azureappservicetroubleshooting
2023-05-25T10:43:22.7836133Z ==============================================================================
2023-05-25T10:43:24.7074211Z Got service connection details for Azure App Service:'xxxx-webjobv3'
2023-05-25T10:43:26.7283711Z Trying to update App Service Application settings. Data: null
2023-05-25T10:43:26.8735492Z App Service Application settings are already present.
2023-05-25T10:43:27.1875104Z ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined
2023-05-25T10:43:28.0687226Z Successfully added release annotation to the Application Insight : xxxx
2023-05-25T10:43:29.1945419Z Successfully updated deployment History at https://xxxx-webjobv3.scm.azurewebsites.net/api/deployments/412361685011408061
2023-05-25T10:43:29.1965532Z App Service Application URL: https://xxxx-webjobv3.azurewebsites.net
2023-05-25T10:43:29.2091180Z ##[section]Finishing: Azure App Service Deploy: xxxx-webjobv3

Our YAML for this task is

          - task: AzureRmWebAppDeployment@4
            displayName: 'Azure App Service Deploy: xxxx-webjobv3'
            inputs:
              azureSubscription: 'Microsoft Azure'
              WebAppName: 'xxxx-webjobv3'
              package: '$(Pipeline.Workspace)/Ledgerscope.WebJob.zip'
              enableCustomDeployment: true
              TakeAppOfflineFlag: false
              RemoveAdditionalFilesFlag: true
              ExcludeFilesFromAppDataFlag: false
              RenameFilesFlag: false

v4.221.103 was working fine

@alexchx
Copy link

alexchx commented May 25, 2023

We have been suffering the same error too since 2 hours ago, any advice to fix this?

@Sharparam
Copy link

This is preventing deploys for us as well, when using AzureRmWebAppDeployment@4.

@bjorkholm-g
Copy link

Seems to be identical to #18364

@kjetilormestadeid
Copy link

same issue, ##[warning]Resource file haven't been set, can't find loc string for key: JSONvariableSubstitution ,

@GerardGroenewegen
Copy link

same issue here, ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

@chris-kruining
Copy link

we also experience this issue, are deploy pipelines are down atm

@anitaupatil101
Copy link

anitaupatil101 commented May 25, 2023

we also experience same issue.

2023-05-25T12:26:17.1730861Z ##[section]Starting: Deploy Azure App Service
2023-05-25T12:26:17.1842823Z ==============================================================================
2023-05-25T12:26:17.1842994Z Task : Azure App Service deploy
2023-05-25T12:26:17.1843080Z Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2023-05-25T12:26:17.1843218Z Version : 4.223.0
2023-05-25T12:26:17.1843416Z Author : Microsoft Corporation
2023-05-25T12:26:17.1843484Z Help : https://aka.ms/azureappservicetroubleshooting
2023-05-25T12:26:17.1843566Z ==============================================================================
2023-05-25T12:26:18.8239098Z Trying to update App Service Application settings. Data: null
2023-05-25T12:26:19.0091353Z App Service Application settings are already present.
2023-05-25T12:26:19.3011324Z ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined
2023-05-25T12:26:20.4878266Z ##[section]Finishing: Deploy Azure App Service

@XSSammy
Copy link

XSSammy commented May 25, 2023

Same issue here ##[error]TypeError: Cannot read property 'retrieveSecret' of undefined

@neisep
Copy link

neisep commented May 25, 2023

Same issue here

@etheone
Copy link

etheone commented May 25, 2023

Same issue here using V4 of Azure App Service Deploy. It works if we change the version of the task to V3.

@00specter00
Copy link

Same issue here

@LuizOVianna
Copy link

Azure Devops. Version 4.223.0. Same error here.

@djspaan
Copy link

djspaan commented May 25, 2023

Seems fixed now!

@LuizOVianna
Copy link

In fact, I ran again my job with no changes and worked, @djspaan is right. Seems fixed.

@ghost
Copy link

ghost commented May 25, 2023

Duplicating with #18361 .

@ghost ghost closed this as completed May 25, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests