A couple of days ago this error stated coming in once an hour. The duplicate entry is the hostname of my librenms server. I dont know how a duplicate could have been created. I am no db admin and havent been in it.
pymysql.err.IntegrityError: (1062, “Duplicate entry ‘vm-umfs-librenms’ for key ‘pollers_poller_name_unique’”)
[OK] Composer Version: 2.3.10
[OK] Dependencies up-to-date.
[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]
[OK] Database schema correct
[OK] MySQl and PHP time match
[WARN] PHP version 8.1 is the minimum supported version as of September, 2022. We recommend you update PHP to a supported version (8.1 suggested) to continue to receive updates. If you do not update PHP, LibreNMS will continue to function but stop receiving bug fixes and updates.
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[OK] rrd_dir is writable
[OK] rrdtool version ok
When I run select * from pollers; I just get a flashing curser
MariaDB [librenms]> explain pollers;
±------------±-----------------±-----±----±--------±---------------+
| Field | Type | Null | Key | Default | Extra |
±------------±-----------------±-----±----±--------±---------------+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
| poller_name | varchar(255) | NO | UNI | NULL | |
| last_polled | datetime | NO | | NULL | |
| devices | int(10) unsigned | NO | | NULL | |
| time_taken | double | NO | | NULL | |
±------------±-----------------±-----±----±--------±---------------+
5 rows in set (0.004 sec)
Have a look in misc/config_definitions.json for examples of settings you can set here. DO NOT EDIT misc/config_definitions.json!
// This is the user LibreNMS will run as
//Please ensure this user is created and has the correct permissions to your install
#$config[‘user’] = ‘librenms’;
This should only be set if you want to force a particular hostname/port
It will prevent the web interface being usable form any other hostname
#$config[‘base_url’] = “/”;
Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
and that your web server has permission to talk to rrdcached.
#$config[‘auth_mechanism’] = “mysql”; # default, other options: ldap, http-auth
#$config[‘http_auth_guest’] = “guest”; # remember to configure this user if you use http-auth
List of RFC1918 networks to allow scanning-based discovery
I also just received this error. I hope this may give us a clue.
We just attempted to update your install but failed. The information below
should help you fix this.
error: cannot lock ref ‘refs/remotes/origin/master’: is at
c25629343fcd1879e76cdc4899c9b8e4f2769118 but expected
0f37f68bfdfa5a30fbe2509c7eafc945a4b6df37