From nobody Sun Nov 28 01:55:43 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2448518ACEE3 for ; Sun, 28 Nov 2021 01:55:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J1s5C6bmCz3Bn7 for ; Sun, 28 Nov 2021 01:55:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A1C3A2680E for ; Sun, 28 Nov 2021 01:55:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1AS1thXu022667 for ; Sun, 28 Nov 2021 01:55:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AS1thc4022666 for ports-bugs@FreeBSD.org; Sun, 28 Nov 2021 01:55:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260085] net-mgmt/librenms Date: Sun, 28 Nov 2021 01:55:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: darren.henderson@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dvl@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638064544; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e5hEBEXaaDmwuNj31Xm6QRmP9MPvcGNI2hTTvwnk9Sw=; b=B3INHzuJHkTcl/HjSfuONxZ7YJ7zKcsT+OGtSVXS2IOCUcW/QqUVivOIvXAaMdDlRN+SKw hSsUq62lTbigK87xYxFuXSpnEipiyTOXARvOwygDbY+e9kGffzVq8FTmC1KOed2tltjyBs zAnlV9Qwqo4crvs3v3wGmn+vdRyeM0xriLvB4cFSVb/ElHRVUXhbuQ6eka8UktT9YWh25K G7ME7baTs/8PgIWMdkbfmkQ/MrUKclm8siAMUCqTBZDObRGyS/68/T5vSKELFWeiglUq29 ul2ES/G4/LF/J+A5uccxMWXemPyhtA+ef24/8BW07lqTWoYM7eTXumR/WC/moQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638064544; a=rsa-sha256; cv=none; b=iafihvZTuNoEtMWzZ3qDk/HMxqDJJuF/mgsp1wJm2EL0G6I4gaEaFedl4C70VJBgQfEbmE bXIhhuZb1K/4NRojXcIZAqRoCa8dxhXDTM5YiKAgD62Si7PerQvytwDEQ3aOsPJFjPqPpy hDfAqIAHUvrTE4u8mCnbiOKQIBZ4VmYCxeqoMeLmu31tEURnRvgEN+WjWahyj7aGEmHWk/ hBKEiKew6TlJasLv9PqFRrGiXk5REj1D6zd3Q7rtoaubeCuBVawZ/bjnP6RtlqEJRJ005x aLpLFj7gyiImwAONkyzxU4fD3OA/DpnMa6dxmolSJn5MpgyUeOjcHo+13JrMmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=