I have been having problems with my interactive RStudio sessions on bianca since last Friday. The RStudio interface is quite sluggish and gets stuck either just loading or in doing a simple task like loading an R package (for example limma). I wonder if there is something that has gone awry with my project or what has changed to cause this. I encounter this even when bianca is not particularly busy. I have tried shutting down my virtual session and logging in again several times, as well as restarting my browser, and still encounter a sluggish session. Below are the commands I use:
## start an interactive session with a whole node ( I also tried variations of this with a few cores)
interactive -A sens2023036 -p node -t 2-10
## load R_packages module
module load R_packages/4.3.1
## load RStudio module
module load RStudio/2023.12.1-402
## start RStudio
rstudio
The attached screenshots show the unchanged state of the session after several hours. I also noticed “core” files appearing in my home path. I am attaching a screenshot of those as well. Could there be an issue with my project specifically or what do you think could be explaining the lag? Many thanks in advance for your help!
Try allocating at lease 2 cores fore the interactive session. You may also try the next-latest RStudio version, just before 2023.12., i.e. RStudio/2023.06.2-561.
Thanks for your quick reply. I have been allocating several cores with this. However, using a different RStudio module seems to have worked. Many thanks!
Good it works!
Sorry I missed that you tried a whole node.
Which version of RStudio do you get when you just load it without version set?
...
Thanks for checking this. Indeed, I was using specific versions (R_packages/4.3.1 and RStudio/2023.12.1-402) for reproducibility reasons. With RStudio it matters less so, so that’s ok. However today I am running into the same problems again, and even got an email that I am running out of memory when RStudio is simply trying to launch. I see RStudio open up but stuck (as in the screenshots I originally shared). This is with 10 nodes in my interactive session, so it’s a bit odd.
I wonder if I broke something last week, when I had to ctrl+c in the terminal running RStudio to exit, since it was stuck and wouldn’t close.
From your images it looks like you are still running on bianca login node.
Are you sure you are starting RStudio from the terminal screen where the interactive sessions starts? You should have a "b" address, not a "bianca" address.
I am attaching the images here which show the issue from the interactive session (10 nodes) which I currently have running, called “sens2023036-b10”. Thanks!
Tue Nov 19 15:58:15 2024 AA (UPPMAX) - Ticket #303154: - Merged into #303084: Problems interacting with RStudio
Tue Nov 19 15:58:15 2024 AA (UPPMAX) - Ticket #303153: - Merged into #303084: Problems interacting with RStudio
Tue Nov 19 16:00:03 2024 AA (UPPMAX) - Ticket #303153: - Merged into #303084: Problems interacting with RStudio
I am creating a new ticket here (following up on ticket #303084), since the long email thread was causing problems with my Outlook and I could unfortunately no longer reply in that email thread.
Problem description: When starting an interactive session with RStudio on bianca (project sens2023036), RStudio pops up, but then keeps trying to load and I can never get started. I can see RStudio, but in the console it is lagging and I cannot type (keeps trying to load on the bottom right panel). This is even though I reserve an entire node for my interactive session and use the default R_packages and RStudio modules.
I have been in touch with Björn, and together we have tried the following, which unfortunately hasn’t resolved the issue:
- Deleting the .Rhistory and .RData files in my home directory
- Launching RStudio from a location different than my home directory
- Making sure there’s nothing weird in my .bashrc
- Making sure there is no active conda environment in the background or other loaded module
- $RSTUDIO_DISABLE_PACKAGES is TRUE
- Removing files under “/home/danmac/.config/rstudio/Cache/Cache_Data” and “/home/danmac/.config/rstudio/Code Cache/js” with the exception of “index” and “index-dir/”. This deleted over 10,000 files.
- Re-starting the log-in node
- Testing other users can launch RStudio (they can)
- Testing I can launch RStudio in another project (I can)
- Making sure my R folders are small, and that I am not out of quota
- Launching an interactive session with more memory (-C mem256GB)
- User cannot demonstrate, due to a reported Bianca slowness that needs fixing
- Either meet Tuesday 17 Dec afternoon, or ask another colleague to take over
- Decision: meet Tuesday 17 Dec 14:00
From user:
module load rstudio
works fine,
but module load R_packages
and module load rstudio
gives a problem. Those packages are needed!
See here.
See here.
- Progress
- can log in to user's project
- Found 'It tends to be a matter of minutes to less than hours before the changes propagate from SUPR to UPPMAX', from https://docs.uppmax.uu.se/getting_started/project_apply
- can now start interactive nodes in project
- login nodes should take less than 10 minutes to start
- added measurements to UPPMAX documentation at https://docs.uppmax.uu.se/cluster_guides/cluster_speeds/#starting-an-interactive-session-with-two-cores-for-one-hour
- can log in to user's project
- User shows complete process after starting a minimal interactive node
interactive -A sens2017625 -n 2 -t `:00:00
module load R_packages/4.3.1
module load RStudio/2023.12.1-402
gdb rstudio core.7641
rstudio
killall -bash
rstudio
- Collect exact error messages
- Try to run core file using `gdb rstudio core.something`: expected to
fail
- Do `killall -bash` and run again
13:00:42 From Richèl 'Rea-shell' Bilderbeek To Everyone:
module load R_packages/4.3.1
module load RStudio/2023.12.1-402
gdb rstudio core.7641
rstudio
killall -bash
rstudio
13:06:18 From Richèl 'Rea-shell' Bilderbeek To Everyone:
killall -bash
13:08:11 From Richèl 'Rea-shell' Bilderbeek To Everyone:
kill --signal 15 11723
13:09:43 From Richèl 'Rea-shell' Bilderbeek To Everyone:
kill -s 1 11723
13:20:07 From Richèl 'Rea-shell' Bilderbeek To Everyone:
module load R_packages/4.3.1
module load RStudio/2023.12.1-402