Been running LibreNMS for about a year now:
- Ubuntu 16.04 LTS with latest updates
- I only do the monthly updates, but after logging in, it’s showing that it did update and is running “1.36 - Sat Jan 27 2018 07:57:40 GMT-0500”.
But tried logging into my LibreNMS this morning, only to see a relentless popup saying
Error: Daily update failed
The daily update script (daily.sh) has failed on traffic.Please check output by hand. If you need assistance, visit the LibreNMS Website to find out how.
So clicked the link, which just took me to the generic LibreNMS support page. So searched this community site and did some Googling, and started by doing what I found, which was verifying that the permissions were correct (only files not owned by librenms:librenms were the ./logs/access_log and ./logs/error_log which are owned by user www-data so NGINX can properly update. But even there the group owner was librenms.
But when I run ./validate as user librenms, this is the output I’m getting now:
$ sudo -u librenms ./validate.php PHP Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /opt/librenms/validate.php on line 164 ==================================== Component | Version --------- | ------- LibreNMS | 1.36 DB Schema | ? PHP | 7.0.22-0ubuntu0.16.04.1 MySQL | ? RRDTool | 1.5.5 SNMP | NET-SNMP 5.7.3 ==================================== [FAIL] No composer available, please install composer [FIX] https://getcomposer.org/
I’m kind of confused. This has been working pretty reliably until now. Any ideas what could be causing this or how to resolve? Nothing really jumps out at me.
And is composer a new requirement or has it always been there? I only ask as I have NOT removed any packages since setting this system up. I only do routine commands like
$ sudo apt-get update && sudo apt-get dist-upgrade
and once in awhile removing no longer used/outdated packages using
$ sudo apt auto-remove
But that’s it. And my installation notes don’t indicate installing composer (though I simply note I was following the steps on this page: https://docs.librenms.org/#Installation/Installation-Ubuntu-1604-Nginx/ , hence the question whether composer was always there), and I know for sure I’ve never gone out of my way to remove it.
Anyway, any insight into this would be greatly appreciated. Thanks in advance for any/all help.