# Error on the 'active jobs' page, redo

**URL:** <https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834>\
**Category:** Get Help\
**Tags:** question\
**Created:** [April 9, 2020, 11:16pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834 "2020-04-09T23:16:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![georges](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@georges](https://discourse.openondemand.org/u/georges)\
**Post date:** [April 9, 2020, 11:16pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/1 "2020-04-09T23:16:28Z")

</div>

I am running the latest ansible-ood, I have configured the values in defaults/main.yml for our cluster. I also checked the documentation online and I do have it defined in /opt/ood/config/clusters.d/\<our\_cluster\>/yml for slurm, however, it seems the only things that comes up on the screen is: “No clusters found for cluster id: all” .  
I have also submitted a job manually to slurm as the configured user, and it (because of) won’t show up in the page.  
Is there any suggestions that you can send over?

---

<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:** [April 10, 2020, 1:31pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/2 "2020-04-10T13:31:23Z")

</div>

Yea, let’s see what the configuration you’re using is. Either the produced file in `clusters.d` or the ansible configuration used to generate it. I assume `all` isn’t a clustername you’re using?

---

<div class="post-metadata">

**Author:** ![georges](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@georges](https://discourse.openondemand.org/u/georges)\
**Post date:** [April 10, 2020, 4:45pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/3 "2020-04-10T16:45:26Z")

</div>

From the ansible config:  
## Manage cluster example, default undef  
cluster:  
v2:  
metadata:  
title: “Apollo Cluster”  
login:  
host: “our hostname put here”  
job:  
adapter: slurm  
bin: /usr/local/slurm/bin

## In the clusters.d file:

cluster:  
v2:  
metadata:  
title: “Apollo Test Cluster”  
url: “\<hostname\_here\>”  
hidden: false  
login:  
host: “localhost”  
job:  
adapter: “slurm”  
cluster: “apollo”  
host: “node name here”  
bin: “/usr/local/slurm/bin”  
conf: “/usr/local/slurm/etc/slurm.conf”

---

<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:** [April 10, 2020, 5:02pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/4 "2020-04-10T17:02:27Z")

</div>

I’m thinking this could be slurm thing. You have some issues with ansible and configurations which I’ve given below, but that’s the main issue becuase it looks like you’ve configured what’s in `cluster.d` manually and it looks fine.

What does `squeue --all` command ran in a shell return? I’m thinking that’s where our issue lies. That slurm somehow doesn’t like this flag. Did you happen to change the `SQUEUE_ALL` environment variable?

On your ansible configurations, the ansible configuration is 1:1 with what get’s written out. So the fact that the config is different than what exists, tells me something’s wrong there.

Also your ansible config should be clusters plural, then the next item in the map is the name of the cluster (and the name of the file created). Here’s a super simple example of 2 clusters, on slurm and one pbs.

```auto
clusters:
  titan:
    v2:
      job:
        adapter: slurm
  io:
    v2:
      job:
        adapter: lsf

```

---

<div class="post-metadata">

**Author:** ![georges](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@georges](https://discourse.openondemand.org/u/georges)\
**Post date:** [April 10, 2020, 5:33pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/5 "2020-04-10T17:33:21Z")

</div>

I fixed the plural (s). Here is my squeue --all:  
squeue --all  
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)  
13 batch sleep spock R 0:30 1 \<hostname\_here\>

is there something else I need to reset?

---

<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:** [April 10, 2020, 5:56pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/6 "2020-04-10T17:56:44Z")

</div>

Sorry, you’re right. There is something wrong with the configuration you have in `/etc/ood/config/clusters.d`, specifically what you have isn’t being read correctly. Be sure to restart your web server (from a help dropdown up at the top right) from time to time when you want things to be re-read.

If after restarting and confirming you still have issues, can you copy what you’ve configured in ansible here with formatting kept in tact? You keep formatting by using tildas and specifying yaml like below.

```yaml  
the\_yaml: you want to write  
```

For fuller reference, here’s what my ansible configuration looks like on a new adapter I’m working on.

```auto
clusters:
  titan:
    v2:
      metadata:
        title: "{{ scheduler }}"
      login:
        host: localhost
      job:
        adapter: ccq
        cloud: 'gcp'
        scheduler: '{{ scheduler }}'
        image: "{{ cc_beta_compute_img }}"
      batch_connect:
        vnc:
          header: "#!/bin/bash"
          script_wrapper: "export PATH=$PATH:/opt/TurboVNC/bin\n%s"
          websockify_cmd: '/usr/bin/websockify'
        basic:
          header: "#!/bin/bash"

```

---

<div class="post-metadata">

**Author:** ![georges](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@georges](https://discourse.openondemand.org/u/georges)\
**Post date:** [April 10, 2020, 6:43pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/7 "2020-04-10T18:43:50Z")

</div>

```auto
clusters:
   v2:
     metadata:
        title: "Apollo Test Cluster"
        url: "<hostname_here>"
        hidden: false
     login:
        host: "localhost"
     job:
        adapter: "slurm"
        cluster: "apollo"
        host: "<hostname_here>"
        bin: "/usr/local/slurm/bin"
        conf: "/usr/local/slurm/etc/slurm.conf"
    batch_connect:
        basic:
           script_wrapper: "module restore\n%s"
        vnc:
           script_wrapper: "module restore\nmodule load ondemand-vnc\n%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:** [April 10, 2020, 6:48pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/8 "2020-04-10T18:48:38Z")

</div>

OK yea, you’re missing the middle key in `clusters.<cluster name>.v2`.

Like this config

```auto
clusters:
  apollo: # this is the key here that specifies the filename
    v2:
      metadata:
        ...

```

that’ll write out `apollo.yml`

```auto
v2:
  metadata:
    ...

```

---

<div class="post-metadata">

**Author:** ![georges](https://avatars.discourse-cdn.com/v4/letter/g/bcef8e/32.png) [@georges](https://discourse.openondemand.org/u/georges)\
**Post date:** [April 10, 2020, 7:00pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/9 "2020-04-10T19:00:08Z")

</div>

We are online with slurm now! That worked!  
Thanks

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:43pm UTC](https://discourse.openondemand.org/t/error-on-the-active-jobs-page-redo/834/10 "2022-05-26T15:43:17Z")

</div>


