Error node_exporter 0.18.1_1
-
Hi,
Big thanks for adding this package!
Netgate XG-7100
21.02-RELEASE (amd64)
node_exporter 0.18.1_1No logs from the first installation, however when trying to use the webui to enable node_exporter the page turns blank.
In system.log
Feb 19 11:19:35 firewall check_reload_status[387]: Syncing firewall 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
I deinstall and try to reinstall from the webui
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
In system.log
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 does not show under the services menu in the webui (it did during the first install)
Advise is very welcome! : ) -
I am not some kind of pfSense guru and my advice may be wrong, but here is my solution of the same problem:
mkdir -p /usr/local/etc/rc.conf.d cp /usr/local/etc/rc.d/node_exporter /usr/local/share/pfSense-pkg-node_exporter/node_exporter.sh
-
There seems to be some pretty significant issues with this package. For one thing, when I ran in to this problem the first thing I tried was re-installing the package. Now the Node_exporter menu is gone from the list of Services drop-down menu. Removing and then reinstalling the package doesn't bring it back.
Manually addressing the error messages that seem to be related to missing files doesn't really help, and indicate there may be some other quality issues with this package on pfsense.
-
@thedude42 , Maybe. My solution is of course temporary and based on system logs.
BTW after these two commands, I see node_exporter in the menu again and everything works for me. -