How to start Rstudio Server on Centos?

Version of RStudio

R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

Output from sessionInfo() in standard R console

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS:   /usr/local/lib64/R/lib/libRblas.so
LAPACK: /usr/local/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=zh_CN.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=zh_CN.UTF-8        LC_COLLATE=zh_CN.UTF-8
 [5] LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=zh_CN.UTF-8
 [7] LC_PAPER=zh_CN.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.0.3

Error messages

sudo systemctl status rstudio-server
● rstudio-server.service - RStudio Server
   Loaded: loaded (/usr/lib/systemd/system/rstudio-server.service; enabled; vendor preset: disabled)
   **Active: failed** (Result: start-limit) since 二 2020-11-17 08:42:23 CST; 1h 47min ago
  Process: 349522 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
 Main PID: 349524 (code=exited, status=1/FAILURE)

11月 17 08:42:23 mgt systemd[1]: Unit rstudio-server.service entered failed state.
11月 17 08:42:23 mgt systemd[1]: rstudio-server.service failed.
11月 17 08:42:23 mgt systemd[1]: rstudio-server.service holdoff time over, scheduling restart.
11月 17 08:42:23 mgt systemd[1]: Stopped RStudio Server.
11月 17 08:42:23 mgt systemd[1]: start request repeated too quickly for rstudio-server.service
**11月 17 08:42:23 mgt systemd[1]: Failed to start RStudio Server.**
11月 17 08:42:23 mgt systemd[1]: Unit rstudio-server.service entered failed state.
11月 17 08:42:23 mgt systemd[1]: rstudio-server.service failed.

Attempted steps taken to fix
I've tried to built with the --enable-R-shlib configuration option.And there is no ant error messages after

sudo rstudio-server verify-installation
```.
and my jdk version is oracle .
$java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)

how to work out  this issue?Thanks!

i've solved this question.

sudo chmod 777 /etc/rstudio/rserver.conf

  • Edited /etc/rstudio/rserver.conf as:
www-port=8787
www-address=<server-ip>
  • Executed sudo rstudio-server restart
  • RStudio Server accessible via browser

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.