# Interactive-apps sbatch: error: Batch job submission failed

**URL:** <https://discourse.openondemand.org/t/interactive-apps-sbatch-error-batch-job-submission-failed/2145>\
**Category:** Get Help\
**Tags:** ondemand2\
**Created:** [June 29, 2022, 9:56am UTC](https://discourse.openondemand.org/t/interactive-apps-sbatch-error-batch-job-submission-failed/2145 "2022-06-29T09:56:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![liu-shaobo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/liu-shaobo/32/1152_2.png) [@liu-shaobo](https://discourse.openondemand.org/u/liu-shaobo)\
**Post date:** [June 29, 2022, 9:56am UTC](https://discourse.openondemand.org/t/interactive-apps-sbatch-error-batch-job-submission-failed/2145/1 "2022-06-29T09:56:22Z")

</div>

hi, jupyter Interactive-apps submit error

```auto
# /var/www/ood/apps/sys/bc_jupyter/submit.yml.erb
---
batch_connect:
  template: "basic"
### Add the following content to slurm ###
script:
  native:
    - "-N"
    - "<%= bc_num_slots.blank? ? 1 : bc_num_slots.to_i %>"
    - "-C"
    - "c12"

```

Error is as follows：

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/c/cbdaeb2a499b8c86aa7f110fb9f58af42325d49f.jpeg)

After the parameters are recovered, the submission is normal

```auto
# /var/www/ood/apps/sys/bc_jupyter/submit.yml.erb
---
batch_connect:
  template: "basic"

```

---

<div class="post-metadata">

**Author:** ![gbyrket](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/gbyrket/32/894_2.png) [@gbyrket](https://discourse.openondemand.org/u/gbyrket)\
**Post date:** [June 29, 2022, 1:58pm UTC](https://discourse.openondemand.org/t/interactive-apps-sbatch-error-batch-job-submission-failed/2145/2 "2022-06-29T13:58:35Z")

</div>

Hi Liu.

Thank you for your post. We’ll take a look at this, and get back with you.

For clarity. Are you saying when you remove

script:  
native:  
- “-N”  
- “\<%= bc\_num\_slots.blank? ? 1 : bc\_num\_slots.to\_i %\>”  
- “-C”  
- “c12”

it works fine?

Thanks,  
-gerald

---

<div class="post-metadata">

**Author:** ![liu-shaobo](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/liu-shaobo/32/1152_2.png) [@liu-shaobo](https://discourse.openondemand.org/u/liu-shaobo)\
**Post date:** [June 29, 2022, 2:12pm UTC](https://discourse.openondemand.org/t/interactive-apps-sbatch-error-batch-job-submission-failed/2145/3 "2022-06-29T14:12:43Z")

</div>

yes , I found the reason，is that slurm does not set --constraints，Not required “-C” and “c12”。

---

<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 26, 2022, 2:13pm UTC](https://discourse.openondemand.org/t/interactive-apps-sbatch-error-batch-job-submission-failed/2145/4 "2022-12-26T14:13:36Z")

</div>

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