# Failed to submit session with the following error: No such file or directory - /opt/slurm/bin/sbatch

**URL:** <https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960>\
**Category:** Get Help\
**Created:** [September 13, 2023, 7:31pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960 "2023-09-13T19:31:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [September 13, 2023, 7:31pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960/1 "2023-09-13T19:31:14Z")

</div>

Hello all.  
Receiving the error in the title above. I have verified that the file exists.  
OoD is on one server and AWS Parallel Cluster is on a second server.

I have searched the logs and couldn’t find anything that would tell me what this error is.  
I’m using the RStudio interactive app example as a test.

Thanks.

---

<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:** [September 13, 2023, 7:39pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960/2 "2023-09-13T19:39:14Z")

</div>

> [@maestro7879](#):
>
> I have verified that the file exists.

On which server? It needs to exist on the server that OOD is installed on. Or you can add a `submit_host` to the `cluster.d/slurm.yml` and the system will ssh into that host and issue commands (like `/opt/slurm/bin/sbatch`).

By default the system will use the localhost’s filesystem. localhost being the host that OOD is installed & running on.

---

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [September 13, 2023, 8:41pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960/3 "2023-09-13T20:41:50Z")

</div>

Thanks for the clarification, very helpful.  
I do have submit\_host configured in cluster.d/slurm.yml.  
sh-4.4$ sudo cat example2.yml  
v2:  
metadata:  
title: “test-al2”  
login:  
host: “10.121.123.123”  
submit\_host: “10.121.123.123”  
job:  
adapter: “slurm”  
cluster: “test-al2”  
bin: “/opt/slurm/bin”  
conf: “/opt/slurm/etc/slurm.conf”  
batch\_connect:  
basic:  
script\_wrapper: |  
module purge  
%s  
vnc:  
script\_wrapper: |  
module purge  
export PATH=“/usr/local/turbovnc/bin:$PATH”  
export WEBSOCKIFY\_CMD=“/usr/local/websockify/run”  
%s

---

<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:** [September 13, 2023, 8:52pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960/4 "2023-09-13T20:52:37Z")

</div>

It should be within the `job` section, not `login`.

```yaml
v2:
  job:
    submit_host: '10.10.123.213'

```

---

<div class="post-metadata">

**Author:** ![maestro7879](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/maestro7879/32/1865_2.png) [@maestro7879](https://discourse.openondemand.org/u/maestro7879)\
**Post date:** [September 18, 2023, 7:59pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960/5 "2023-09-18T19:59:08Z")

</div>

That was it. Thank you.

---

<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:** [March 16, 2024, 7:59pm UTC](https://discourse.openondemand.org/t/failed-to-submit-session-with-the-following-error-no-such-file-or-directory-opt-slurm-bin-sbatch/2960/6 "2024-03-16T19:59:35Z")

</div>

Closed on March 16, 2024, 7:59pm UTC

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