OSC / ondemand

Supercomputing. Seamlessly. Open, Interactive HPC Via the Web
https://openondemand.org/
MIT License
277 stars 103 forks source link

Websockify not very debuggable #1148

Open johrstrom opened 3 years ago

johrstrom commented 3 years ago

We have an INC right now where a user can't login to Matlab using noVNC. Looking through splunk, the request to websockify returned 200 when it should have been 101 Switching protocols. Looking further into it, websockify uses the syslog so we'd need to engage any administrators to view what (if anything) it's logging. This is not very nice. In the least, we should try to get it to spit logs to STDOUT or a websockfiy.out or similar in the staged_root.

┆Issue is synchronized with this Asana task by Unito

msquee commented 3 years ago

Under Websockify additional features there's an option --log-file that we can use. https://github.com/novnc/websockify#additional-websockify

The websockify command in ood_core: https://sourcegraph.com/github.com/OSC/ood_core/-/blob/lib/ood_core/batch_connect/templates/vnc.rb#L127:13

https://github.com/OSC/ood_core/blob/7d6a1c086e7895c557c758de27bccb1da701e3bc/lib/ood_core/batch_connect/templates/vnc.rb#L127