-
Notifications
You must be signed in to change notification settings - Fork 78
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
sf project deploy start command throws "connect ENOMEM" error #2452
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
That sounds like Salesforce org (on the server) is throwing that error intermittently. That's definitely a salesforce IP address. We have some code to retry all the intermittent errors that we could add this to. Thanks for the doctor logs, those help avoid other basic questions! ("how big is your deployment" etc.) |
when I retire from coding to focus on my rap career, |
This issue has been linked to a new work item: W-14084967 |
My guess is that it exits without showing anything because the main node process kills itself when there isnt enought memory. It would be good if the logs could show how much memory is being consumed. |
I don't think the error is coming from node |
BingGPT also thinks it is due to Node running out of memory. But maybe he is biased like I'm haha Prompt
|
I noticed the potential fix has been merged. How do I validate? Do I have to wait for the next cli release? |
@m-rodriguez7 Open a terminal and run this command depending on your OS: macos/linux export NODE_OPTIONS=--max-old-space-size=8192 windows set NODE_OPTIONS="--max-old-space-size=8192" |
you can try it in the We aren't promoting from RC/latest until Friday because of Dreamforce. |
@AllanOricil I did try @mshanemc The fix looks promising. I did installed sf cli version |
Right, if you're over 80 years old, it might apply 😉 |
Summary
About two weeks ago, several of our developers started experiencing an issue with the
sf project deploy start
command: for some reason, the deploy command exits before the deployment completes. This issue happens when deploying to a scratchorg. As a result, the scripts we use to automatically push components to scratchorg are failing. What has made troubleshooting difficult is that the issue happens intermittently. Sometimes the command displays deployment results and other times it doesn't. We even get the error when using the older push/deploy sfdx commands.Can you help us understand what causes a
connect ENOMEM
error?Attached are the logs generated by
sf doctor
.Logs
Steps To Reproduce
Difficult to reproduce. However, this is what we are doing...
sf org create scratch --definition-file config/project-scratch-def.json --alias <org_alias>
sf project deploy start --target-org <org_alias>
Expected result
Once metadata components deploy to a scratchorg, SF cli should display deployment results
Actual result
In the command line terminal, SF cli displays the error below. In the scratchorg "Deployment Status" page, however, the deployment progress can still be monitored until completion.
Error (1): Metadata API request failed: request to https://littledipper-strawberry-7315.scratch.my.salesforce.com/services/Soap/m/58.0 failed, reason: connect ENOMEM 13.109.185.171:443 - Local (0.0.0.0:0)
This is breaking our developer scripts.
System Information
Additional information
The text was updated successfully, but these errors were encountered: