-
Notifications
You must be signed in to change notification settings - Fork 55
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
OSC RStudio App erroring #971
Comments
What version of RStudio are you trying to run? I want to say they changed the CSRF token cookie name at some point. This comment says it will change, but doesn't indicate what it'll change to. Maybe it's just changing this key
This isn't your issue - but |
I have been using the very latest version on the posix website: https://download2.rstudio.org/server/rhel8/x86_64/rstudio-server-rhel-2024.04.1-748-x86_64.rpm Which versions currently being used your side? I can try testing if it makes a difference. Are you able to comment on the issue regarding --auth-none 1 or do you believe this may be a version problem too? Oh, and can I assume that the rstudio-server service is supposed to be stopped on the compute node on boot? The 'sed' commands are only issued on the OnDemand node where the app is stored. I'm cloning the git on there to create the app. |
We're running
Not really. I've never tried |
I get the same exact issues with the version of RStudio you are using. It works fine if I try it outside of OOD. But OOD is working for the test jupyter and visual studio code apps. Any other ideas on where to look? |
When you're using OOD - you're getting the CSRF error? |
Yes correct I get the CSRF error and get redirected to the login screen: 2024-06-11T09:02:49.297123Z [rserver] ERROR Failed to validate sign-in with invalid CSRF form; LOGGED FROM: bool rstudio::server::auth::common::validateSignIn(const rstudio::core::http::Request&, rstudio::core::http::Response*) src/cpp/server/auth/ServerAuthCommon.cpp:136 If try to turn authentication off, it actually gets further and creates a user, but nothing seems to happen on the web browser, it doesn't even error, it's just blank. Im unsure if Id get the same if authentication was fixed. |
It's the One thing I'm seeing there is you have The view.html.erb specifies |
I'm using the following commands to install the app: git clone --single-branch -b v0.27.1 https://github.com/OSC/bc_osc_rstudio_server /var/www/ood/apps/sys/rstudio So the view.html.erb is untouched from the original you have shared a link to. I never actually see an 'auth-do-sign-in' via chrome developer tools. When I start R studio there's only an 'auth-sign-in?appURI=%2F'. Is there anything which may be forcing a GET request rather than the expected post request? If it's useful, I'm viewing open on demand via an azure virtual machine. So essentially, from my laptop, I'm going through two other VMs to reach the node on which RStudio is started. Im also not using SSL as this is just for testing, Im not sure if that would cause some issues. It hasnt with the other apps... |
OK - do you have any browser extensions that could be throwing this off? Can you try in a different browser? |
Vanilla installations of Firefox and Chrome both result in the very same issue, no specific changes have been made to the browsers. |
I'm also finding that if I start the standard rstudio-server.service and try to login via web browser without OnDemand, it works. If I try to login to the OnDemand created server, as well as getting the issues described above, trying to login to the server outside of the OnDemand gives the same issue. |
OK, so for completions sake, the blank screen from above is what happens if the regex matching for your reverse proxy configuration is incorrect: https://osc.github.io/ood-documentation/release-1.2/app-development/interactive/setup/enable-reverse-proxy.html |
Hi,
I'm trying to run the OSC Rstudio app on an AlmaLinux image on a Microsoft Azure CycleCloud cluster. I'm running the following commands to set up the app and applying what I believe are minimal changes to get the app to work with my setup:
git clone --single-branch -b v0.27.1 https://github.com/OSC/bc_osc_rstudio_server /var/www/ood/apps/sys/rstudio
sed -i 's/- "owens"/- "my_cluster"/g' /var/www/ood/apps/sys/rstudio/form.yml
sed -n -i 'p;18a "export PATH="$PATH:/usr/lib/rstudio-server/bin"' /var/www/ood/apps/sys/jupyter/template/script.sh.erb
The image has R, Rstudio and proot installed I am trying to avoid using a container.
The app appears on the portal but when I try to connect I get the following:
The log file displays the following lines:
2024-06-11T09:02:49.297123Z [rserver] ERROR Failed to validate sign-in with invalid CSRF form; LOGGED FROM: bool rstudio::server::auth::common::validateSignIn(const rstudio::core::http::Request&, rstudio::core::http::Response*) src/cpp/server/auth/ServerAuthCommon.cpp:136
2024-06-11T09:02:52.408399Z [rserver] DEBUG Request for main page with no user-identifier - redirecting to login page: /
2024-06-11T09:02:55.444481Z [rserver] DEBUG Request for main page with no user-identifier - redirecting to login page: /
I then tried switching off authentication (just to get it working) by setting --auth-none 1.
Upon trying to login to the app I do not get redirected to the authentication screen, but just get a blank page like the following:
The log file displays the following in this case but I never see RStudio start up, just the blank page above:
_2024-06-11T09:12:27.065764Z [rserver] ERROR Failed to validate sign-in with invalid CSRF form; LOGGED FROM: bool rstudio::server::auth::common::validateSignIn(const rstudio::core::http::Request&, rstudio::core::http::Response*) src/cpp/server/auth/ServerAuthCommon.cpp:136
2024-06-11T09:12:27.083290Z [rserver] DEBUG Created new UserSession for: muneeb (total: 1)
2024-06-11T09:12:27.089375Z [rserver] DEBUG User db query start: muneeb
2024-06-11T09:12:27.095115Z [rserver] DEBUG No record found for user in db: muneeb
2024-06-11T09:12:27.101050Z [rserver] DEBUG Adding user to database: muneeb
2024-06-11T09:12:27.107846Z [rserver] DEBUG Adding session cookie: muneeb|Tue%2C%2011%20Jun%202024%2010%3A12%3A27%20GMT|MNHhzTU%2Fsh2%2Bk8fp%2FDucD%2F3JdNlI1MYjEl2HakCVwDM%3D for user: muneeb
Is there something I am missing here?
The text was updated successfully, but these errors were encountered: