jupyterhub / jupyter-rsession-proxy

Jupyter extensions for running an RStudio rsession proxy
BSD 3-Clause "New" or "Revised" License
118 stars 87 forks source link

Fails to start if user from getpass.getuser can't run it. #129

Closed chicocvenancio closed 2 years ago

chicocvenancio commented 2 years ago

Bug description

See https://phabricator.wikimedia.org/T302164

On jupyter-rsession-proxy 2 and up we are getting errors when trying to start rstudio because it is being run from the user from getpass.getuser(). Jupyterhub adds a USER variable with the username from the authenticator, but that user is not a linux user in our case. All pods use the same linux user to keep access to shared storage. Since the user does not exist we get an error in the form

ERROR Could not find details for server user 'Chicocvenancio'; LOGGED FROM: virtual rstudio::core::ProgramStatus rstudio::server::Options::read(int, char* const*, std::ostream&) src/cpp/server/ServerOptions.cpp:299

Expected behaviour

Grab the user default from NB_USER instead of USER.

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: