RStudio Server non-daemonized error

I share an EC2 instance with a colleague of mine and we tend to start RStudio server in a non-daemonized mode but recently for some reason he is getting an error despite the exact same shell script to kick off RStudio Server. It works perfectly for me.

Script we kick off to start the server and access from our local machines:

#!/bin/bash
RSTUDIO_PORT=8178
R=3.6.2

/usr/lib/rstudio-server/bin/rserver \
    	--server-daemonize=0 \
    	--www-port=${RSTUDIO_PORT} \
	--rsession-which-r=${R}

Error he is getting:

16 Mar 2021 17:54:59 [rserver] ERROR system error 2 (No such file or directory) [path=/tmp/rstudio-server/secure-cookie-key]; 
OCCURRED AT: rstudio::core::Error rstudio::core::FilePath::open_r(rstudio_boost::shared_ptr<std::basic_istream<char> >*) const /home/ubuntu/rstudio/src/cpp/core/FilePath.cpp:1109; 
LOGGED FROM: int main(int, char* const*) /home/ubuntu/rstudio/src/cpp/server/ServerMain.cpp:435

I have even deleted the secure-cookie-key assuming it was a permissions issue and it still works for me but not him. Any ideas?

Thanks!

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.