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)?