RStudio Server Unable To Connect To Service on Centos 8

I just bulit Centos 8 and installed R 4.0.2 and Rstudio Server 1.3.1056.
When I am running sudo rstudio-server verify-installation Its returning no error.
while running this sudo rstudio-server status the screen said Rstudio-server activing.

However, when brower used and log with username & password, after a while it returned:
Unable to connect to service

The folder for the user was built by mkdir following steps on the internet.

I checked the log file related to Rstudio-server, it seems that there are other files or folders missed, however no idea what to do with that.

here is the part of trace file (username is qingyi which used for login). Anything I can provide to help fix the problem?
Thanks in advance.

122766 rt_sigtimedwait([HUP INT QUIT TERM CHLD], <unfinished ...>
122800 accept(7, NULL, NULL) = 10
122800 ioctl(10, FIONBIO, [1]) = 0
122800 recvmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="GET / HTTP/1.1\r\nHost: 127.0.0.1:"..., iov_len=8192}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 709
122801 mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0 <unfinished ...>
122800 accept(7, NULL, NULL <unfinished ...>
122801 <... mmap resumed>) = 0x7fd83c000000
122800 <... accept resumed>) = -1 EAGAIN (Resource temporarily unavailable)
122801 munmap(0x7fd840000000, 67108864) = 0
122801 mprotect(0x7fd83c000000, 135168, PROT_READ|PROT_WRITE) = 0
122801 openat(AT_FDCWD, "/usr/lib/rstudio-server/www-symbolmaps/17493e044be34dc589712565d9902700.symbolMapOffset", O_RDONLY) = -1 ENOENT (No such file or directory)
122801 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
122801 lstat("/usr/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
122801 lstat("/usr/lib/rstudio-server", {st_mode=S_IFDIR|0755, st_size=180, ...}) = 0
122801 lstat("/usr/lib/rstudio-server/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
122801 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
122801 lstat("/usr/lib", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
122801 lstat("/usr/lib/rstudio-server", {st_mode=S_IFDIR|0755, st_size=180, ...}) = 0
122801 lstat("/usr/lib/rstudio-server/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
122801 lstat("/usr/lib/rstudio-server/www/index.htm", {st_mode=S_IFREG|0644, st_size=1406, ...}) = 0
122801 stat("/usr/lib/rstudio-server/www/index.htm", {st_mode=S_IFREG|0644, st_size=1406, ...}) = 0
122801 stat("/usr/lib/rstudio-server/www/index.htm", {st_mode=S_IFREG|0644, st_size=1406, ...}) = 0
122801 stat("/usr/lib/rstudio-server/www/index.htm", {st_mode=S_IFREG|0644, st_size=1406, ...}) = 0
122801 openat(AT_FDCWD, "/usr/lib/rstudio-server/www/index.htm", O_RDONLY) = 11
122801 mprotect(0x7fd83c021000, 45056, PROT_READ|PROT_WRITE) = 0
122801 mprotect(0x7fd83c02c000, 65536, PROT_READ|PROT_WRITE) = 0
122801 mprotect(0x7fd83c03c000, 65536, PROT_READ|PROT_WRITE) = 0
122801 read(11, "\n\n<!--\n#\n# index."..., 8191) = 1406
122801 read(11, "", 8191) = 0
122801 read(11, "", 8191) = 0
122801 openat(AT_FDCWD, "/proc/sys/vm/overcommit_memory", O_RDONLY|O_CLOEXEC) = 12
122801 read(12, "0", 1) = 1
122801 close(12) = 0
122801 madvise(0x7fd83c03c000, 65536, MADV_DONTNEED) = 0
122801 madvise(0x7fd83c02c000, 65536, MADV_DONTNEED) = 0
122801 close(11) = 0
122801 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="HTTP/1.1", iov_len=8}, {iov_base=" ", iov_len=1}, {iov_base="200", iov_len=3}, {iov_base=" ", iov_len=1}, {iov_base="OK", iov_len=2}, {iov_base="\r\n", iov_len=2}, {iov_base="X-Frame-Options", iov_len=15}, {iov_base=": ", iov_len=2}, {iov_base="DENY", iov_len=4}, {iov_base="\r\n", iov_len=2}, {iov_base="Expires", iov_len=7}, {iov_base=": ", iov_len=2}, {iov_base="Fri, 01 Jan 1990 00:00:00 GMT", iov_len=29}, {iov_base="\r\n", iov_len=2}, {iov_base="Pragma", iov_len=6}, {iov_base=": ", iov_len=2}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 88
122800 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="no-cache", iov_len=8}, {iov_base="\r\n", iov_len=2}, {iov_base="Cache-Control", iov_len=13}, {iov_base=": ", iov_len=2}, {iov_base="no-cache, no-store, max-age=0, m"..., iov_len=46}, {iov_base="\r\n", iov_len=2}, {iov_base="Content-Type", iov_len=12}, {iov_base=": ", iov_len=2}, {iov_base="text/html", iov_len=9}, {iov_base="\r\n", iov_len=2}, {iov_base="Content-Encoding", iov_len=16}, {iov_base=": ", iov_len=2}, {iov_base="gzip", iov_len=4}, {iov_base="\r\n", iov_len=2}, {iov_base="Content-Length", iov_len=14}, {iov_base=": ", iov_len=2}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 138
122800 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="698", iov_len=3}, {iov_base="\r\n", iov_len=2}, {iov_base="Date", iov_len=4}, {iov_base=": ", iov_len=2}, {iov_base="Tue, 28 Jul 2020 08:01:28 GMT", iov_len=29}, {iov_base="\r\n", iov_len=2}, {iov_base="Connection", iov_len=10}, {iov_base=": ", iov_len=2}, {iov_base="close", iov_len=5}, {iov_base="\r\n", iov_len=2}, {iov_base="X-Content-Type-Options", iov_len=22}, {iov_base=": ", iov_len=2}, {iov_base="nosniff", iov_len=7}, {iov_base="\r\n", iov_len=2}, {iov_base="Server", iov_len=6}, {iov_base=": ", iov_len=2}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 102
122800 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="RStudio", iov_len=7}, {iov_base="\r\n", iov_len=2}, {iov_base="\r\n", iov_len=2}, {iov_base="\37\213\10\0\0\0\0\0\0\377\265\224QS\2430\20\307\337\373)\366\360Eg\f\250\365<\353Ag"..., iov_len=698}], msg_iovlen=4, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 709
122800 shutdown(10, SHUT_RDWR) = 0
122800 close(10) = 0
122801 accept(7, NULL, NULL) = 10
122801 ioctl(10, FIONBIO, [1]) = 0
122801 recvmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="GET /css/icons.css HTTP/1.1\r\nHos"..., iov_len=8192}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 685
122801 accept(7, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
122800 lstat("/usr", {st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
122800 lstat("/usr/lib", <unfinished ...>
122801 accept(7, NULL, NULL <unfinished ...>
122800 <... lstat resumed>{st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
122801 <... accept resumed>) = 11
122800 lstat("/usr/lib/rstudio-server", {st_mode=S_IFDIR|0755, st_size=180, ...}) = 0
122800 lstat("/usr/lib/rstudio-server/www", <unfinished ...>
122801 ioctl(11, FIONBIO, [1] <unfinished ...>
122800 <... lstat resumed>{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
122801 <... ioctl resumed>) = 0
122801 recvmsg(11, <unfinished ...>
122800 lstat("/usr", <unfinished ...>
122801 <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="GET /css/focus-visible.css HTTP/"..., iov_len=8192}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 693
122800 <... lstat resumed>{st_mode=S_IFDIR|0755, st_size=144, ...}) = 0
122801 accept(7, NULL, NULL <unfinished ...>
122800 lstat("/usr/lib", <unfinished ...>
122801 <... accept resumed>) = -1 EAGAIN (Resource temporarily unavailable)

.....

122932 set_robust_list(0x7fd84bcab9e0, 24) = 0
122932 setpgid(0, 0) = -1 EACCES (Permission denied)
122932 getpid() = 122932
122932 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 12
122932 connect(12, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
122932 sendto(12, "<11>Jul 28 16:01:30 rserver[1229"..., 585, MSG_NOSIGNAL, NULL, 0) = 585
122932 ioctl(2, TCGETS, 0x7fd84bca9e70) = -1 ENOTTY (Inappropriate ioctl for device)
122932 close(7) = 0
122932 close(5) = 0
122932 close(6) = 0
122932 close(4) = 0
122932 close(3) = 0
122932 exit_group(1) = ?
122932 +++ exited with 1 +++
122766 <... rt_sigtimedwait resumed>{si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=122932, si_uid=0, si_status=1, si_utime=0, si_stime=0}, NULL, 8) = 17 (SIGCHLD)
122766 wait4(122932, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 122932
122766 rt_sigtimedwait([HUP INT QUIT TERM CHLD], <unfinished ...>
122801 stat("/var/run/rstudio-server/rstudio-rsession/qingyi-d", 0x7fd84b4a97f0) = -1 ENOENT (No such file or directory)
122801 connect(11, {sa_family=AF_UNIX, sun_path="/var/run/rstudio-server/rstudio-rsession/qingyi-d"}, 51) = -1 ENOENT (No such file or directory)
122801 stat("/var/run/rstudio-server/rstudio-rsession", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0
122801 stat("/var/run/rstudio-server/rstudio-rsession/qingyi-d.invalid", 0x7fd84b4a9740) = -1 ENOENT (No such file or directory)
122801 stat("/var/run/rstudio-server/rstudio-rsession", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0
122800 stat("/var/run/rstudio-server/rstudio-rsession/qingyi-d", 0x7fd84bcaa7f0) = -1 ENOENT (No such file or directory)
122800 connect(11, {sa_family=AF_UNIX, sun_path="/var/run/rstudio-server/rstudio-rsession/qingyi-d"}, 51) = -1 ENOENT (No such file or directory)
122800 stat("/var/run/rstudio-server/rstudio-rsession", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0
122800 stat("/var/run/rstudio-server/rstudio-rsession/qingyi-d.invalid", 0x7fd84bcaa740) = -1 ENOENT (No such file or directory)
122800 stat("/var/run/rstudio-server/rstudio-rsession", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0

.........

122800 stat("/var/run/rstudio-server/rstudio-rsession", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0
122800 stat("/var/run/rstudio-server/rstudio-rsession/qingyi-d.invalid", 0x7fd84bcaa740) = -1 ENOENT (No such file or directory)
122800 stat("/var/run/rstudio-server/rstudio-rsession", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0
122800 shutdown(11, SHUT_RDWR) = 0
122800 close(11) = 0
122800 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="HTTP/1.1", iov_len=8}, {iov_base=" ", iov_len=1}, {iov_base="200", iov_len=3}, {iov_base=" ", iov_len=1}, {iov_base="OK", iov_len=2}, {iov_base="\r\n", iov_len=2}, {iov_base="Set-Cookie", iov_len=10}, {iov_base=": ", iov_len=2}, {iov_base="user-id=qingyi|Tue%2C%2028%20Jul"..., iov_len=129}, {iov_base="\r\n", iov_len=2}, {iov_base="Set-Cookie", iov_len=10}, {iov_base=": ", iov_len=2}, {iov_base="user-list-id=9c16856330a7400cbbb"..., iov_len=156}, {iov_base="\r\n", iov_len=2}, {iov_base="Set-Cookie", iov_len=10}, {iov_base=": ", iov_len=2}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 342
122801 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="persist-auth=0; expires=Tue, 28 "..., iov_len=69}, {iov_base="\r\n", iov_len=2}, {iov_base="Set-Cookie", iov_len=10}, {iov_base=": ", iov_len=2}, {iov_base="csrf-token=b31dbb92-972e-461a-88"..., iov_len=65}, {iov_base="\r\n", iov_len=2}, {iov_base="Expires", iov_len=7}, {iov_base=": ", iov_len=2}, {iov_base="Fri, 01 Jan 1990 00:00:00 GMT", iov_len=29}, {iov_base="\r\n", iov_len=2}, {iov_base="Pragma", iov_len=6}, {iov_base=": ", iov_len=2}, {iov_base="no-cache", iov_len=8}, {iov_base="\r\n", iov_len=2}, {iov_base="Cache-Control", iov_len=13}, {iov_base=": ", iov_len=2}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 223
122801 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="no-cache, no-store, max-age=0, m"..., iov_len=46}, {iov_base="\r\n", iov_len=2}, {iov_base="Content-Type", iov_len=12}, {iov_base=": ", iov_len=2}, {iov_base="application/json", iov_len=16}, {iov_base="\r\n", iov_len=2}, {iov_base="Content-Length", iov_len=14}, {iov_base=": ", iov_len=2}, {iov_base="74", iov_len=2}, {iov_base="\r\n", iov_len=2}, {iov_base="Date", iov_len=4}, {iov_base=": ", iov_len=2}, {iov_base="Tue, 28 Jul 2020 08:01:40 GMT", iov_len=29}, {iov_base="\r\n", iov_len=2}, {iov_base="Connection", iov_len=10}, {iov_base=": ", iov_len=2}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 149
122801 sendmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="close", iov_len=5}, {iov_base="\r\n", iov_len=2}, {iov_base="X-Content-Type-Options", iov_len=22}, {iov_base=": ", iov_len=2}, {iov_base="nosniff", iov_len=7}, {iov_base="\r\n", iov_len=2}, {iov_base="Server", iov_len=6}, {iov_base=": ", iov_len=2}, {iov_base="RStudio", iov_len=7}, {iov_base="\r\n", iov_len=2}, {iov_base="\r\n", iov_len=2}, {iov_base="{"error":{"code":1,"message":"Un"..., iov_len=74}], msg_iovlen=12, msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 133
122801 shutdown(10, SHUT_RDWR) = 0
122801 close(10) = 0

I appear to have a similar problem - logging in with invalid credentials gets rejected as expected, logging in with valid username/password gives the spinning icon and after several seconds you get RStudio Initialization Error: Unable to connect to service. This is with 1.3.1073. I followed the exact same steps on clean Centos 7 and 8 installations and only had a problem with 8.

/var/log/messages gives

ERROR system error 13 (Permission denied); OCCURRED AT rstudio::core::Error rstudio::core::system::launchChildProcess(st
d::__cxx11::string, std::__cxx11::string, rstudio::core::system::ProcessConfig, rstudio::core::system::ProcessConfigFilter, PidType*) src/cpp/core/system/Posi
xSystem.cpp:2149; LOGGED FROM: rstudio::core::Error rstudio::core::system::launchChildProcess(std::__cxx11::string, std::__cxx11::string, rstudio::core::syste
m::ProcessConfig, rstudio::core::system::ProcessConfigFilter, PidType*) src/cpp/core/system/PosixSystem.cpp:2150

Thanks for your response.

Finally, I moved to Ubuntn 20, and follow the same steps. Great it works in ubuntn :smile:

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