question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure App Service Deploy failed - JavaScript heap out of memory

See original GitHub issue

I’m trying to deploy my NodeJS app using Azure App Service Deploy in the Release feature. I’m currently using VSTS default Hosted VS2017 as an agent.

Here’s log:

2017-07-06T08:48:14.6134738Z ##[section]Starting: Azure App Service Deploy: bapul-learning-admin-test
2017-07-06T08:48:14.6274747Z ==============================================================================
2017-07-06T08:48:14.6274747Z Task         : Azure App Service Deploy
2017-07-06T08:48:14.6274747Z Description  : Update Azure App Service using Web Deploy / Kudu REST APIs
2017-07-06T08:48:14.6274747Z Version      : 3.3.9
2017-07-06T08:48:14.6274747Z Author       : Microsoft Corporation
2017-07-06T08:48:14.6274747Z Help         : [More Information](https://aka.ms/azurermwebdeployreadme)
2017-07-06T08:48:14.6274747Z ==============================================================================
2017-07-06T08:48:17.7499766Z Got connection details for Azure App Service:'bapul-learning-admin-test'
2017-07-06T08:48:51.9896729Z FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
2017-07-06T08:48:52.1706751Z ##[error]Exit code 3 returned from process: file name 'C:\LR\mms\Services\Mms\Provisioner\TaskAgent\agents\2.119.1\externals\node\bin\node.exe', arguments '"d:\a\_tasks\AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1\3.3.9\azurermwebappdeployment.js"'.

I don’t think that my app causes this failure, since the build process was succeeded without any error.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:53 (18 by maintainers)

github_iconTop GitHub Comments

7reactions
bsouliercommented, Jan 1, 2019

For those who are still blocked on that, I have been able to solve this by replacing my “npm” task by a “Command line” task that run npm and set max_old_space_size as an environment variable.

image

4reactions
vincent1173commented, Mar 21, 2019

@rollercoasterdigital , @scotthwsnyder The issue is fixed and the fix will be available in next deployment (~4-5 weeks)

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript heap out of memory on Azure build - Stack Overflow
Solution for Azure Pipeline in Azure DevOps: - task: PowerShell@2 displayName: Build env: NODE_OPTIONS: --max_old_space_size=16384.
Read more >
Unable to publish Node app from VSTS to Azure web app
1 and publish the same using VSTS deploy process. We get the following error. FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out...
Read more >
Increase node heap memory size in azure httptrigger function
I'm creating serverless httptrigger function in azure. ... there is too many data loaded then I get JavaScript heap out of memory error....
Read more >
Intermittent JavaScript heap out of memory error ... - Reddit
Intermittent JavaScript heap out of memory error when building Angular app on Azure DevOps build agent. We get this error about once every...
Read more >
JavaScript heap out of memory in Angular 7 using Azure ...
I'm receiving the following error: FATAL ERROR: CALL_AND_RETRY_LAST After upgrading to Angular 7.1, the allocation failed because the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found