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 about 3 years ago. Updated 3 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
Viktor Gurov
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 about 3 years ago

  • Category changed from ACME to node_exporter
Actions #3

Updated by Jim Pingle about 3 years ago

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

Updated by Renato Botelho about 3 years 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 about 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.

Actions #6

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

Actions #7

Updated by Jim Pingle almost 3 years ago

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

Updated by Renato Botelho almost 3 years ago

  • Status changed from Pull Request Review to Feedback

PR has been merged. Thanks!

Actions #9

Updated by Jordan G 6 months 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

Actions #10

Updated by aleksei prokofiev 3 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.

Actions

Also available in: Atom PDF