Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot log-in to rstudio-server

I have previously successfully installed rstudio-server with brew install rstudio-server on a Mac OS X 10.11.4.

Now, I am trying to login to rstudio-server 0.99.902 without success. From the client side, I get a pop-up window saying -

"RStudio Initialization Error", "Unable to connect to service".

The user I am using has an user id of 1100, so I do not think the problem is related to account permissions.

While running the daemon, when I try to log-in, the error showing up in /var/log/system.log is this:

rserver[1100]: ERROR system error 61 (Connection refused) [request-uri=/rpc/client_init]; OCCURRED AT: void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const boost::system::error_code &) /tmp/rstudio-server-20160803-68705-uhvyws/rstudio-0.99.902/src/cpp/core/include/core/http/LocalStreamAsyncClient.hpp:119; LOGGED FROM: void rstudio::server::session_proxy::(anonymous namespace)::logIfNotConnectionTerminated(const rstudio::core::Error &, const http::Request &) /tmp/rstudio-server-20160803-68705-uhvyws/rstudio-0.99.902/src/cpp/server/ServerSessionProxy.cpp:308

Crash report: http://pastebin.com/GYkFZ8fT

While running sudo /usr/local/bin/rserver --server-daemonize=0, when I try to log-in, no error is output to the console but I do get this error on a pop-up window in the browser: Error occurred during transmission.

Crash report: http://pastebin.com/kJMsPh6s

Additional info:

rstudio-server verify-installation returns too many positional options have been specified on the command line.

Running sessionInfo() from R console:

R version 3.3.0 (2016-05-03) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.11.4 (El Capitan)  locale: [1] C  attached base packages: [1] stats     graphics  grDevices utils     datasets  methods   base      
like image 903
plant Avatar asked Oct 10 '16 10:10

plant


People also ask

Could not connect to the R session on RStudio server?

One of the things that make “unable to establish connection with r session” an unusually hard error message to fix is that it has more than one cause. Three known causes are interference from an anti-virus program, running RStudio as an administrator, and even a Rscript file trying to autosave.

Why is my RStudio not working?

If you have a firewall, HTTP or HTTPS proxy configured, add localhost and 127.0. 0.1 to the list of approved Hosts and Domains. After this, try restarting RStudio. If you have antimalware software configured that may be blocking RStudio, please check its settings and whitelist RStudio if necessary.


1 Answers

These two Github issue comments point to the fact that

RStudio Server doesn't ship with an administrative script on Mac OSX.

This was fixed here.

Updating your rstudio-server should help. Do note that you should brew tap brewsci/base first.

like image 146
hongsy Avatar answered Oct 07 '22 00:10

hongsy