rstudio launcher is not working. Throwing error: [rserver] ERROR Cannot connect to the Job Launcher service

Hi

I'm trying to setup launcher service in my rstudio server installation.

Both launcher and rserver reside on the same ubuntu virtual machine

I configured all the necessary files as indicated here (https://docs.rstudio.com/rsp/integration/launcher-kubernetes/)

This is how the files look like:

/etc/rstudio/rserver.conf

Server Configuration File

launcher-sessions-enabled=1
launcher-address=127.0.0.1
launcher-port=5559
launcher-default-cluster=Kubernetes
launcher-sessions-callback-address=<http://ip:port of my rserver instance>
launcher-sessions-container-run-as-root=0
launcher-sessions-create-container-user=1

/etc/rstudio/launcher.conf
[server]
address=127.0.0.1
port=5559
server-user=rstudio-server
admin-group=rstudio-server
authorization-enabled=1
thread-pool-size=4
enable-debug-logging=1

[cluster]
name=Kubernetes
type=Kubernetes

/etc/rstudio/launcher.kubernetes.profiles.conf

default-cpus=1
default-mem-mb=512
max-cpus=2
max-mem-mb=1024
container-images=rstudio/r-session-complete:centos7-1.2.5033-1
default-container-image=rstudio/r-session-complete:centos7-1.2.5033-1
allow-unknown-images=0

/etc/rstudio/launcher-mounts
Host: 10.40.240.7
Path: /home/{USER}
MountPath: /home/{USER}
ReadOnly: false
Cluster: Kubernetes

/etc/rstudio/launcher.kubernetes.conf
api-url=https://aksdevtest1-17073332.hcp.eastus2.azmk8s.io:443
auth-token=
verify-ssl-certs=0

Then I execute this:
sudo rstudio-server stop
sudo rstudio-server verify-installation --verify-user=

And I get the following error:
Checking Job Launcher configuration...
Ensuring server-user is a Job Launcher admin...
22 Jan 2020 21:28:04 [rserver] ERROR Cannot connect to the Job Launcher service; LOGGED FROM: rstudio::server::session_proxy::overlay::{anonymous}::ensureServerUserIsLauncherAdmin()::<lambda(const rstudio::core::Error&)> mutable /var/lib/jenkins/workspace/IDE/pro-pipeline/v1.2-patch/src/cpp/server/JobLauncherVerification.cpp:159
22 Jan 2020 21:28:04 [rserver] ERROR system error 111 (Connection refused); OCCURRED AT: void rstudio::core::http::TcpIpAsyncConnector::handleConnect(const rstudio_boost::system::error_code&, rstudio_boost::asio::ip::basic_resolver<rstudio_boost::asio::ip::tcp>::iterator) /var/lib/jenkins/workspace/IDE/pro-pipeline/v1.2-patch/src/cpp/core/include/core/http/TcpIpAsyncConnector.hpp:197; LOGGED FROM: int main(int, char* const*) /var/lib/jenkins/workspace/IDE/pro-pipeline/v1.2-patch/src/cpp/server/ServerMain.cpp:581

Do you have any clue that might help me overcome this issue?

The log files do not seem to add anything more that the error shown above.

I would like to mention as well that the kubernetes cluster I'm trying to connect to is hosted in Azure as an aks service. I configured everything in that cluster as explained here:

Hello @diegop !! Thanks for reaching out! Please be sure to submit a support ticket by emailing support@rstudio.com! This is professional software and can be handled by our professional support team!

That said, a few things to try:

  • Is the "Job Launcher" service running? The Launcher needs to be running before the verify installation check will work. What are the output of these commands?
systemctl status rstudio-launcher
systemctl start rstudio-launcher
systemctl status rstudio-launcher
  • Are there any logs in /var/log/messages or /var/log/syslog when you try to start the launcher?
  • What about the logs at /var/lib/rstudio-launcher? Anything interesting / telling there?

We look forward to getting you running! It seems like you are close!!

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