Newer Version Available

This content describes an older version of this product. View Latest

Unable to Work After Failed Org Authorization

Sometimes you try to authorize a Dev Hub org 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.

  1. From a terminal, run:
    1lsof -i tcp:1717
  2. In the results, find the ID for the process that’s using the port.
  3. 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.

  1. Press Ctrl+Alt+Delete, then click Task Manager.
  2. Select the Process tab.
  3. Find the process named Node.

    If you’re a Node.js developer, you might have several running processes with this name.

    Note

  4. Select the process that you want to end, and then click End Process.