Error Starting R The R session failed to start. RSTUDIO VERSION RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for windows

Error Information:

Description of issue -
As I open Rstudio it has asked me choose the version of R to be used. After choosing the version and clicking ok, it fails to open.
Attempted steps taken to fix -
I have tried uninstalling and reinstalling both R and Rstudio. Also, I have removed the files that build up during startup. I cannot find .Rprofile file as told in " * Remove startup customizations such as an .Rprofile file, if present." Also, I have tried out the step described in Posit support Page " Resetting RStudio Desktop's State".


System Information:

  • RStudio Edition: (Desktop or Server): RstudioDesktop
  • RStudio Version: RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for windows
  • OS Version: Windows 11 Home Single Language 24H2
  • R Version: 4.4.2
  • Output your diagnostics report (if possible):

R Session Startup Failure Report

RStudio Version

RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for windows

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.1+563 Chrome/126.0.6478.234 Electron/31.7.7 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

C:/Users/HP/AppData/Local/RStudio/log/rsession-HP.log

2025-02-18T06:57:08.148688Z [rsession-HP] ERROR system error 10013 (An attempt was made to access a socket in a way forbidden by its access permissions); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::http::initTcpIpAcceptor(class rstudio::core::http::SocketAcceptorService<class rstudio_boost::asio::ip::tcp> &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\core\include\core/http/TcpIpSocketUtils.hpp:150; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\SessionMain.cpp:2404
2025-02-18T06:57:08.148688Z [rsession-HP] ERROR system error 10013 (An attempt was made to access a socket in a way forbidden by its access permissions); OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::http::initTcpIpAcceptor(class rstudio::core::http::SocketAcceptorService<class rstudio_boost::asio::ip::tcp> &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\core\include\core/http/TcpIpSocketUtils.hpp:150; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\SessionMain.cpp:2404


From RStudio Desktop Will Not Start on support.rstudio.com
2025-02-17T18:30:00Z


Was RStudio working on this compute prior to updating to 2024.12.1, or is this the first time you are trying RStudio on this computer?

The error message "An attempt was made to access a socket in a way forbidden by its access permissions" suggests a possible clash with some other software or perhaps your system's security software (firewall, etc.).

Have you tried rebooting Windows? Just in case something is hanging in the background and holding on to this resource. Unlikely but worth a try.

Another example of what looks like a similar problem: Error starting R Studio on Windows.

The previous version was working fine on this computer. Also, I have restarted windows multiple times, but unfortunately, nothing worked. Now, I have uninstalled the latest version and reinstalled the previous one to continue with my work.

Glad downgrading has unblocked you, at least. What version are you using now (i.e. the working version)?

I believe I have the same issue. Like Sherya, swapping back to the previous version resolved my problem. I was on version 2024.12.1 and am now on 2024.12.0. Restarting did not fix the problem.

Error output:

R Session Startup Failure Report

RStudio Version

RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.1+563 Chrome/126.0.6478.234 Electron/31.7.7 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/atolkin/.local/share/rstudio/log/rsession-atolkin.log

2025-03-02T21:00:06.425487Z [rsession-atolkin] ERROR ApplicationInsights:Sender [|||  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',|||  [|||    "[object Error]{ stack: 'Error: getaddrinfo ENOTFOUND copilot-telemetry.githubusercontent.com\n" +|||      "    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)', message: 'getaddrinfo ENOTFOUND copilot-telemetry.githubusercontent.com', name: 'Error'"|||  ]|||]; LOGGED FROM: void rstudio::session::modules::copilot::(anonymous namespace)::agent::onStderr(ProcessOperations &, const std::string &) src/cpp/session/modules/SessionCopilot.cpp:915
2025-03-03T15:56:46.834408Z [rsession-atolkin] ERROR ApplicationInsights:Sender [|||  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',|||  [|||    "[object Error]{ stack: 'Error: getaddrinfo ENOTFOUND copilot-telemetry.githubusercontent.com\n" +|||      "    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)', message: 'getaddrinfo ENOTFOUND copilot-telemetry.githubusercontent.com', name: 'Error'"|||  ]|||]; LOGGED FROM: void rstudio::session::modules::copilot::(anonymous namespace)::agent::onStderr(ProcessOperations &, const std::string &) src/cpp/session/modules/SessionCopilot.cpp:915
2025-03-03T15:56:46.834408Z [rsession-atolkin] ERROR ApplicationInsights:Sender [|||  'Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:',|||  [|||    "[object Error]{ stack: 'Error: getaddrinfo ENOTFOUND copilot-telemetry.githubusercontent.com\n" +|||      "    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)', message: 'getaddrinfo ENOTFOUND copilot-telemetry.githubusercontent.com', name: 'Error'"|||  ]|||]; LOGGED FROM: void rstudio::session::modules::copilot::(anonymous namespace)::agent::onStderr(ProcessOperations &, const std::string &) src/cpp/session/modules/SessionCopilot.cpp:915

Hello,

I am experiencing a similar issue when starting Rstudio, but in my case downgrading (both R and Rstudio) did not fix the error. I have tried deactivating my firewall aswell. Below you find the displayed error output. The german part: "ERROR system error 10053 (Eine bestehende Verbindung wurde softwaregesteuert
durch den Hostcomputer abgebrochen) " translates roughly to "an existing connection was cut software-guided by the host pc". Here the full message:

Error Starting R

The R session failed to start.

RSTUDIO VERSION

RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for windows

SESSION PATH

C:/Program Files/RStudio/resources/app/bin/rsession-utf8.exe [No error available] [No errors emitted]

OUTPUT

[No output emitted] C:/Users/Finn/AppData/Local/RStudio/log/rsession-Finn.log durch den Hostcomputer abgebrochen) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\http\SessionHttpConnectionImpl.hpp:156; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\http\SessionHttpConnectionImpl.hpp:161 2025-04-17T20:32:21.736900Z [rsession-Finn] ERROR system error 10053 (Eine bestehende Verbindung wurde softwaregesteuert durch den Hostcomputer abgebrochen) [request-uri: /events/get_events]; OCCURRED AT void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\http\SessionHttpConnectionImpl.hpp:156; LOGGED FROM: void __cdecl rstudio::session::HttpConnectionImpl<class rstudio_boost::asio::ip::tcp>::sendResponse(const class rstudio::core::http::Response &) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\http\SessionHttpConnectionImpl.hpp:161

I would be very grateful for any help.

Best

Solved: Deleted both the R and Rstudio folder in Appdata\Local and Appdata\Roaming