# OnDemand: Web Socket Error for Shell, RStudio, etc

**URL:** <https://discourse.openondemand.org/t/ondemand-web-socket-error-for-shell-rstudio-etc/1283>\
**Category:** Get Help\
**Created:** [January 25, 2021, 3:06pm UTC](https://discourse.openondemand.org/t/ondemand-web-socket-error-for-shell-rstudio-etc/1283 "2021-01-25T15:06:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn.doughty](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@shawn.doughty](https://discourse.openondemand.org/u/shawn.doughty)\
**Post date:** [January 25, 2021, 3:06pm UTC](https://discourse.openondemand.org/t/ondemand-web-socket-error-for-shell-rstudio-etc/1283/1 "2021-01-25T15:06:13Z")

</div>

When install the latest OnDemand, I can get most functionality to work including Matlab/X11. However when clicking on the button to open a shell (on the launch card) it gives a “Failed to establish a websocket connection. Be sure you are using a browser that supports websocket connections.”

This also happens when trying to get RStudio and other non-X11 apps working. Interestingly enough testing manually via a slurm allocation, using nc to listen on a port and them browsing to that node with OnDemand works just fine.

Basically the opposite of the problems I had when installing previous, but that is far more likely to do with me than anything else.

Any ideas?

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [January 25, 2021, 3:37pm UTC](https://discourse.openondemand.org/t/ondemand-web-socket-error-for-shell-rstudio-etc/1283/2 "2021-01-25T15:37:56Z")

</div>

For the shell app you’re probably running allowlists, you have to add every host you’re going to allow sshing into.

[https://osc.github.io/ood-documentation/master/customization.html#set-ssh-allowlist](https://osc.github.io/ood-documentation/master/customization.html#set-ssh-allowlist)

For Rstudio and other non-X11 apps I’m not sure what’s going on there. non-X11 apps don’t even use websockets so we’d need some more info on what error messages you’re seeing.

---

<div class="post-metadata">

**Author:** ![shawn.doughty](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@shawn.doughty](https://discourse.openondemand.org/u/shawn.doughty)\
**Post date:** [January 25, 2021, 10:36pm UTC](https://discourse.openondemand.org/t/ondemand-web-socket-error-for-shell-rstudio-etc/1283/3 "2021-01-25T22:36:11Z")

</div>

Jeff, that fixes the shell app issue when connecting up from launch cards, thanks! I’ll look into Rstudio more and see if i can replicate the issue with something else and provide more debugging information. I’m the first to admit it doesn’t really make sense.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [May 19, 2022, 1:40pm UTC](https://discourse.openondemand.org/t/ondemand-web-socket-error-for-shell-rstudio-etc/1283/4 "2022-05-19T13:40:38Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
