The R session failed to start
This comment was split from the discussion: rsudio failed to start
I have a related problem--
details:
Mac 10.7.2
R 2.15.0 GUI 1.51 Leopard build 32-bit (6148)
downloaded most recent R-studio: 0.95.265
R works by itself just fine.
When I start Rstudio, I get the error message box "The R session
failed to start"
When I use terminal to determine the path of the R program I get:
Sys.which("R")
R"/usr/bin/R"
any suggestions?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Josh Paulson on 13 Apr, 2012 06:50 PM
Hello,
I split this discussion as there is likely a different problem occurring as to why RStudio won't start. Can you check to see if there are any log files and upload them to this discussion:
http://support.rstudio.org/help/kb/troubleshooting/rstudio-applicat...
Also have you tried the Knowledge Base article for common startup problems:
http://support.rstudio.org/help/kb/troubleshooting/rstudio-will-not...
Let me know if this takes care of it and if there are any logs. If there are still problems, we'll go from there.
Thanks,
Josh
3 Posted by jwm2m on 13 Apr, 2012 09:10 PM
Hi Josh,
I don't see any log files when I search my Mac with Spotlight, nor in my Library folder (which has a subfolder of logs).
When I used Terminal to look for RStudio logs as per the Knowledge Base, I got this error:
> open ~/.rstudio-desktop/log/
Error: unexpected '/' in "open ~/"
I think I have looked for all of the common startup problems in Knowledge Base article:
Check the version of R-- I have 2.15.0
Check for Startup files-- I can't see any startup files named .Rprofile, .Renviron, or .RData using Spotlight
Check firewall and proxy settings-- don't think this is a problem but not sure how to test…..
Reset RStudio's state--couldn't do this since I couldn't access rstudio-desktop folder using Terminal as per above
Using Macports R--I'm not using Macports
Both R and RStudio are in my Applications folder as application icons only-there are no folders containing any other data.
thanks again,
Jim
Support Staff 4 Posted by Josh Paulson on 14 Apr, 2012 04:08 PM
Jim,
Not sure why that command isn't working on your system and that is a strange error to see. Did you type it manually or copy and past (maybe try both)? Also perhaps see if you can navigate to the directory manually. You'll have to first turn on hidden files:
http://www.joshklein.net/how-to-show-hidden-files-in-mac-os-x-lion
If we get the logs, they likely will tell us what is going wrong. Let me know if this works.
Josh
5 Posted by freya on 17 Apr, 2012 12:40 PM
This comment was split into a new discussion: The R session failed to start
Hello,
I'm having the same problem. I'm using a Mac and R opens with no problem but whenever I try to run Rstudio I get the message 'the R session failed to start'. What should I do? Also, I'm not very tech savy (at all), so layman's terms please.
Cheers,
Freya
6 Posted by jwm2m on 17 Apr, 2012 08:45 PM
HI Josh,
Pardon my delay...got busy with other stuff.
When I typed the command in Terminal it gave me this response:
d-128-234-20:~ jamesmandell$ open ~/.rstudio-desktop/log/
The file /Users/jamesmandell/.rstudio-desktop/log does not exist.
I entered the script to show hidden files and did the above again; same result.
Also tried to find a folder called rstudio-desktop but couldn't.
The only Rfinder item on my Mac is the application (with the "blue M&M"-like icon, which is in my Applications.
Jim
Support Staff 7 Posted by Josh Paulson on 17 Apr, 2012 08:50 PM
Jim,
Okay thanks. There might be a permissions problem which is why it cannot be found. Can you do the following:
1) From the terminal, execute the following command and tell me the output:
2) From the R console (using standard R), can you tell me the output of the following:
Thanks,
Josh
8 Posted by jwm2m on 17 Apr, 2012 09:43 PM
Here are the outputs:
and thanks for all your help!
Jim
Support Staff 9 Posted by Josh Paulson on 20 Apr, 2012 01:52 PM
Jim,
Somehow nothing came through. I was unable to see any output. Could you try posting it again?
Thanks,
Josh
10 Posted by jwm2m on 20 Apr, 2012 03:53 PM
Here are the outputs:
$ ls -la $HOME total 144
drwxr-xr-x 36 primary 501 1224 Dec 23 15:55 .
drwxr-xr-x 6 root admin 204 Dec 23 19:42 ..
-rw-r--r-- 1 jamesmandell jamesmandell 3 Jul 6 2007 .CFUserTextEncoding -rw-r--r--@ 1 jamesmandell jamesmandell 24580 Apr 11 09:29 .DS_Store -rw-r--r-- 1 jamesmandell jamesmandell 245 Aug 31 2011 .ImageJ_3D_Viewer.props -rw-r--r-- 1 jamesmandell jamesmandell 10452 Apr 13 17:21 .Rapp.history drwx------ 42 jamesmandell jamesmandell 1428 Apr 13 17:39 .Trash
-rw------- 1 jamesmandell jamesmandell 0 Jul 26 2011 .Xauthority drwxr-xr-x 3 jamesmandell jamesmandell 102 Jul 22 2010 .appdata-local
-rw------- 1 jamesmandell jamesmandell 1248 Apr 13 17:24 .bash_history -rw-r--r-- 1 jamesmandell jamesmandell 0 Nov 14 2008 .bashrc drwx------ 3 jamesmandell jamesmandell 102 Feb 16 2011 .cups
drwx------ 14 jamesmandell jamesmandell 476 Apr 17 16:42 .dropbox
drwxr-xr-x 25 jamesmandell jamesmandell 850 May 12 2011 .fontconfig
drwxr-xr-x 19 jamesmandell jamesmandell 646 Jul 22 2010 .iLinc-inst
drwxr-xr-x 5 jamesmandell jamesmandell 170 Oct 1 2010 .igv
drwxr-xr-x 6 jamesmandell jamesmandell 204 Feb 12 2009 .matlab
drwxr-xr-x 3 jamesmandell jamesmandell 102 Mar 13 15:49 .matplotlib
drwxr-xr-x 5 jamesmandell jamesmandell 170 Aug 3 2007 .sidenote
drwxr-xr-x 3 jamesmandell jamesmandell 102 Mar 12 2008 .webex
-rw-r--r-- 1 jamesmandell jamesmandell 451 Feb 12 2009 CellProfilerPreferences.mat drwx------ 25 jamesmandell jamesmandell 850 Apr 13 13:49 Desktop
drwx------ 16 jamesmandell jamesmandell 544 Jan 31 17:05 Documents
drwx------ 64 jamesmandell jamesmandell 2176 Apr 16 15:41 Downloads
drwx------@ 14 jamesmandell jamesmandell 476 Apr 16 10:07 Dropbox
-rw-r--r-- 1 jamesmandell jamesmandell 4484 Nov 25 2009 GenePattern_InstallLog.log drwxr-xr-x 6 jamesmandell jamesmandell 204 Nov 17 2008 IBM Workplace Forms
-rw-r--r-- 1 jamesmandell jamesmandell 2548 Aug 24 2009 JavaTreeView Config drwx------ 56 jamesmandell jamesmandell 1904 Feb 28 15:50 Library
drwx------ 4 jamesmandell jamesmandell 136 Jul 6 2007 Movies
drwx------ 7 jamesmandell jamesmandell 238 Dec 23 15:55 Music
drwx------ 6 jamesmandell jamesmandell 204 Oct 25 16:22 Pictures
drwxr-xr-x 4 jamesmandell jamesmandell 136 Jul 6 2007 Public
drwxr-xr-x 3 jamesmandell jamesmandell 102 Nov 17 2008 PureEdge
drwxr-xr-x 5 jamesmandell jamesmandell 170 Jul 6 2007 Sites
-rw-r--r--@ 1 jamesmandell jamesmandell 557 Jul 23 2007 profiles.bin d-128-234-20:~ jamesmandell$ ls -la $HOME
total 144
drwxr-xr-x 36 primary 501 1224 Dec 23 15:55 .
drwxr-xr-x 6 root admin 204 Dec 23 19:42 ..
-rw-r--r-- 1 jamesmandell jamesmandell 3 Jul 6 2007 .CFUserTextEncoding -rw-r--r--@ 1 jamesmandell jamesmandell 24580 Apr 19 10:57 .DS_Store -rw-r--r-- 1 jamesmandell jamesmandell 245 Aug 31 2011 .ImageJ_3D_Viewer.props -rw-r--r-- 1 jamesmandell jamesmandell 11797 Apr 17 18:34 .Rapp.history drwx------ 42 jamesmandell jamesmandell 1428 Apr 13 17:39 .Trash
-rw------- 1 jamesmandell jamesmandell 0 Jul 26 2011 .Xauthority drwxr-xr-x 3 jamesmandell jamesmandell 102 Jul 22 2010 .appdata-local
-rw------- 1 jamesmandell jamesmandell 1248 Apr 13 17:24 .bash_history -rw-r--r-- 1 jamesmandell jamesmandell 0 Nov 14 2008 .bashrc drwx------ 3 jamesmandell jamesmandell 102 Feb 16 2011 .cups
drwx------ 14 jamesmandell jamesmandell 476 Apr 19 10:56 .dropbox
drwxr-xr-x 25 jamesmandell jamesmandell 850 May 12 2011 .fontconfig
drwxr-xr-x 19 jamesmandell jamesmandell 646 Jul 22 2010 .iLinc-inst
drwxr-xr-x 5 jamesmandell jamesmandell 170 Oct 1 2010 .igv
drwxr-xr-x 6 jamesmandell jamesmandell 204 Feb 12 2009 .matlab
drwxr-xr-x 3 jamesmandell jamesmandell 102 Mar 13 15:49 .matplotlib
drwxr-xr-x 5 jamesmandell jamesmandell 170 Aug 3 2007 .sidenote
drwxr-xr-x 3 jamesmandell jamesmandell 102 Mar 12 2008 .webex
-rw-r--r-- 1 jamesmandell jamesmandell 451 Feb 12 2009 CellProfilerPreferences.mat drwx------ 25 jamesmandell jamesmandell 850 Apr 13 13:49 Desktop
drwx------ 16 jamesmandell jamesmandell 544 Jan 31 17:05 Documents
drwx------ 69 jamesmandell jamesmandell 2346 Apr 18 14:53 Downloads
drwx------@ 14 jamesmandell jamesmandell 476 Apr 16 10:07 Dropbox
-rw-r--r-- 1 jamesmandell jamesmandell 4484 Nov 25 2009 GenePattern_InstallLog.log drwxr-xr-x 6 jamesmandell jamesmandell 204 Nov 17 2008 IBM Workplace Forms
-rw-r--r-- 1 jamesmandell jamesmandell 2548 Aug 24 2009 JavaTreeView Config drwx------ 56 jamesmandell jamesmandell 1904 Feb 28 15:50 Library
drwx------ 4 jamesmandell jamesmandell 136 Jul 6 2007 Movies
drwx------ 7 jamesmandell jamesmandell 238 Dec 23 15:55 Music
drwx------ 6 jamesmandell jamesmandell 204 Oct 25 16:22 Pictures
drwxr-xr-x 4 jamesmandell jamesmandell 136 Jul 6 2007 Public
drwxr-xr-x 3 jamesmandell jamesmandell 102 Nov 17 2008 PureEdge
drwxr-xr-x 5 jamesmandell jamesmandell 170 Jul 6 2007 Sites
-rw-r--r--@ 1 jamesmandell jamesmandell 557 Jul 23 2007 profiles.bin
--Jim
11 Posted by kinshuk.saurabh on 21 Apr, 2012 01:16 PM
This comment was split into a new discussion: The R session failed to start
My R session fails to start.....
Windows 7, R 2.15.0
RStudio 0.95.265 to fail to start. The Rstudio had started earlier and worked for may be 7 days but suddenly one day stopped starting. I get the error message box "The R session failed to start". The same problem with some other students..but not with some other students. R works fine. I Checked all instructions for the failure given http://support.rstudio.org/help/kb/troubleshooting/rstudio-will-not...
This is the log file report.......21 Apr 2012 12:46:27 [rdesktop] ERROR system error 9938 (Unknown error); OCCURRED AT: core::Error core::waitWithTimeout(const boost::function<core::WaitResult()>&, int, int, int) C:\Users\Administrator\rstudio\src\cpp
12 Posted by kinshuk.saurabh on 21 Apr, 2012 01:18 PM
Attaching the log file
Support Staff 13 Posted by Josh Paulson on 21 Apr, 2012 07:38 PM
Jim,
Thanks for the update and this looks like somehow the ownership of your home directory was changed (in addition to the group) and was set to "primary" and "501" instead of jamesmandell (see the following line which the ownership and group are different than the rest of your files/directories):
This might have occurred from a migration of your home directory from one account to another or when restoring your computer. Either way, the problem is that your user jamesmandell, does not have permission to create a new directory since it doesn't own your home directory. If you change the ownership of your home directory back to jamesmandell, you should be fine.
Josh
14 Posted by kinshuk.saurabh on 22 Apr, 2012 02:49 PM
Josh,
Please also look at my problem...
kinshuk saurabh
Support Staff 15 Posted by Josh Paulson on 23 Apr, 2012 08:51 PM
Kinshuk,
I've split your question to another discussion as it is likely unrelated (there are various different scenarios why RStudio might not start). You can find my response here:
http://support.rstudio.org/help/discussions/problems/2161-the-r-ses...
Josh
Josh Paulson closed this discussion on 23 Apr, 2012 08:51 PM.