# SLURM Interactive Desktop job not launching desktop, output.log is empty

**URL:** <https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142>\
**Category:** Get Help\
**Tags:** ondemand2, question\
**Created:** [June 27, 2022, 7:28pm UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142 "2022-06-27T19:28:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarcraja](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kumarcraja/32/1160_2.png) [@kumarcraja](https://discourse.openondemand.org/u/kumarcraja)\
**Post date:** [June 27, 2022, 7:28pm UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142/1 "2022-06-27T19:28:37Z")

</div>

Dear team,

Configuring OOD first time. Unable to launch interactive Desktop with slurm batch job. Also output.log is empty.

Please kindly do the needful to diagnose and resolve the same.

Following is the configuration file contents.

## cat /etc/ood/config/clusters.d/iiser.conf

v2:  
metadata:  
title: “iiser”  
login:  
host: “[compute01.hpcdomain.com](http://compute01.hpcdomain.com)”  
default: true  
job:  
adapter: “slurm”  
cluster: “iiser”  
bin: “/usr/bin/”  
conf: “/etc/slurm/slurm.conf”  
batch\_connect:  
copy\_environment: true  
basic:  
script\_wrapper: |  
module purge  
%s  
set\_host: “host=$(hostname -A | awk ‘{print $1}’)”  
vnc:  
script\_wrapper: |  
export PATH=“/opt/TurboVNC/bin:$PATH”  
export WEBSOCKIFY\_CMD=“/usr/local/bin/websockify”  
set\_host: “host=$(hostname -A | awk ‘{print $1}’)”  
acls:

- adapter: “group”  
groups:
  - “user1”
  - “user2”
  - “root”
  - “ood”  
type: “whitelist”

## cat /etc/ood/config/apps/bc\_desktop/iiser.yml

title: “iiser XFCE Desktop”  
cluster: “iiser”  
attributes:  
desktop: “xfce”  
batch\_connect:  
template: “vnc”  
websockify\_cmd: “/usr/local/bin/websockify”

Images showing the web interface stats

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/a/a1af4415e2cecb6fd251a9e7b507496c7f606128.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/1/1729d9a921a92aab1c9d600ff0c49ffb92ada46e.png)

---

<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:** [June 27, 2022, 9:07pm UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142/2 "2022-06-27T21:07:01Z")

</div>

I’d check the output from `sacct` to see what the exit code is or what Slurm is doing. It seems like it’s being scheduled and immediately failing - maybe out of memory issue or some odd shell thing.

In any case, because `sacct` shows historical jobs you can see the exit code of the job and that exit code/and or slurm error should point you in the right direction.

---

<div class="post-metadata">

**Author:** ![kumarcraja](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kumarcraja/32/1160_2.png) [@kumarcraja](https://discourse.openondemand.org/u/kumarcraja)\
**Post date:** [June 28, 2022, 12:44am UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142/3 "2022-06-28T00:44:25Z")

</div>

Hi jeff,

sacct command output here

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/5/549f6f7a0d25798ec95f93696cc302e650b24b04.png)

slurm job exit code is normal 0.  
Able to submit normal batch mode jobs and running fine.  
Interactive Desktop job is completing with in few seconds, but it is not showing any output and output.log is empty.

Hearty Thanks,  
C Raja

---

<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:** [June 28, 2022, 1:57am UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142/4 "2022-06-28T01:57:50Z")

</div>

OK… That doesn’t make much sense that it exits 0 immediately and without anything in the logs. I see it’s a fairly new cluster… there’s something here we’re missing that’s obvious and now I think I see it.

You need the `%s` in the `script_wrapper`. I see you have it for basic - but not for vnc. This is the important bit. `%s` is literally the script that we provide. It is the script that you’re wrapping. Since you didn’t add it - we didn’t!

Look at the file `job_script_content.sh` and you’ll see there’s basically nothing there (this is the file that’s submitted to Slurm).

---

<div class="post-metadata">

**Author:** ![kumarcraja](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/kumarcraja/32/1160_2.png) [@kumarcraja](https://discourse.openondemand.org/u/kumarcraja)\
**Post date:** [June 28, 2022, 2:20am UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142/5 "2022-06-28T02:20:30Z")

</div>

Dear Jeff,

Now issue is resolved. Able to launch remote desktop.

Added %s in vnc template section as below

```
vnc:
  script_wrapper: |
    export PATH="/opt/TurboVNC/bin:$PATH"
    export WEBSOCKIFY_CMD="/usr/local/bin/websockify"
    %s
  set_host: "host=$(hostname -A | awk '{print $1}')"

```

Hearty Thanks, going the extra mile for all of us who depend on you. I simply couldn’t be more grateful…

C Raja

---

<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:** [December 25, 2022, 2:20am UTC](https://discourse.openondemand.org/t/slurm-interactive-desktop-job-not-launching-desktop-output-log-is-empty/2142/6 "2022-12-25T02:20:46Z")

</div>

Closed on December 25, 2022, 2:20am UTC

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