• Kai Wang 18
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,

I am running the CLI command to create a scratch org,
​sfdx force:org:create -s -f config/project-scratch-def.json -a orgdev2

project-scratch-def.json file:

{
"orgName": "ccoenraets Company",
"edition": "Developer",
"orgPreferences" : {
"enabled": ["S1DesktopEnabled"]
}
}
However, I keep getting the same error in several different machines.
ERROR:  Socket timeout occurred while listening for results.

Try this:
Use command "sfdx force:data:soql:query -q "SELECT Status FROM ScratchOrgInfo WHERE Id=''"" to retry. You may consider increasing --wait parameter value to increase timeout.
Both http_proxy and https_proxy have been set in the environment variables. And I am able to use the sfdx force:auth:jwt:grant to authorize to the Dev Hub, so it should NOT be a proxy problem.

Also from the Dev Hub, I can see the scratch org has been created successfully, but cannot access since the token is not being returned from the force:org:create command.

Any ideas?

 
When running 
 
sfdx force:org:create -s -f config/project-scratch-def.json -a GeoAppScratch

I am getting:
ERROR running force:org:create:  Socket timeout occurred while listening for results.

Try this:
You may consider increasing the --wait parameter value to increase timeout.
I get the error a few seconds after I run the command and changing the wait parameter does not help. Could the fact that I am behind proxy be the issue? I have set it up as per following:  https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli_firewall.htm? search_text=proxy and I am able to use such commands as sfdx update or sfdx:force:org:open etc.