When executing LibreNMS (sudo -u librenms php /srv/deployment/librenms/librenms/poller.php -h 2 -d) the following error appears:
Warning: fopen(/var/log/librenms.log): failed to open stream: Permission denied in /srv/deployment/librenms/librenms-cache/revs/de2bd0369fc46effba4a4ca9ebafc95b40b1af22/includes/functions.php on line 150.
This happens because the /var/log folder belongs to the root user therefore the librenms user can't create the folder due to insufficient permissions.