Skip to content

sf project retrieve start freezes when connected to some sandboxes #3306

@msouther-lisc

Description

@msouther-lisc

Summary

I was asked by my Salesforce Customer Support rep to log an issue here based on our conversation. I am experiencing an issue with retrieving metadata from certain sandboxes, but not others. For example, this command works fine and the permission set metadata is retrieved:

sf project retrieve start -m PermissionSet:GCM_Super_Users -o LISCERP-UAT

However, when I run the following command...

sf project retrieve start -m PermissionSet:GCM_Super_Users -o LISCERP-MSDEV2

...my terminal appears to get stuck looking something like this:

────────────── Retrieving Metadata ──────────────

√Preparing retrieve request 18ms

  • Sending request to org 29.91s
    ■Waiting for the org to respond
    ■Done

Status: -
Elapsed Time: 29.95s

Then about 10 minutes later it returns with an ECONNABORTED error.

Steps To Reproduce

My support rep has been unable to reproduce this issue using a test user authenticated to one of the same sandboxes where I am experiencing the issue. As such, I am not confident I can provide a scenario for another person to reliably reproduce the outcome I'm seeing. There is clearly an element of this problem that is either specific to certain sandbox instances, users, sessions, etc., that makes this difficult to pinpoint.

Expected result

Metadata (e.g. a Permission Set XML) should be retrieved from my sandbox and saved to my local SFDX directory.

Actual result

The process freezes and then much later exits, as described above.

System Information

I am primarily using Git Bash on Windows. I can also reproduce the issue using PowerShell.

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.90.4",
  "nodeVersion": "node-v22.15.0",
  "osVersion": "Windows_NT 10.0.19044",
  "rootPath": "C:\\Users\\MSouther\\AppData\\Local\\sf\\client\\2.90.4-1709262",
  "shell": "C:\\Users\\MSouther\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.29 (core)",
    "@oclif/plugin-commands 4.1.25 (core)",
    "@oclif/plugin-help 6.2.28 (core)",
    "@oclif/plugin-not-found 3.2.52 (core)",
    "@oclif/plugin-plugins 5.4.38 (core)",
    "@oclif/plugin-search 1.2.24 (core)",
    "@oclif/plugin-update 4.6.41 (core)",
    "@oclif/plugin-version 2.2.28 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.40 (core)",
    "@oclif/plugin-which 3.2.35 (core)",
    "@salesforce/cli 2.90.4 (core)",
    "apex 3.6.18 (core)",
    "api 1.3.3 (core)",
    "auth 3.6.122 (core)",
    "code-analyzer 5.1.0 (user) published 1 days ago (Tue May 27 2025)",
    "data 4.0.34 (core)",
    "deploy-retrieve 3.22.15 (core)",
    "info 3.4.63 (core)",
    "limits 3.3.55 (core)",
    "marketplace 1.3.8 (core)",
    "org 5.7.10 (core)",
    "packaging 2.13.4 (core)",
    "schema 3.3.63 (core)",
    "settings 2.4.29 (core)",
    "sobject 1.4.58 (core)",
    "telemetry 3.6.41 (core)",
    "templates 56.3.48 (core)",
    "trust 3.7.93 (core)",
    "user 3.6.23 (core)"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingWe're actively investigating this issuevalidatedVersion information for this issue has been validated

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions