Unable to get Stata working on OOD

Hello community,

I am trying to get Stata working on OOD. We have Stata module installed and MATLAB on OOD works as expected over VNC. However, I am getting the following error in the output.log when I submit a Stata job:

This does not look related to Stata but I could be wrong. Any help is greatly appreciated.


Setting VNC password…
Starting VNC server…

Desktop ‘TurboVNC: compute-3-28.saber:1 (himanshu)’ started on display compute-3-28.saber:1

Log file is vnc.log
Successfully started VNC server on compute-3-28.saber:5901…
Script starting…
Starting websocket server…
The system default contains no modules
(env var: LMOD_SYSTEM_DEFAULT_MODULES is empty)
No changes in loaded modules

  • xfwm4 --compositor=off --daemon --sm-client-disable
    WebSocket server settings:
    • Listen on :25481
    • Flash security policy server
    • No SSL/TLS support (no cert file)
    • Backgrounding (daemon)
      Scanning VNC log file for user authentications…
      Generating connection YAML file…
  • xstata-mp

(xfwm4:108675): GLib-CRITICAL **: 09:37:30.657: g_str_has_prefix: assertion ‘prefix != NULL’ failed

(xfwm4:108675): xfwm4-WARNING **: 09:37:30.674: The property ‘/general/double_click_distance’ of type int is not supported
Cleaning up…
Killing Xvnc process ID 108631
xfwm4: Fatal IO error 2 (No such file or directory) on X server :1.

  • xsetroot -solid ‘#D3D3D3
    xsetroot: unable to open display ‘:1’
  • xfsettingsd --sm-client-disable
  • xfce4-panel --sm-client-disable
    xfce4-panel: Cannot open display: .
    Type “xfce4-panel --help” for usage.
    xstata-mp: Fatal IO error 2 (No such file or directory) on X server :1.

(xfsettingsd:108718): xfsettingsd-ERROR **: 09:37:30.962: Unable to open display.

I noticed that the job was finishing instantly and then I read OSC documentation on certain apps such as Stata background themselves. I add the suggested code and the job is no longer finishing instantly. It all works. Here is the URL i followed to solve it: Troubleshooting Interactive Apps — Open OnDemand 1.8.12 documentation