# Run an OnDemand application with Slurm and Enroot

**URL:** <https://discourse.openondemand.org/t/run-an-ondemand-application-with-slurm-and-enroot/2362>\
**Category:** Get Help\
**Created:** [November 9, 2022, 4:45pm UTC](https://discourse.openondemand.org/t/run-an-ondemand-application-with-slurm-and-enroot/2362 "2022-11-09T16:45:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwardsp](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/edwardsp/32/511_2.png) [@edwardsp](https://discourse.openondemand.org/u/edwardsp)\
**Post date:** [November 9, 2022, 4:45pm UTC](https://discourse.openondemand.org/t/run-an-ondemand-application-with-slurm-and-enroot/2362/1 "2022-11-09T16:45:48Z")

</div>

Hi,

I would like to enable jupyter and run a container version. I have Slurm with enroot installed but the application launch doesn’t seem to be passing the `--container-image=jupyter/scipy-notebook` flag. Here is my submit.yml.erb - [bc\_osc\_jupyter/submit.yml.erb at master · edwardsp/bc\_osc\_jupyter · GitHub](https://github.com/edwardsp/bc_osc_jupyter/blob/master/submit.yml.erb#L13). Can anyone see what I’m doing wrong here?

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![edwardsp](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/edwardsp/32/511_2.png) [@edwardsp](https://discourse.openondemand.org/u/edwardsp)\
**Post date:** [November 9, 2022, 5:50pm UTC](https://discourse.openondemand.org/t/run-an-ondemand-application-with-slurm-and-enroot/2362/2 "2022-11-09T17:50:52Z")

</div>

I found the issue - Open OnDemand is adding `--export NONE` as arguments for sbatch and this seems to stop it from working. By appending `--export ALL` in my submit.yml.erb resolves the issue.

---

<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 8, 2023, 5:51pm UTC](https://discourse.openondemand.org/t/run-an-ondemand-application-with-slurm-and-enroot/2362/3 "2023-05-08T17:51:17Z")

</div>

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