One of my users has a fatal error not allowing RStudio to start. R will start. Any suggestions on a fix would be very much appreciated.
Error Information:
2023-06-12T14:16:46.113899Z [rsession-xxxxx.xxxxxx] ERROR Terminal websocket failure: The opening handshake timed out; LOGGED FROM: void rstudio::session::console_process::ConsoleProcessSocket::onFail(rstudio::session::console_process::terminalServer *, websocketpp::connection_hdl) src/cpp/session/SessionConsoleProcessSocket.cpp:383
Description of issue -
RStudio open source version fails to start and gives “R encounters a fatal error. The session was terminated.” popup notice. R starts and runs with out issue.
RStudio error report gives: ERROR Terminal websocket failure: The opening handshake timed out; LOGGED FROM: void rstudio::session::console_process::ConsoleProcessSocket::onFail(rstudio::session::console_process::terminalServer *, websocketpp::connection_hdl) src/cpp/session/SessionConsoleProcessSocket.cpp:383
Attempted steps taken to fix -
Updated version of R to from R 4.3.0 GUI 1.79 Big Sur Intel build to 4.3.1 - R check for updates reported up to date but R 4.3.1 Beagle Scouts was available for download.
Updated version of RStudio from 2023.03.0+386 to 2023.06.0+421 Mountain Hydrangea
Updated MacOS from 13.3.1 to 13.4
Pop up notice wanting “git” command requiring Apple Command Line Developer Tools to be installed - install had to be manual because terminal install failed.
Uninstalled and and reinstalled both R and RStudio
System Information:
-
RStudio Edition: (Desktop or Server) - Desktop
-
RStudio Version: 2023.06.0+421 Mountain Hydrangea
-
OS Version: MacOS 13.4.1 (Intel MacBook Pro)
-
R Version: 4.3.1 Beagle Scouts
-
Output your diagnostics report (if possible):
R Session Startup Failure Report
RStudio Version
RStudio 2023.03.0+386 "Cherry Blossom " (3c53477a, 2023-03-09) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.03.0+386 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36
Error message
[No error available]
Process Output
The R session exited with code 1.
Error output:
[No errors emitted]
Standard output:
[No output emitted]
Logs
/Users/xxxxx.xxxxxx/.local/share/rstudio/log/rsession-xxxxx.xxxxxx.log
2023-06-12T14:16:46.113899Z [rsession-xxxxx.xxxxxx] ERROR Terminal websocket failure: The opening handshake timed out; LOGGED FROM: void rstudio::session::console_process::ConsoleProcessSocket::onFail(rstudio::session::console_process::terminalServer *, websocketpp::connection_hdl) src/cpp/session/SessionConsoleProcessSocket.cpp:383
2023-06-12T14:17:04.966939Z [rsession-xxxxx.xxxxxx] ERROR Terminal websocket failure: Underlying Transport Error; LOGGED FROM: void rstudio::session::console_process::ConsoleProcessSocket::onFail(rstudio::session::console_process::terminalServer *, websocketpp::connection_hdl) src/cpp/session/SessionConsoleProcessSocket.cpp:383
2023-06-12T14:17:04.966939Z [rsession-xxxxx.xxxxxx] ERROR Terminal websocket failure: Underlying Transport Error; LOGGED FROM: void rstudio::session::console_process::ConsoleProcessSocket::onFail(rstudio::session::console_process::terminalServer *, websocketpp::connection_hdl) src/cpp/session/SessionConsoleProcessSocket.cpp:383
------------
From [RStudio Desktop Will Not Start on support.rstudio.com](https://support.rstudio.com/hc/en-us/articles/200488508)