Nginx log file permission, conflicting log messages

Hi,
I had newly setup Indico 3.1 up and running till short while ago. After reboot of the VM, nginx is failing to start and I see conflicting messages, as below. Note the line that says configuration file is ok and then a “permisison denied” and followed by configuration file test failed.

[root@indico log]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2022-04-06 11:35:41 IST; 38min ago
Process: 1933 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 1932 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)

Apr 06 11:35:41 indico.ino.tifr.res.in systemd[1]: Starting The nginx HTTP and reverse proxy server…
Apr 06 11:35:41 indico.ino.tifr.res.in nginx[1933]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Apr 06 11:35:41 indico.ino.tifr.res.in nginx[1933]: nginx: [emerg] open() “/opt/indico/log/nginx/access.log” failed (13: Permission denied)
Apr 06 11:35:41 indico.ino.tifr.res.in nginx[1933]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 06 11:35:41 indico.ino.tifr.res.in systemd[1]: nginx.service: control process exited, code=exited status=1
Apr 06 11:35:41 indico.ino.tifr.res.in systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Apr 06 11:35:41 indico.ino.tifr.res.in systemd[1]: Unit nginx.service entered failed state.
Apr 06 11:35:41 indico.ino.tifr.res.in systemd[1]: nginx.service failed.

Actually, nginx runs as nginx and all file permissions are ok. As can be seen below, the log file was surely being written into, and now it says permission denied.

[root@indico log]# ls -ld /opt/indico /opt/indico/log /opt/indico/log/nginx/ /opt/indico/log/nginx/access.log /opt/indico/web /opt/indico/web/uwsgi*
drwxrwx—. 17 indico nginx 4096 Apr 6 10:21 /opt/indico
drwxrwxr-x. 3 indico nginx 105 Apr 4 14:55 /opt/indico/log
drwxrwxr-x. 2 indico nginx 41 Apr 5 15:36 /opt/indico/log/nginx/
-rwxrwxr–. 1 indico nginx 143929 Apr 6 10:33 /opt/indico/log/nginx/access.log
drwxr-x—. 2 indico nginx 81 Apr 6 11:35 /opt/indico/web
srwxrwx—. 1 indico nginx 0 Apr 6 11:35 /opt/indico/web/uwsgi.sock
srwxrwx—. 1 indico nginx 0 Apr 6 11:35 /opt/indico/web/uwsgi-stats.sock

I have installed as per the production version installation, no alterations by me. Please help resolve this issue!
Thanks!

Make sure nginx is runnig as group nginx or

chown -R nginx /opt/indico/log/nginx/