Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2026 15:49:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 292458] [PATCH] Ensure the librenms-service runs out of the librenms base directory
Message-ID:  <bug-292458-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292458

            Bug ID: 292458
           Summary: [PATCH] Ensure the librenms-service runs out of the
                    librenms base directory
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: marcus@FreeBSD.org

Created attachment 267142
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267142&action=edit
chdir to the librenms installation directory

Hey, Dan.  First, thanks for all your work on this port.  It is greatly
appreciated.

Have a look at the discussion in
https://github.com/librenms/librenms/issues/18794.  Seems we need to make sure
the librenms-service runs from the correct directory.  By default, the CWD is /
and this results in:

[2026-01-14T14:09:08][CRITICAL] Exception: Error Failed opening required
'includes/discovery/sensors/cisco-entity-sensor.inc.php'
(include_path='.:/usr/local/share/pear') @
/usr/local/www/librenms/includes/discovery/sensors.inc.php:14

Since 26.1.1.  Attached is a patch that sets the CWD correctly.  That said,
there may be a more elegant way to do this.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-292458-7788>