Errors after running ./daily and ./validate
:/opt/librenms$ ./validate.php
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Component | Version |
---|---|
LibreNMS | 1.49-15-g57be00b |
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132) |
PHP | 7.1.18-1+ubuntu16.04.1+deb.sury.org+1 |
MySQL | 5.7.25-0ubuntu0.16.04.2 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: incorrect column (sensors/sensor_id)
[FAIL] Database: incorrect column (sensors_to_state_indexes/sensor_id)
[FAIL] Database: incorrect column (sensors_to_state_indexes/state_index_id)
[FAIL] Database: missing index (sensors_to_state_indexes/state_index_id)
[FAIL] Database: extra index (sensors_to_state_indexes/sensors_to_state_indexes_ibfk_1)
[FAIL] Database: incorrect column (state_indexes/state_index_id)
[FAIL] We have detected that your database schema may be wrong, please report the following to us on Discord (https://t.libren.ms/discord) or the community site (https://t.libren.ms/5gscd):
[FIX]:
Run the following SQL statements to fix.
SQL Statements:
ALTER TABLE sensors
CHANGE sensor_id
sensor_id
int(10) unsigned NOT NULL auto_increment;
ALTER TABLE sensors_to_state_indexes
CHANGE sensor_id
sensor_id
int(10) unsigned NOT NULL ;
ALTER TABLE sensors_to_state_indexes
CHANGE state_index_id
state_index_id
int(10) unsigned NOT NULL ;
ALTER TABLE sensors_to_state_indexes
DROP INDEX sensors_to_state_indexes_ibfk_1
;
ALTER TABLE sensors_to_state_indexes
ADD INDEX state_index_id
(state_index_id
);
ALTER TABLE state_indexes
CHANGE state_index_id
state_index_id
int(10) unsigned NOT NULL auto_increment;
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/20160303/php_mbstring.dll’ - /usr/lib/php/20160303/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[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/storage/framework/views/02f85731f51d6b7c1b55345259b2b95d7916c612.php
Also the site is not loading 0 i get this error is currently unable to handle this request.
HTTP ERROR 500