Error -- Permission denied @ dir_s_mkdir - /var/run/ondemand-nginx

Hello,

I am having issues with a new installation of Open OnDemand. I have installed the latest 1.7 rpm (selinux package) and mounted a shared /home directory.

I am now getting this error in my browser after I log in. This takes about a minute to show up:

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 am not seeing anything notable in the Apache logs or in the system logs either. I do see:

May  5 11:02:09 ood sudo: pam_systemd(sudo:session): Failed to create session: Connection timed out
May  5 11:02:09 ood sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
May  5 11:02:09 ood sudo: pam_unix(sudo:session): session closed for user root

However that is it.

I have a feeling I may have missed some configuration with the selinux booleans? However looking through the configuration topics it looks like my setup matches up with the installation defaults.

any help is much appreciated, thank you

To confirm, do the system logs you’ve checked include /var/log/audit/audit.log? Is the shared /home space NFS mounted? If so, use_nfs_home_dirs may be a relevant SELinux boolean.

Just to mention that I had the same error and selinux was indeed the culprit

Thanks folks. SElinux ended up being the issue.