Librenms error please help!

production.ERROR: Could not connect to database! SQLSTATE[HY000] [2002] Connection refused (SQL: INSERT IGNORE INTO ports_statistics (port_id) VALUES ()) (SQL: INSERT IGNORE INTO ports_statistics (port_id) VALUES ())#0 /opt/librenms/includes/polling/ports.inc.php(484): dbInsert()

Probably your database server went away.

I can see its polling fine no issues but i cannot access the web ui it asks me to refer to librenms logs and this is the only error in the log file is there a fix for it?

Hi Sultan,

Could you please post the result of ./validate.php.
What version of database is installed ?