419 | Page Expired

Keep getting “Error 419 | Page Expired” after logging in to web GUI. Tried ./daily.sh and ./validate.sh and show no issues.

librenms@LibreNMS:~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 24.8.0-90-gd2fb66d3d (2024-09-25T10:14:13-05:00)
DB Schema | 2024_08_27_182000_ports_statistics_table_rev_length (299)
PHP       | 8.3.11
Python    | 3.9.2
Database  | MariaDB 10.5.26-MariaDB-0+deb11u2
RRDTool   | 1.7.2
SNMP      | 5.9
===========================================

[OK]    Composer Version: 2.7.9
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok

Laravel framework can give a 419 if the CSRF cookie can not be set/read.
Please check if your browser blocks that and if the FQDN you use to reach LibreNMS does match the host-configuration in Libre.

Thank you, Chris, for your response! I really appreciate it.

I’m still learning the more advanced areas of Linux. I checked the FQDN in /opt/librenms/config.php and $config[‘base_url’ is commented out.

I also checked the FQDN in /etc/nginx/sites-enabled/librenms.vhost and the server_name is set to librenms.domain.com; domain, of course, being my domain.

Would you mind letting me know how to check to see if the CSRF cookie is set and can be read? I greatly appreciate it!

Please check if the file “.env” in the librenms root-folder contains a line:

SESSION_SECURE_COOKIE=true

Then try to clear the session cache by runing command:

php artisan cache:clear

I checked SESSION_SECURE_COOKIE and it is set to true. I also ran php artisan cache:clear and rebooted, however still have the issue. :frowning:

Any other ideas?