I’ve got two installations of rstudio on ood on two different clusters. One works as expected and one just gives me a 404 error on the auth-do-sign-in page. using ood 2.0.27 on the one that’s not working, 1.8.18 on the working one, rstudio-server-1.3.1093-1.x86_64 on both and a centos8 singularity image.
I can confirm via telnet from the ood server that rstudio-server is listening on the node and port that was assigned to it.
I suspected a problem with the reverse proxy but the netcat test works as expected. Any advice on what to try next?
Here’s the relevant parts of my script.sh.erb:
setup_env () {
export RSTUDIO_SERVER_IMAGE=“/bil/packages/RStudio/rstudio-server-c8.sif”
export SINGULARITY_BINDPATH=“/etc,/media,/mnt,/opt,/srv,/usr,/lib64,/lib,/bil,/var”
export SINGULARITYENV_LD_LIBRARY_PATH=“$LD_LIBRARY_PATH”
export PATH=“$PATH:/usr/lib/rstudio-server/bin:/bil/packages/R/R-3.6.3/bin:/bil/packages/anaconda3/4.9.2/envs/rstudio/bin/R”
}
setup_env
export RSTUDIO_AUTH=“${PWD}/bin/auth”
export RSESSION_WRAPPER_FILE=“${PWD}/rsession.sh”
(
umask 077
sed ‘s/^ {2}//’ > “${RSESSION_WRAPPER_FILE}” << EOL
export RSESSION_LOG_FILE=“${PWD}/rsession.log”
exec &>>“${RSESSION_LOG_FILE}”
echo “Launching rsession…”
set -x
exec rsession --r-libs-user “${R_LIBS_USER}” “${@}”
EOL
)
chmod 700 “${RSESSION_WRAPPER_FILE}”
cd “${HOME}”
export TMPDIR=“$(mktemp -d)”
export VARDIR=“$(mktemp -d)”
mkdir -p “$TMPDIR/rstudio-server”
echo “Started the server”
echo $(uuidgen) > “$TMPDIR/rstudio-server/secure-cookie-key”
chmod 0600 “$TMPDIR/rstudio-server/secure-cookie-key”
set -x
echo “Starting up rserver…”
singularity run -B “$TMPDIR:/tmp,$VARDIR:/var” “$RSTUDIO_SERVER_IMAGE”
–www-port “${port}”
–auth-none 0
–auth-pam-helper-path “${RSTUDIO_AUTH}”
–auth-encrypt-password 0
–server-working-dir “/tmp”
–rsession-path “${RSESSION_WRAPPER_FILE}”