the librenms user was not in the nginx user group. I added it but it didnt fix the issue.
I ran * chmod g+w /opt/librenms/cache and that didnt work
I tried the commands in this link
but the commands dont work. I tried supplementing nginx for www-data and got “chown: cannot access ‘devices_relationships.cache’: No such file or directory”