Date: Sun, 28 Nov 2021 01:55:43 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260085] net-mgmt/librenms Message-ID: <bug-260085-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260085 Bug ID: 260085 Summary: net-mgmt/librenms Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: dvl@FreeBSD.org Reporter: darren.henderson@gmail.com Assignee: dvl@FreeBSD.org Flags: maintainer-feedback?(dvl@FreeBSD.org) service librenms start fails. /var/log/librenms/librenms-service.log showing env: php: No such file or directory MainThread(ERROR):ERROR: Could not load or parse configuration! /usr/bin/env php /usr/local/www/librenms/config_to_json.php 2>&1:=20 'NoneType' object has no attribute 'get' The crux of the problem is that daemon starts with a very restricted path (/sbin:/bin:/usr/sbin:/usr/bin) - this causes env to fail to find php when /usr/local/www/librenms/snmp-scan.py attempts to grab the .env file. I'm not sure what the "right" fix is for this, the two quickest work arounds are to add a soft link from /usr/bin/php to /usr/local/bin/php or adjusting= the path in /usr/local/etc/rc.d/librenms to include /usr/local/bin. Neither of which I'm crazy about. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260085-7788>