Web UI actions do nothing

Hi everyone!

I’ve just installed LibreNMS following the instructions at Installation Debian 10 Nginx - LibreNMS Docs.

It seemed to work fine and I’ve been able to add a device. But in the Web UI, some links/buttons do nothing. For example, on /ports, “View alerts” and “Edit ports” are not working. The link with the device name does nothing either. Default Dashboard in the navbar has the same issue.

nginx logs are showing that kind of errors on various pages - but not all:

2020/04/30 21:40:45 [error] 9997#9997: *316 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 2001:678:d2c:***, server: , request: "POST /health/ajax_table.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "[2001:678:d2c:***]", referrer: "http://[2001:678:d2c:**]/health/metric=mempool"

validate.php seems to be happy:

====================================
Component | Version
--------- | -------
LibreNMS  | 1.63-4-g33e0d1303
DB Schema | 2020_04_19_010532_eventlog_sensor_reference_cleanup (164)
PHP       | 7.3.14-1~deb10u1
MySQL     | 10.3.22-MariaDB-0+deb10u1
RRDTool   | 1.7.1
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.10.5
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct

I noticed running daily.sh would make validate.php complain about permissions:

[FAIL]  Some folders have incorrect file permissions, this may cause issues.
        [FIX]: 
        sudo chown -R librenms:librenms /opt/librenms
        sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
        sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
        Files:
         /opt/librenms/bootstrap/cache/packages.php

Running chmod fixes it, I doubt this has to do with the main issue.

No errors in librenms.log.

Any help would be greatly appreciated :wink:

Thanks.