Rstudio will not launch: "This site can't be reached 127.0.0.1 refused to connect"

Error Information:

This site can’t be reached

127.0.0.1 refused to connect.

Try:

  • Checking the connection
  • Checking the proxy and the firewall

ERR_CONNECTION_REFUSED
Description of issue -
For a while I was able to launch Rstudio successfully however, spontaneously threw this error
Attempted steps taken to fix -
Reinstalled Rstudio
Updated R to v3.6 (the latest version)
Removed Rstudio caches
Reset Rstudio desktop state

System Information:

  • RStudio Edition: (Desktop or Server): 1 .2.5019
  • RStudio Version:
  • OS Version: Mojave 10.14.6
  • R Version: R version 3.6
  • Output your diagnostics report (if possible):
    Using R script: /Library/Frameworks/R.framework/Versions/3.6/Resources/bin/R

Attempting to launch R session...
R_HOME=/Library/Frameworks/R.framework/Resources
R_DOC_DIR=/Library/Frameworks/R.framework/Resources/doc
R_INCLUDE_DIR=/Library/Frameworks/R.framework/Resources/include
R_SHARE_DIR=/Library/Frameworks/R.framework/Resources/share
PATH=/Users/greenjod/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
HOME=/Users/greenjod

R session launched, attempting to connect on port 44897...
dyld: Symbol not found: _GEkillDevice
Referenced from: /Applications/RStudio.app/Contents/MacOS/rsession
Expected in: flat namespace
in /Applications/RStudio.app/Contents/MacOS/rsession

Connected to R session, attempting to initialize...

From RStudio Desktop Will Not Start on support.rstudio.com

Are you using RStudion embedded inside Anaconda?

I did not intend to run Rstudio through anaconda, but perhaps it decided to do that with the latest update or something.

See also:

This issue should be fixed in the latest release of RStudio, but evidently it is not in your case. Can you try the following:

export DYLD_INSERT_LIBRARIES=/Library/Frameworks/R.framework/Resources/lib/libR.dylib
/Applications/RStudio.app/Contents/MacOS/RStudio

and see if you have any better luck?

I'm also curious whether having anaconda3 on the PATH is causing issues for you. What is the output of:

which R

on your system?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.