rstudio-server ERROR Unable to determine real path of R script

rstudio-server ERROR Unable to determine real path of R script

hi,
I am installing rstudio-server in my ubuntu as suggested in this link https://www.rstudio.com/products/rstudio/download-server/debian-ubuntu/
but I could not open the link in the website usging ip:8787

errors in the website :

conditions in my ubuntu:

root@ecs-210833:/etc/rstudio#  sudo rstudio-server status
● rstudio-server.service - RStudio Server
     Loaded: loaded (/lib/systemd/system/rstudio-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2022-05-25 09:39:44 CST; 2min 37s ago
    Process: 7765 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
   Main PID: 7776 (rserver)
      Tasks: 3 (limit: 1066)
     Memory: 2.4M
     CGroup: /system.slice/rstudio-server.service
             └─7776 /usr/lib/rstudio-server/bin/rserver

**root@ecs-210833:/etc/rstudio# rstudio-server restart**
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.
**root@ecs-210833:/etc/rstudio# cat /var/log/rstudio/rstudio-server/rserver.log**
2022-05-25T01:42:39.116349Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateRScriptPath(const string&, std::__cxx11::string*) src/cpp/core/r_util/REnvironmentPosix.cpp:300
2022-05-25T01:42:39.118091Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:785
2022-05-25T01:42:39.244365Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateRScriptPath(const string&, std::__cxx11::string*) src/cpp/core/r_util/REnvironmentPosix.cpp:300
2022-05-25T01:42:39.246314Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:785
2022-05-25T01:42:39.496452Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateRScriptPath(const string&, std::__cxx11::string*) src/cpp/core/r_util/REnvironmentPosix.cpp:300
2022-05-25T01:42:39.497031Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:785
2022-05-25T01:42:39.747690Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateRScriptPath(const string&, std::__cxx11::string*) src/cpp/core/r_util/REnvironmentPosix.cpp:300
2022-05-25T01:42:39.748415Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:785
2022-05-25T01:42:39.996443Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: bool rstudio::core::r_util::{anonymous}::validateRScriptPath(const string&, std::__cxx11::string*) src/cpp/core/r_util/REnvironmentPosix.cpp:300
2022-05-25T01:42:39.997055Z [rserver] ERROR Unable to determine real path of R script /usr/local/bin/R (system error 2 (No such file or directory)); LOGGED FROM: int main(int, char* const*) src/cpp/server/ServerMain.cpp:785

**root@ecs-210833:/etc/rstudio# ifconfig**
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.14  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::f816:3eff:feed:4553  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:ed:45:53  txqueuelen 1000  (Ethernet)
        RX packets 56238  bytes 251198266 (251.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 40242  bytes 3379800 (3.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 230  bytes 22738 (22.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 230  bytes 22738 (22.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

This topic was automatically closed 21 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.