Initctl: Unknown instance: error after changing Rstudio conf

I have a new version of R installed on an aws machine (which for some reason comes with the old version, and it's almost impossible to just use yum or apt-get to work). I want rstudio to point to this new version, which I built from the source code without throwing away the old version. So I go to /etc/rstudio/rserver.conf( documentation ) and change the content to:

# Server Configuration File
rsession-which-r=/root/R-3.2.1/bin/R

I can confirm that a new version of R is installed in this place, but then I get an error after restarting the rstudio server.

root@ip-172-31-40-49 rstudio]$ rstudio-server restart
initctl: Unknown instance:

What should I do?

+4
source share
3 answers

Below worked for me:

1) check the process that used 8787

sudo fuser 8787/tcp

2) -k, .

sudo fuser -k 8787/tcp

3) RStudio Server

sudo rstudio-server start

.

+15

, ,

rstudio-server verify-installation

R RStudio , , .

-bash-4.1$ sudo rstudio-server verify-installation
29 Sep 2015 18:24:11 [rserver] ERROR system error 98 (Address already in use); OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<boost::asio::ip::tcp>&, const std::string&, const std::string&) /root/rstudio/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103; LOGGED FROM: int main(int, char* const*) /root/rstudio/src/cpp/server/ServerMain.cpp:436
rstudio-server start/running, process 48632

, :

1. change the port /etc/rstudio/rserver.conf for example from 8787 to 8788
2. open the new ports in your firewall settings. (allow access to the new port in /etc/sysconfig/iptables)
3. update your firewall: sudo /sbin/service iptables restart
4. restart Rstudio server: sudo rstudio-server restart

~ 4-5 , . 100%, , . , AWS, docker R/Rstudio.

+5

This happened to me on my Cento-7.x machine when I upgraded from the old RStudio server to the new version. It seems that rebooting the machine fixed the problem.

0
source

All Articles