Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support RStudio Server on WSL #4367

Open
codetrainee opened this issue Feb 27, 2019 · 22 comments
Open

Support RStudio Server on WSL #4367

codetrainee opened this issue Feb 27, 2019 · 22 comments

Comments

@codetrainee
Copy link

@codetrainee codetrainee commented Feb 27, 2019

Hi,

I am running the Rstudio server on my windows subsystem linux (Ubuntu 18.04.1 LTS) and encountered a problem saying:

Couldn't find an alternative telinit implementation to spawn

AFAIK, Ubuntu has switched to systemd ecosystem and telinit in wsl (ubuntu 18.04) is a symbolic link pointing to /bin/systemctl*, which could be the cause.

Therefore, I was wondering if you have any plan to solve the compatibility.

@kevinushey
Copy link
Contributor

@kevinushey kevinushey commented Feb 27, 2019

We don't currently plan to support RStudio Server on WSL.

@jmcphers
Copy link
Member

@jmcphers jmcphers commented Mar 6, 2019

We'll use this request to track that.

@jmcphers jmcphers changed the title Couldn't find an alternative telinit implementation to spawn Support RStudio Server on WSL Mar 6, 2019
@jmcphers jmcphers added the server label Apr 3, 2019
@abalter
Copy link

@abalter abalter commented Jun 26, 2019

More and more folks are using WSL, so this is important. Also, Microsoft has recently updated the way WSL installs, including a better filesystem. So looking into that would be useful.

https://www.windowscentral.com/whats-new-windows-console-windows-10-may-2019-update

https://devblogs.microsoft.com/commandline/announcing-wsl-2/

@black-snow
Copy link

@black-snow black-snow commented Jul 28, 2019

I +1 this. I have all my tools in the WSL but I'd like to use RStudio. I don't want to keep another R installation in my windows machine + alle the packages just for that, though.

@tingjhenjiang
Copy link

@tingjhenjiang tingjhenjiang commented Sep 30, 2019

The error

[rserver] ERROR system error 13 (Permission denied); OCCURRED AT: rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<rstudio_boost::asio::ip::tcp>&, const string&, const string&) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/core/include/core/http/TcpIpSocketUtils.hpp:103; LOGGED FROM: int main(int, char* const*) /var/lib/jenkins/workspace/IDE/open-source-pipeline/v1.2-patch/src/cpp/server/ServerMain.cpp:502

may be related to this issue? This error happens when verify the installation with command "rstudio-server verify-installation" after a fresh installation.

Version is 1.2.5001; Windows 10 version is 18362.10022.

==================

Update: this message when the port is occupied. For example, I run in rstudio-server in WSL while I already deployed a rstudio docker container running on port 8787.

@cupofjava2
Copy link

@cupofjava2 cupofjava2 commented Jan 3, 2020

See this post and it works for me (though I found Xming is not required on Windows): https://johnmuschelli.com/neuroc/windows_wsl/index.html

@gtritchie
Copy link
Member

@gtritchie gtritchie commented Jan 9, 2020

See this post and it works for me (though I found Xming is not required on Windows): https://johnmuschelli.com/neuroc/windows_wsl/index.html

RStudio Server is a pure web-based application, not sure why that article says to install X. That would be needed only if you wanted to run Linux Desktop version of RStudio inside WSL (which seems pointless).

@gtritchie
Copy link
Member

@gtritchie gtritchie commented Jan 9, 2020

As soon as WSL v2 goes into general release (i.e. doesn't require joining Windows Insider program) I'll test out running RStudio Server again; don't want to declare RStudio Server supported on WSL until then.

@abalter
Copy link

@abalter abalter commented Jan 9, 2020

@gtritchie I was searching around, and I can't find more details on when v2 will be released. It was in preview build 18917. Will it be in 20H1 or 20H2?

@gtritchie
Copy link
Member

@gtritchie gtritchie commented Jan 9, 2020

Not official, but looks like 20H1: https://www.howtogeek.com/438830/whats-new-in-windows-10s-20h1-update-arriving-spring-2020/

@gtritchie
Copy link
Member

@gtritchie gtritchie commented Jan 9, 2020

Here's similar info on a Microsoft page: https://docs.microsoft.com/en-us/windows-insider/at-home/whats-new-wip-at-home-20h1

@abalter
Copy link

@abalter abalter commented Jan 9, 2020

I hope they release it soon! I was trying windows insider for a while, but I need more stability.

@jflam
Copy link

@jflam jflam commented May 29, 2020

FYI we shipped Windows 10 2004 with WSL 2 support this week. Would be lovely to have RStudio running on WSL 2!

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 29, 2020

Yup, it's on my list. I was able to run RStudio Server on WSL 1 with few problems (other than performance).

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 30, 2020

Did a trial run today; At first blush, RStudio Server runs great on WSL2.

I tried Ubuntu 18 build of RStudio Server 1.3.959 on Ubuntu 20 WSL2 instance following our standard install instructions.

https://rstudio.com/products/rstudio/download-server/debian-ubuntu/

Then you just hit localhost:8787 in browser.

Still get that previously mentioned message at end of the install: Couldn't find an alternative telinit implementation to spawn so need to look into that, but isn't prevent RStudio Server from starting up.

Just initial test, but looking good so far.

@gtritchie
Copy link
Member

@gtritchie gtritchie commented May 30, 2020

After restarting WSL, do have to manually restart RStudio Server via "sudo rstudio-server start" so that's probably related to that error message.

@psychelzh

This comment was marked as outdated.

@gtritchie
Copy link
Member

@gtritchie gtritchie commented Jun 18, 2020

Support article published on running RStudio Server in WSL2. Problem with having to manually restart still there, but keeping this issue open to track investigation of that.

https://support.rstudio.com/hc/en-us/articles/360049776974-Using-RStudio-Server-on-Windows-with-WSL2

@nickschurch
Copy link

@nickschurch nickschurch commented Dec 2, 2020

Just to add, RStudio works on WSL if you install via conda - but the conda package is out of date and is officially unsupported so Your Milage May Vary.

@mikebessuille mikebessuille added this to the Later milestone Jan 11, 2022
@aborruso
Copy link

@aborruso aborruso commented Apr 15, 2022

Hi all,
when I run sudo rstudio-server start I have

TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.

How to solve it?

A note: I do not have these 2 files on my debian WSL2 OS

@aborruso
Copy link

@aborruso aborruso commented Apr 15, 2022

Hi all, when I run sudo rstudio-server start I have

TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/var/log/rstudio/rstudio-server/rserver.log'.

How to solve it?

A note: I do not have these 2 files on my debian WSL2 OS

If I run http://localhost:8787/ it works. #solved

@abalter
Copy link

@abalter abalter commented Apr 15, 2022

Please post your steps for installing rstudio-server. I've had no trouble. Also, is there a reason you are using rstudio-server instead of rstudio-desktop?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests