Rstudio 404 error on 5% of the nodes - The rest work great

Hello,
I’m still working on grasping OOD, so please be patient with me. Your help is much appreciated.

Note: All nodes are provisioned the same

Issue:
RStudio interactive apps session job submitted will land on host:>_c201n03 and 30+ other hosts will be successful. When RStudio job submission lands on host:>_n0359 and ten other nodes with similar naming convention we get a page that says “404 Not Found” The requested URL was not found on this server.

Additional logging information:
failed
/var/log/httpd/xxxxx.xxx.xxxx.edu_access_ssl.log:473386:10.xxx.xxx.xxx - - [16/Apr/2025:16:36:43 -0400] “GET /rnode/n0371/8708/auth-do-sign-in HTTP/1.1” 404 196 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36”

…/rstudio/view.html.erb

<script type="text/javascript">
 (function () {
     let date = new Date();
     date.setTime(date.getTime() + (7*24*60*60*1000));
     let expires = "expires=" + date.toUTCString();
     let cookiePath = "path=/rnode/" + "<%= host.to_s %>" + "/" + "<%= port.to_s %>/";
     /**
        rstuido wants a cookie called csrf-token - but that's going to change in 2020!
      */
     let cookie = `csrf-token=<%= csrftoken %>;${expires};${cookiePath};SameSite=strict;secure`;
     document.cookie = cookie;
 })();
</script>

<form action="/rnode/<%= host %>/<%= port %>/auth-do-sign-in" method="post" target="_blank">
  <input type="hidden" name="csrf-token" value="<%= csrftoken %>"/>
  <input type="hidden" name="rs-csrf-token" value="<%= csrftoken %>">
  <input type="hidden" name="username" value="<%= ENV["USER"] %>">
  <input type="hidden" name="password" value="<%= password %>">
  <input type="hidden" name="staySignedIn" value="1">
  <input type="hidden" name="appUri" value="">
  <button class="btn btn-primary" type="submit">
      <i class="fa fa-registered"></i> Connect to RStudio Server
  </button>
</form>

Best

Sounds like your host_regex might not be allowing that naming convention. Check: 3. Enable Reverse Proxy — Open OnDemand 4.0.0 documentation