Skip to content
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

Running SFDX: Authorize an Org keeps running and never connected to Org #2996

Closed
hsomareddy opened this issue Feb 27, 2021 · 7 comments
Closed

Comments

@hsomareddy
Copy link

hsomareddy commented Feb 27, 2021

Salesforce CLI Keeps running

Summary

I am not able to connect Salesforce Org thru VS code. It keeps on running. I tried changing multiple browsers and also multiple times un-installed VS code but no luck.

Steps To Reproduce:

  1. Clicked 'No Default Org Set' and then selected SFDX: Authorize an Org option
  2. Routed to Chrome web browser and then entered Salesforce credentials.

Expected result

Salesforce Org should be connected.

Actual result

It keeps on running but never connect to Salesforce Org.

Additional information

Feel free to attach a screenshot.

VS Code Version:
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.18362

SFDX CLI Version:
v51.2.0
OS and version:
OS Name Microsoft Windows 10 Pro

@peternoges
Copy link

peternoges commented Feb 27, 2021

Same for me; i'm guessing its related to #2931 ?

I fixed this on my machine after doing all three steps 1,2, and 3. I only Noticed it working after completing 1,2,3 in sequential order:

  1. uninstalled/reinstalling node.js,
  2. uninstalling/reinstalling sfdx
  3. uninstalling/reinstalling Salesforce CLI in the following way:
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli

My environment:

SFDX version:
sfdx-cli/7.89.2-d1d2614d02 win32-x64 node-v14.15.4

Other info:
Salesforce CLI Integration 51.2.0
Salesforce Extension Pack 51.2.0
...

VSCODE:
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041

@hsomareddy
Copy link
Author

Same for me; i'm guessing its related to #2931 ?

I fixed this on my machine after doing all three steps 1,2, and 3. I only Noticed it working after completing 1,2,3 in sequential order:

  1. uninstalled/reinstalling node.js,
  2. uninstalling/reinstalling sfdx
  3. uninstalling/reinstalling Salesforce CLI in the following way:
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli

My environment:

SFDX version:
sfdx-cli/7.89.2-d1d2614d02 win32-x64 node-v14.15.4

Other info:
Salesforce CLI Integration 51.2.0
Salesforce Extension Pack 51.2.0
...

VSCODE:
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041

Hi Peter, I tried but not working for me. Please suggest what else be the problem?

@peternoges
Copy link

Same for me; i'm guessing its related to #2931 ?
I fixed this on my machine after doing all three steps 1,2, and 3. I only Noticed it working after completing 1,2,3 in sequential order:

  1. uninstalled/reinstalling node.js,
  2. uninstalling/reinstalling sfdx
  3. uninstalling/reinstalling Salesforce CLI in the following way:
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli

My environment:
SFDX version:
sfdx-cli/7.89.2-d1d2614d02 win32-x64 node-v14.15.4
Other info:
Salesforce CLI Integration 51.2.0
Salesforce Extension Pack 51.2.0
...
VSCODE:
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041

Hi Peter, I tried but not working for me. Please suggest what else be the problem?

@hsomareddy how did you perform 1 and 2? The trouble could be in how these steps are done. Can you share more detail?

@hsoma11
Copy link

hsoma11 commented Mar 1, 2021

Same for me; i'm guessing its related to #2931 ?
I fixed this on my machine after doing all three steps 1,2, and 3. I only Noticed it working after completing 1,2,3 in sequential order:

  1. uninstalled/reinstalling node.js,
  2. uninstalling/reinstalling sfdx
  3. uninstalling/reinstalling Salesforce CLI in the following way:
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_uninstall.htm
    https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli

My environment:
SFDX version:
sfdx-cli/7.89.2-d1d2614d02 win32-x64 node-v14.15.4
Other info:
Salesforce CLI Integration 51.2.0
Salesforce Extension Pack 51.2.0
...
VSCODE:
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19041

Hi Peter, I tried but not working for me. Please suggest what else be the problem?

@hsomareddy how did you perform 1 and 2? The trouble could be in how these steps are done. Can you share more detail?

Thanks a lot Peter. It worked fine after I followed the sequence.

@Koslan
Copy link

Koslan commented Mar 1, 2021

reproduced steps 1,2,3

but didn't help

My environment:
Windows 10 Enterprise OS Version: 10.0.19042 N/A Build 19042

sfdx-cli --version 6.14.11
sfdx-cli/7.89.2-d1d2614d02 win32-x64 node-v14.15.4

node --version
v14.16.0

VSCODE:
Version: 1.53.2 (user setup)
Commit: 622cb03f7e070a9670c94bae1a45d78d7181fbd4
Date: 2021-02-11T11:48:04.245Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042

@smaddox-sf
Copy link
Contributor

This is a duplicate of #2931 Closing this issue so we can consolidate the discussion.

It's noted on the thread of #2931, but I will note it here as well: The root cause is within the CLI. We will keep #2931 open for visibility or feel free to follow the CLI issue directly: forcedotcom/cli#881

@FedPete
Copy link

FedPete commented Apr 20, 2021

I think the problem lies in GIT preparation.
I had this problem too. Left VCode terminal open for some time and saw a lot of Git time outs.
I didn't have a Git repo for my Trailhead project (didn't know I needed one).
So I did a git init and the problem when away in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants