-
Notifications
You must be signed in to change notification settings - Fork 16
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
GIT authentication in rstudio-server not working #233
Comments
From what tool do you use the Feature? If you are using VS Code Devcontainers, this issue may be related r-lib/pak#633. |
I use Codespaces and, the devcontaioner.json is this:
|
The "high level description of the issue" could as well be expressed as: The rstudio instances started by the rstudio-feature ""ghcr.io/rocker-org/devcontainer-features/rstudio-server" does not inherit the correctly setup GIT authentication configuration from Codespaces. |
The "root cause" of the issues likes in the fact that when using the rstudio server together with codespaces, the source code will not be cloned by rstudio . As it is cloned already by Codespaces, which configures certain GIT authentication methods- |
I found a workaround, namely to "change" the remote url, so replacing an url like: via
where xxx is a github token. |
I believe RStudio Server is intentionally designed not to read environment variables. For example, if you search the internet you will find the following post: I guess what we could do here is use a lifecycle script to write the environment variables to something like Renviron before RStudio Server starts, does that make sense? |
Renviron would not work I believe, as this sets it for the "rsession". |
Could you ask about the RStudio IDE in the upstream? |
I am using the rstudio feature
But I am unable to get github authentication working when using the rstudio GIT ui.
It always fails with "authentication required"
I tried all possible ways including environment vars or git helpers , but nothing worked.
Is somebody aware of instructions for a "working authentication" of the rstudio-sever devcontainer feature with GitHub.
(Git in VSCode is fully functional)
With quite some "magic" I got git push/pull working in the rstudio Terminal, but not in the UI, including setting of env vars.
The most concrete issue was, that I could not configure the rserver process with environment vars in
"/etc/rstudio/env-vars". I this a known issue ?
The text was updated successfully, but these errors were encountered: