Upgrading WebMO 17 to WebMO 22

Post Reply
leb140
Posts: 1
Joined: Tue Oct 18, 2022 1:46 pm
Full Name: Leonardo Bernasconi
Organization: University of Pittsburgh

Upgrading WebMO 17 to WebMO 22

Post by leb140 »

I am upgrading WebMO Enterprise from 17 to 22 on RHEL7. In our configuration, jobs created by WebMO are submitted to compute nodes using Slurm. It looks like the jobs are submitted correctly, but they stop with the error (given in pbs_stderr within the job's directory):

slurmstepd: error: couldn't chdir to `/var/www/cgi-bin': No such file or directory: going to /tmp instead
/var/spool/slurmd/job6958253/slurm_script: line 49: cd: /var/www/cgi-bin: No such file or directory

This makes sense, as /var/www/cgi-bin (which is the value of cgiBase in our globals.inc) is not accessible from compute nodes. I think this may be resolved by cd'ing to the cgi-bin webmo home directory, which is accessible from the compute nodes. Is there a way of doing this without having to change the value of cgiBase (which, in our case, is not the default recommended in the installation notes and has been inherited from the previous WebMO 17 installation)? Or do you recommend changing cgiBase and reinstall WebMO 22?

schmidt
Posts: 55
Joined: Sat May 30, 2020 3:00 pm
Full Name: JR Schmidt
Organization: WebMO, LLC

Re: Upgrading WebMO 17 to WebMO 22

Post by schmidt »

For several reasons (including the one you describe below) when running with a batch queue system (like SLURM) it is essential to install WebMO (as recommended) under /home/webmo/public_html. This does a few key things:

1) It allows the WebMO scripts and jobs to be accessible across all compute nodes, which is required.
2) Vi 'suexec', it allows the WebMO scripts to execute under the UID of 'webmo' (a normal user), which is typically required to interact with SLURM.

See a full list of pre-requisites for WebMO Enterprise w/ batch queues here:

https://www.webmo.net/link/help/BatchQueues.html

Post Reply