Newer Version Available
Unable to Work After Failed Org Authorization
Sometimes you try to authorize a Dev Hub or a scratch org using the Salesforce CLI or
an IDE, but you don’t successfully log in to the org. The port remains open for the stray
authorization process, and you can’t use the CLI or IDE. To proceed, end the process
manually.
macOS or Linux
To recover from a failed org authorization on macOS or Linux, use a terminal to kill the process running on port 1717.
- From a terminal, run:
1lsof -i tcp:1717 - In the results, find the ID for the process that’s using the port.
- Run:
1kill -9 <the process ID>
Windows
To recover from a failed org authorization on Windows, use the Task Manager to end the Node process.
- Press Ctrl+Alt+Delete, then click Task Manager.
- Select the Process tab.
-
Find the process named Node.
- Select the process that you want to end, and then click End Process.