Project

General

Profile

Actions

Bug #11515

open

node_exporter 0.18.1_1 - Unable to interact or start the service from web ui

Added by dff dff 9 months ago. Updated 5 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
node_exporter
Target version:
-
Start date:
02/23/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

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.

Actions #1

Updated by Jim Pingle 9 months ago

  • Category changed from ACME to node_exporter
Actions #3

Updated by Jim Pingle 9 months ago

  • Status changed from New to Pull Request Review
Actions #4

Updated by Renato Botelho 9 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Viktor Gurov

PR has been merged. Thanks!

Actions #5

Updated by Joel Holveck 9 months 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.

Actions #6

Updated by Viktor Gurov 7 months 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

Actions #7

Updated by Jim Pingle 7 months ago

  • Status changed from Feedback to Pull Request Review
Actions #8

Updated by Renato Botelho 5 months ago

  • Status changed from Pull Request Review to Feedback

PR has been merged. Thanks!

Actions

Also available in: Atom PDF