无法登录rstudio-server

时间:2016-10-10 10:43:36

标签: r rstudio-server

我以前在Mac OS X 10.11.4上成功安装了带有brew install rstudio-server的rstudio-server。

现在,我正在尝试登录rstudio-server 0.99.902但没有成功。从客户端,我得到一个弹出窗口 -

  

“RStudio初始化错误”,“无法连接到服务”。

我使用的用户的用户ID为1100,因此我认为该问题与帐户权限无关。

在运行守护程序时,当我尝试登录时,/var/log/system.log中显示的错误是:

  

rserver [1100]:ERROR系统错误61(连接被拒绝)[request-uri = / rpc / client_init];   发生在:void rstudio :: core :: http :: LocalStreamAsyncClient :: handleConnect(const boost :: system :: error_code&)/tmp/rstudio-server-20160803-68705-uhvyws/rstudio-0.99.902/src/ CPP /型芯/包含/核心/ 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

崩溃报告:http://pastebin.com/GYkFZ8fT

在运行sudo /usr/local/bin/rserver --server-daemonize=0时,当我尝试登录时,没有错误输出到控制台,但我确实在浏览器的弹出窗口中出现此错误:Error occurred during transmission

崩溃报告:http://pastebin.com/kJMsPh6s

其他信息:

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

从R控制台运行sessionInfo()

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     

1 个答案:

答案 0 :(得分:3)

These two Github问题评论指出以下事实:

RStudio服务器在Mac OSX上不附带管理脚本。

这是固定的here

Updating您的#include <stdio.h> #include <string.h> int main ( void) { char* header = "HTTP POST /abc/def/ghi/klm/mno"; char temp[100]; int offset = 0; int span = 0; while ( header[offset]) { span = strspn ( header + offset, " ");//count spaces offset += span;//advance offset past spaces span = strcspn ( header + offset, " ");//count non-space if (span && span < 99) { strncpy ( temp, header + offset, span); temp[span] = 0;//terminate printf ( "%s\n", temp); } offset += span;//advance offset past non-space } return 0; } 应该会有所帮助。请注意,您应该先rstudio-server