OOD 2.0 in Rocky 8 selinux issue

I’ve been asked to install OOD on a Rocky 8 system. I got the install to work, I now have an selinux issue after logging into the web interface:

Error – Permission denied @ dir_s_mkdir - /var/run/ondemand-nginx
Run ‘nginx_stage --help’ to see a full list of available command line options.

I installed the ondemand selinux rpm as per the instructions. If it’s just a matter of manually doing the selinux module steps, I can figure out how to do that. I was wondering if anyone else has seen this.

In CentOS 7, I had to add

[ric@ood tmpfiles.d]$ cat /etc/tmpfiles.d/ood.conf

SELinux dir creates for Open OnDemand

Type Path Mode UID GID Age Argument

d /run/ondemand-nginx 0755 root root - -

Z /run/ondemand-nginx - - - - -

The ood packages set that up, but it vanishes across a reboot and needs to be remade (d line) and chcon’ed (Z line).

If nginx will start after a

restorecon -R -v /run/ondemand-nginx

then the above ood.conf file may be a good fit. Note /var/run is a symlink to /run, and I think “/run/” is now preferred to “/var/run/”

Cheers,

Ric

image001.png

image002.png

This was fixed and not yet released: Add tmpfiles.d file for ondemand-nginx (Release 2.0) by treydock · Pull Request #1501 · OSC/ondemand · GitHub and Release Version 2.0.19 · OSC/ondemand · GitHub. @jeff.ohrstrom can provide an idea of when 2.0.19 will be publicly accessible in repos.

Thanks @tdockendorf for the fast reply. I will pass that info onto the group I am working with.