Bug #11515
opennode_exporter 0.18.1_1 - Unable to interact or start the service from web ui
0%
Description
This bug can be reproduced on my Netgate XG-7100 running 21.02-RELEASE
After installing the package for the first time i was able to interact with the service from the web ui, however i could not start node exporter due to this error
Feb 19 11:19:35 firewall php-fpm[58710]: /pkg_edit.php: ERROR: Could not open {/usr/local/etc/rc.conf.d/node_exporter} for writing
Next deinstall
Loading package instructions...
Custom commands...
Executing custom_php_install_command()...=====
Message from node_exporter-1.0.1:
--
If upgrading from a version of node_exporter <0.15.0 you'll need to update any
custom command line flags that you may have set as it now requires a
double-dash (--flag) instead of a single dash (-flag).
The collector flags in 0.15.0 have now been replaced with individual boolean
flags and the -collector.procfs` and -collector.sysfs` flags have been renamed
to --path.procfs and --path.sysfs respectively.
>>> Cleaning up cache... done.
Success
Meanwhile in system.log (during the install)
Feb 19 12:01:32 firewall php[70253]: /etc/rc.packages: Beginning package installation for node_exporter .
Feb 19 12:01:32 firewall check_reload_status[387]: Syncing firewall
Feb 19 12:01:32 firewall check_reload_status[387]: Syncing firewall
Feb 19 12:01:32 firewall php[70253]: /etc/rc.packages: ERROR: Could not open {/usr/local/etc/rc.conf.d/node_exporter} for writing
The package will now not show under the services menu in the webui, however it can be started from the command line.
More users with the same problem
https://forum.netgate.com/topic/161071/error-node_exporter-0-18-1_1?_=1614104363709
https://www.reddit.com/r/PFSENSE/comments/ln0yzy/node_exporter_on_pfsense_25/
There is no category for this package, tagged ACME as placeholder.
Updated by Jim Pingle almost 4 years ago
- Category changed from ACME to node_exporter
Updated by Viktor Gurov almost 4 years ago
Updated by Jim Pingle almost 4 years ago
- Status changed from New to Pull Request Review
Updated by Renato Botelho over 3 years ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Viktor Gurov
PR has been merged. Thanks!
Updated by Joel Holveck over 3 years ago
I note at least two issues remaining.
First, the config file is in /usr/local/etc/rc.conf.d/
, but that directory doesn't exist by default on pfSense.
Second, I note that the textfile cronjob uses Python 2.7, but that's not a dependency of the package. The (pfSense-specific) interface-collector.py
is pretty short and looks like it should work fine with Python 3.
Updated by Viktor Gurov over 3 years ago
Joel Holveck wrote:
I note at least two issues remaining.
First, the config file is in
/usr/local/etc/rc.conf.d/
, but that directory doesn't exist by default on pfSense.Second, I note that the textfile cronjob uses Python 2.7, but that's not a dependency of the package. The (pfSense-specific)
interface-collector.py
is pretty short and looks like it should work fine with Python 3.
both fixes:
https://gitlab.netgate.com/pfSense/FreeBSD-ports/-/merge_requests/90
Updated by Jim Pingle over 3 years ago
- Status changed from Feedback to Pull Request Review
Updated by Renato Botelho over 3 years ago
- Status changed from Pull Request Review to Feedback
PR has been merged. Thanks!
Updated by Jordan G about 1 year ago
service appears to start when enabled and shows positive indication in the service status dashboard on 23.09.r.20231027.0151 and node_exporter 0.18.1_3
Updated by aleksei prokofiev 11 months ago
Tested on node_exporter 0.18.1_3
24.03-DEVELOPMENT (amd64)
built on Fri Jan 12 6:00:00 UTC 2024
FreeBSD 15.0-CURRENT
Looks good, service is started without any issue.