Unable to initialize the JIT



When interacting with Workbench, you may run into an error similar to the one below when running R sessions specifically:

rsession-<username>[3319]: ERROR R SUICIDE: unable to initialize the JIT; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1242



If your user account is the only one running into this error, then the most likely causes are (1) an R session that cannot be loaded or (2) an issue in your environment. Let's look into each of these possibilities.
(1) Are you able to access the Home page of the server via http://<server-address>:<server-port>/home? Can you start a new session from there?
For context, when you log into Workbench, it will first authenticate you, and then attempt to load your most recent R session. If that session has become corrupt or otherwise cannot be loaded, you won't be able to complete the login process. However, you should still be able to see the Home page, since no R session is loaded when you log into that page.
We also recommend that you reset the user state for your username with the instructions here: https://support.rstudio.com/hc/en-us/articles/218730228-Resetting-a-user-s-state-on-RStudio-Server. This will clear out your user sessions and let you log in cleanly (this won't clear the files on disk; it only clears out the workspace information Posit stores - that article explains in detail).
(2) Is there anything in your Linux bash profile that may interfere with Posits ability to launch an R session on your behalf? This section of the admin guide explains how R sessions are launched: https://docs.rstudio.com/ide/server-pro/r-sessions.html#customizing-session-launches. If there is anything R-related in your bash profile that is invalid to the R installation on the server, Workbench won't be able to launch an R session on your behalf.
To test, you can disable the execution of the shell profiles on the entire server by setting the below in your /etc/rstudio/rserver.conf configuration file:


 Then, restart Workbench:

sudo rstudio-server restart

This will turn it off for everyone on the server, so if you rely on those profiles to set up user environments, you may want to remove that line after the test is complete.