This morning when I looked at my LibreNMS install I was greeted with a message:
Error: Missing dependencies! Run the following command to fix:
./scripts/composer_wrapper.php install --no-dev
After successfully installing mbstring using: yum install php71w-mbstring
Then running ./scripts/composer_wrapper.php install --no-dev as the librenms user.
I’m now stuck with the following error when trying to log into the webui:
Whoops, looks like something went wrong.
./validate.php
Component
Version
LibreNMS
1.39-32-ge4bc556
DB Schema
249
PHP
7.1.16
MySQL
5.1.73
RRDTool
1.3.8
SNMP
NET-SNMP 5.5
====================================
[OK] Composer Version: 1.6.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] fping6 does not have IPv6 support?!?!
At the point I’m not sure what to do and I haven’t had much help on here.
This sucks because I have 3 installs that are doing this and they where working fine before this latest update. I really need to be able to monitor my network and I rather not move to another solution.
did you try rebooting the server ? I saw that fixed it for someone else
Running ./daily.sh again any errors?
post output of latest errors in /opt/librenms/logs/librenms.log
Don’t know if it’ll make a difference but I notice others are installing a previous version of mbstring to you yum install php70w-mbstring rather than yum install php71w-mbstring. I would remove your version and try ./scripts/composer_wrapper.php install --no-dev again.
chown -R librenms:librenms /opt/librenms
(for good luck…!)
also don’t see any harm in trying php artisan key:generate again . I had to run it twice for some reason.
Yes, I’ve rebooted and that didn’t seem to help. I have also ran the daily.sh without errors.
But, I have completely forgot to look at the librenms.log file and there is something interesting in there:
[2018-05-11 10:23:37] production.ERROR: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1115 Unknown character set: ‘utf8mb4’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php:56
It seem that it doesn’t like the character set for MySQL. Has anyone else had this issue?