In this order:
- Check the “librenms” user is in your www-data (or nginx/apache) group.
- chmod g+w /opt/librenms/cache
- if still no success you can fix it with this Manage group new device group fail - #13 by Chas
Please let us know which one worked as trying to isolate the issue.