Azure / AppConfiguration

Questions, feedback and samples for Azure App Configuration service
MIT License
240 stars 73 forks source link

_crypto.default.randomFillSync is not a function #395

Closed adriend-advz closed 4 years ago

adriend-advz commented 4 years ago

Hi!

Sorry for the noob question :) I'm trying to release an app configuration, using an agent and a SPN that is already working to push Docker images to an Azure Container Registry, but I'm getting the following error message: _crypto.default.randomFillSync is not a function

2020-09-09T22:59:44.6229623Z ##[debug]Evaluating condition for step: 'Azure App Configuration: apc-omc-9we-01' 2020-09-09T22:59:44.6230332Z ##[debug]Evaluating: succeeded() 2020-09-09T22:59:44.6230475Z ##[debug]Evaluating succeeded: 2020-09-09T22:59:44.6230716Z ##[debug]=> True 2020-09-09T22:59:44.6230925Z ##[debug]Result: True 2020-09-09T22:59:44.6231152Z ##[section]Starting: Azure App Configuration: apc-omc-9we-01 2020-09-09T22:59:44.6637104Z ============================================================================== 2020-09-09T22:59:44.6637224Z Task : Azure App Configuration Push 2020-09-09T22:59:44.6637349Z Description : Push key-values to an Azure App Configuration instance 2020-09-09T22:59:44.6637416Z Version : 1.0.0 2020-09-09T22:59:44.6637474Z Author : Microsoft Corporation 2020-09-09T22:59:44.6637567Z Help : https://marketplace.visualstudio.com/items?itemName=AzureAppConfiguration.dev-azure-app-configuration-task-push 2020-09-09T22:59:44.6637652Z ============================================================================== 2020-09-09T22:59:44.9570978Z ##[debug]agent.TempDirectory=D:\B1_work_temp 2020-09-09T22:59:44.9603553Z ##[debug]loading inputs and endpoints 2020-09-09T22:59:44.9610279Z ##[debug]loading ENDPOINT_AUTH_468bad46-9429-46b8-abe0-87763a5d53a4 2020-09-09T22:59:44.9624093Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_468bad46-9429-46b8-abe0-87763a5d53a4_AUTHENTICATIONTYPE 2020-09-09T22:59:44.9628983Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_468bad46-9429-46b8-abe0-87763a5d53a4_SERVICEPRINCIPALID 2020-09-09T22:59:44.9630819Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_468bad46-9429-46b8-abe0-87763a5d53a4_SERVICEPRINCIPALKEY 2020-09-09T22:59:44.9633498Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_468bad46-9429-46b8-abe0-87763a5d53a4_TENANTID 2020-09-09T22:59:44.9635763Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2020-09-09T22:59:44.9638116Z ##[debug]loading ENDPOINT_AUTH_SCHEME_468bad46-9429-46b8-abe0-87763a5d53a4 2020-09-09T22:59:44.9640260Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2020-09-09T22:59:44.9642395Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2020-09-09T22:59:44.9646835Z ##[debug]loading INPUT_CONFIGSTORENAME 2020-09-09T22:59:44.9649251Z ##[debug]loading INPUT_CONFIGURATIONFILE 2020-09-09T22:59:44.9651444Z ##[debug]loading INPUT_CONNECTEDSERVICENAME 2020-09-09T22:59:44.9653940Z ##[debug]loading INPUT_SEPARATOR 2020-09-09T22:59:44.9656089Z ##[debug]loading INPUT_STRICT 2020-09-09T22:59:44.9670384Z ##[debug]loaded 14 2020-09-09T22:59:44.9697285Z ##[debug]Agent.ProxyUrl= 2020-09-09T22:59:44.9706012Z ##[debug]Agent.ProxyUsername=undefined 2020-09-09T22:59:44.9706159Z ##[debug]Agent.ProxyPassword=undefined 2020-09-09T22:59:44.9706703Z ##[debug]Agent.ProxyBypassList= 2020-09-09T22:59:44.9708531Z ##[debug]expose agent proxy configuration. 2020-09-09T22:59:44.9710091Z ##[debug]Agent.CAInfo=undefined 2020-09-09T22:59:44.9710252Z ##[debug]Agent.ClientCert=undefined 2020-09-09T22:59:44.9710644Z ##[debug]Agent.SkipCertValidation=True 2020-09-09T22:59:45.0147633Z ##[debug]agent.proxyurl= 2020-09-09T22:59:45.0148199Z ##[debug]agent.proxyusername=undefined 2020-09-09T22:59:45.0149893Z ##[debug]agent.proxypassword=undefined 2020-09-09T22:59:45.0150566Z ##[debug]agent.proxybypasslist= 2020-09-09T22:59:45.0151136Z ##[debug]agent.proxybypasslist= 2020-09-09T22:59:45.0151488Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined 2020-09-09T22:59:45.0714766Z ##[debug]Agent.TempDirectory=D:\B1_work_temp 2020-09-09T22:59:45.3802574Z ##[debug]check path : D:\B1_work_tasks\AzureAppConfigurationPush_014d1f42-f7ad-4418-b165-5bf03802417e\1.0.0\task.json 2020-09-09T22:59:45.3804254Z ##[debug]adding resource file: D:\B1_work_tasks\AzureAppConfigurationPush_014d1f42-f7ad-4418-b165-5bf03802417e\1.0.0\task.json 2020-09-09T22:59:45.3804410Z ##[debug]system.culture=en-US 2020-09-09T22:59:45.3823373Z ##[debug]ConfigstoreName=apc-omc-9we-01 2020-09-09T22:59:45.3826560Z ##[debug]Strict=false 2020-09-09T22:59:45.3827612Z ##[debug]Prefix=undefined 2020-09-09T22:59:45.3827897Z ##[debug]Label=undefined 2020-09-09T22:59:45.3828075Z ##[debug]ContentType=undefined 2020-09-09T22:59:45.3830246Z ##[debug]Separator=. 2020-09-09T22:59:45.3830433Z ##[debug]Depth=undefined 2020-09-09T22:59:45.3833130Z ##[debug]ConfigurationFile=D:\B1_work\r4\a_Development_Omnichannel\apc-omc-we.properties 2020-09-09T22:59:45.3835038Z ##[debug]ConnectedServiceName=468bad46-9429-46b8-abe0-87763a5d53a4 2020-09-09T22:59:45.3844875Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data subscriptionid = 0c6f5972-43a6-41cf-83d0-b071ff7911cf 2020-09-09T22:59:45.3845116Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data subscriptionname = sub-omc-9sh-01 2020-09-09T22:59:45.3848423Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 auth param serviceprincipalid = 2020-09-09T22:59:45.3866936Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data environmentAuthorityUrl = https://login.windows.net/ 2020-09-09T22:59:45.3867457Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 auth param tenantid = 2020-09-09T22:59:45.3867622Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4=https://management.azure.com/ 2020-09-09T22:59:45.3867760Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data environment = AzureCloud 2020-09-09T22:59:45.3867907Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 auth scheme = ServicePrincipal 2020-09-09T22:59:45.3868045Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data msiclientId = undefined 2020-09-09T22:59:45.3868188Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/ 2020-09-09T22:59:45.3869476Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data AzureKeyVaultServiceEndpointResourceId = https://vault.azure.net 2020-09-09T22:59:45.3869641Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data AzureKeyVaultDnsSuffix = vault.azure.net 2020-09-09T22:59:45.3869806Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 auth param authenticationType = 2020-09-09T22:59:45.3869940Z ##[debug]credentials spn endpoint 2020-09-09T22:59:45.3870162Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 auth param serviceprincipalkey = 2020-09-09T22:59:45.3870314Z ##[debug]468bad46-9429-46b8-abe0-87763a5d53a4 data EnableAdfsAuthentication = false 2020-09-09T22:59:45.3870885Z ##[debug]{"subscriptionID":"0c6f5972-43a6-41cf-83d0-b071ff7911cf","subscriptionName":"sub-omc-9sh-01","servicePrincipalClientID":"","environmentAuthorityUrl":"https://login.windows.net/","tenantID":"","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"ServicePrincipal","activeDirectoryResourceID":"https://management.azure.com/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","authenticationType":"***","servicePrincipalKey":***,"isADFSEnabled":false,"applicationTokenCredentials":{"clientId":"***","domain":"***","baseUrl":"https://management.azure.com/","authorityUrl":"https://login.windows.net/","activeDirectoryResourceId":"https://management.azure.com/","isAzureStackEnvironment":false,"authType":"***","secret":***,"isADFSEnabled":false}} 2020-09-09T22:59:45.3876581Z ##[debug]Tags=undefined 2020-09-09T22:59:45.4107447Z ##[error]_crypto.default.randomFillSync is not a function 2020-09-09T22:59:45.4116968Z ##[debug]Processed: ##vso[task.issue type=error;]_crypto.default.randomFillSync is not a function 2020-09-09T22:59:45.4117347Z ##[debug]task result: Failed 2020-09-09T22:59:45.4134936Z ##[debug]Processed: ##vso[task.complete result=Failed;done=true;] 2020-09-09T22:59:45.4166139Z ##[section]Finishing: Azure App Configuration: apc-omc-9we-01

Thanks in advance for your help!

adriend-advz commented 4 years ago

Hi,

Fixed the issue by installing Node JS 11 on the release server and adding a use Node task in the release.

zhenlan commented 4 years ago

@adriend-advz thanks for the update.

@Yiming-Jia is there some dependency we should include in the pipeline task?

chrismcclure commented 3 years ago

Is there an answer to the question?

ChrisPeacock1 commented 3 years ago

That doesn't sound like a fix, more a workaround. If this step requires Node it should do it, or the docs should tell us to do it.