Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No clusters configured" error #3080

Closed
btsherid opened this issue Sep 27, 2023 · 8 comments
Closed

"No clusters configured" error #3080

btsherid opened this issue Sep 27, 2023 · 8 comments
Milestone

Comments

@btsherid
Copy link

btsherid commented Sep 27, 2023

Hi,

I am trying to setup OnDemand 3.0.1 on Rocky 9 and I'm getting errors saying I haven't set up a cluster, even though I have configured one.

If I click on the Shell Access app, I see the message "No clusters defined". The Job Composer says "There are no configured hosts that allow you to submit jobs. Please contact your system administrator"

However, if I click on Active Jobs, it pulls up my cluster and shows me all the jobs.

Here is my /etc/ood/config/clusters.d/lbg_cluster.yml file:

v2:
  metadata:
    title: "LBG Cluster"
    hidden: "true"
  login:
    host: "login.bioinf.unc.edu"
  job:
    adapter: "slurm"
    bin: "/usr/bin"
    conf: "/etc/slurm/slurm.conf"
  batch_connect:
    basic:
      script_wrapper: |
        module purge
        %s
    vnc:
      script_wrapper: |
        module purge
        export PATH="/opt/TurboVNC/bin/:$PATH"
        export WEBSOCKIFY_CMD="/usr/local/bin/websockify"
        %s
@osc-bot osc-bot added this to the Backlog milestone Sep 27, 2023
@johrstrom
Copy link
Contributor

What are the permissions on /etc/ood/config/clusters.d/lbg_cluster.yml? I.e., can an unprivileged user read it?

@btsherid
Copy link
Author

btsherid commented Sep 27, 2023

Yes, these are the permissions:
-rw-r--r--. 1 root root 482 Sep 27 15:23 lbg_cluster.yml

@johrstrom
Copy link
Contributor

OK - Maybe you just need to 'restart your webserver' (the button at the top right in the help menu) to pick the file up? This could have happened if you wrote the file after the webserver started. I.e., it only picks these configurations up on startup.

@btsherid
Copy link
Author

I've done the 'restart your webserver' multiple times with no effect. It also does not change if I run systemctl restart httpd and then systemctl restart ondemand-dex.

Thanks,
Brendan

@johrstrom
Copy link
Contributor

This is the button to restart your Per User Nginx. When this is restarted - it'll pick up the configs.

image

@btsherid
Copy link
Author

Yep, that's the one I was using. After that, I'm still seeing this:

Job Composer:
image

Shell Access:
image

But Active Jobs works and sees the cluster correctly.
image

@johrstrom
Copy link
Contributor

I see - you've set hidden as true. Remove this and restart your web server and I think it'll work.

    hidden: "true"

@btsherid
Copy link
Author

Ah, that was it! Makes sense, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants