You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"R Session Disconnected" error when running RStudio Server + RStudio Desktop at same time #10242
Note: filed as qa-repro as I was reproducing this with the development versions of RStudio; if this does not reproduce in the current daily builds of RStudio then I think we can file this for a separate milestone.
@AndrewMcClain is this part of the db changes / session info stuff? If it is, and if it's a regression, we should fix for PT. Otherwise, we might not want to add it to PT considering how overloaded PT is.
Having RStudio Server use a separate data directory (e.g. export RSTUDIO_DATA_HOME=~/.local/share/rstudio-server) resolves the issue, so I wonder if there’s some kind of cross-talk in the session database here.
I can locally repro, and it doesn't repro in Ghost Orchid, so this looks to be a regression.
I have however observed some odd behavior that it doesn't repro consistently, or sometimes deleting .local/share/rstudio doesn't resolve it. So I'm going to keep looking at this to see what the cause may be.
Turns out this is some session cross talk in the sources database between Desktop and Server, this is mitigated by my changes in #10115 to fix a regression causing Desktop to write to the scratch path.
I was able to reproduce the original issue in with build 318. However, build 335 continued to fail until I removed the directory with rm -rf ~/.local/share/rstudio left over from the earlier build, and restarted the server. After that, no problem.
Activity
kevinushey commentedon Dec 13, 2021
Note: filed as qa-repro as I was reproducing this with the development versions of RStudio; if this does not reproduce in the current daily builds of RStudio then I think we can file this for a separate milestone.
mikebessuille commentedon Dec 14, 2021
@AndrewMcClain is this part of the db changes / session info stuff? If it is, and if it's a regression, we should fix for PT. Otherwise, we might not want to add it to PT considering how overloaded PT is.
AndrewMcClain commentedon Dec 14, 2021
I don't expect this is db changes related. But I'll get a local repro going and see what I find.
mikebessuille commentedon Dec 14, 2021
See https://rstudio.slack.com/archives/C7HT9GDB9/p1639437744239900. Particularly,
AndrewMcClain commentedon Dec 14, 2021
I can locally repro, and it doesn't repro in Ghost Orchid, so this looks to be a regression.
I have however observed some odd behavior that it doesn't repro consistently, or sometimes deleting
.local/share/rstudiodoesn't resolve it. So I'm going to keep looking at this to see what the cause may be.AndrewMcClain commentedon Dec 16, 2021
Turns out this is some session cross talk in the sources database between Desktop and Server, this is mitigated by my changes in #10115 to fix a regression causing Desktop to write to the scratch path.
ronblum commentedon Dec 21, 2021
Verified that this works with the combination of
I was able to reproduce the original issue in with build 318. However, build 335 continued to fail until I removed the directory with
rm -rf ~/.local/share/rstudioleft over from the earlier build, and restarted the server. After that, no problem.Note: Not verified on Red Hat 8 due to #8840.
privefl commentedon Sep 12, 2025
I experience this randomly (not at the start, but once per day on average), and it completely restarts my session.