Rstudio server installion

Hello,
I am unable to install rstudio-server. It is saying 'user' and 'group' already exists (please below), and I am not able to connect the server using url http:serveraddress:8787.

I am using Ubuntu server 'ubuntu 14.04'

RStudio Server
RStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, and workspace management.
Do you want to install the software package? [y/N]:Y
(Reading database ... 313404 files and directories currently installed.)
Preparing to unpack rstudio-server-1.2.1572-amd64.deb ...
Unpacking rstudio-server (1.2.1572) over (1.2.1572) ...
Setting up rstudio-server (1.2.1572) ...
useradd: user 'rstudio-server' already exists
groupadd: group 'rstudio-server' already exists
rstudio-server start/spawned, process 9081

1 Like

This suggests that you already have RStudio installed, try running this command

sudo rstudio-server verify-installation

Also, is the "serveraddress" an IP in your local network? if not then you have to make sure that the server hosting rstudio-server has port 8787 open for remote traffic.

Hello,

I am getting the following messages when I run 'sudo rstudio-server verify-installation'.

24 Aug 2019 13:02:01 [rserver] ERROR system error 98 (Address already in use); OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<rstudio_boost::asio::ip::tcp>&, const string&, const string&) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103; LOGGED FROM: int main(int, char* const*) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/server/ServerMain.cpp:502

Yes I am using server local ip address.

I don't know why are you getting that error, but this is what I would do in your situation

sudo rstudio-server stop # Stop rstudio-server
sudo apt purge rstudio-server # Completely uninstall rstudio-server
# Download and install again
wget https://s3.amazonaws.com/rstudio-ide-build/server/trusty/amd64/rstudio-server-1.2.1572-amd64.deb
sudo gdebi rstudio-server-1.2.1572-amd64.deb

Hello,
I am getting same message as before....
Installation

Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done

RStudio Server
RStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, and workspace management.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package rstudio-server.
(Reading database ... 281755 files and directories currently installed.)
Preparing to unpack rstudio-server-1.2.1572-amd64.deb ...
Unpacking rstudio-server (1.2.1572) ...
Setting up rstudio-server (1.2.1572) ...
useradd: user 'rstudio-server' already exists
groupadd: group 'rstudio-server' already exists
rstudio-server start/spawned, process 18869

sudo rstudio-server verify-installation

25 Aug 2019 00:01:05 [rserver] ERROR system error 98 (Address already in use); OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<rstudio_boost::asio::ip::tcp>&, const string&, const string&) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103; LOGGED FROM: int main(int, char* const*) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/server/ServerMain.cpp:502

Hello,
I did installation again, I think reinstallation successfully completed.
If I run the command 'sudo rstudio-server verify-installation' command - It is not giving any message.
While when I try to open in browser using 'myserveripaddress:8787' it is giving error 'This site can't be reached'.

Take a look to the troubleshooting guide

https://support.rstudio.com/hc/en-us/articles/200717193-RStudio-Server-Will-Not-Start

If you are not getting any error messages anymore, then very likely you are facing a network configuration issue, double check that you don't have any firewall, proxy server, or network device that is blocking 8787 port.

Thank you so much,
I enabled the port 8787 using the command 'sudo ufw allow 8787/tcp'. Now I am able to open Rstudio server.

1 Like

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