Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Error node_exporter 0.18.1_1

    Scheduled Pinned Locked Moved pfSense Packages
    13 Posts 9 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dff
      last edited by dff

      Hi,

      Big thanks for adding this package!

      Netgate XG-7100
      21.02-RELEASE (amd64)
      node_exporter 0.18.1_1

      No 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! : )

      1 Reply Last reply Reply Quote 1
      • vukuzeV
        vukuze
        last edited by vukuze

        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
        
        ? 1 Reply Last reply Reply Quote 0
        • T
          thedude42
          last edited by

          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.

          vukuzeV 1 Reply Last reply Reply Quote 0
          • vukuzeV
            vukuze @thedude42
            last edited by

            @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.

            1 Reply Last reply Reply Quote 1
            • D
              dff
              last edited by dff

              @vukuze
              @thedude42

              Hopefully this gets sorted : )

              Issue 11515

              1 Reply Last reply Reply Quote 1
              • cukalC
                cukal
                last edited by

                I had to install, execute the 2 cmd's, deinstall & reinstall and now it's running and visible in the menu

                D C 2 Replies Last reply Reply Quote 0
                • D
                  dison4linux @cukal
                  last edited by

                  I had the exact same mileage but I was hoping an update would come available rather than trying the hacks above, plus the bundled version of node_exporter is several revs behind upstream.
                  Is there a way to file an official bug with the package maintaner?

                  viktor_gV 1 Reply Last reply Reply Quote 0
                  • viktor_gV
                    viktor_g Netgate @dison4linux
                    last edited by

                    @dison4linux said in Error node_exporter 0.18.1_1:

                    I had the exact same mileage but I was hoping an update would come available rather than trying the hacks above, plus the bundled version of node_exporter is several revs behind upstream.
                    Is there a way to file an official bug with the package maintaner?

                    The fixes will be in the next update:
                    https://redmine.pfsense.org/issues/11515#note-6

                    1 Reply Last reply Reply Quote 0
                    • N
                      nihunter
                      last edited by

                      In 2.5.x node_exporter once showed in service drop down. Now it doesn't and now 2.6.0 Updating OS didn't help. Same issue is showing up for Wireguard. I don't believe this is a NExport specific issue.

                      I installed Wireguard today. The VPN dropdown didn't update till a system reboot. Then shortly after maybe a reboot or such. It doesn't show up in the VPN drop down.

                      Has anyone done a scratch install and see if this issue is from eventual use or if this straight out of the box?

                      1 Reply Last reply Reply Quote 0
                      • C
                        cube8021 @cukal
                        last edited by

                        @cukal I ended up just uninstalling and reinstalling to resolve the issue.

                        N 2 Replies Last reply Reply Quote 0
                        • N
                          nihunter @cube8021
                          last edited by

                          @cube8021 No dice on my side.

                          1 Reply Last reply Reply Quote 0
                          • N
                            nihunter @cube8021
                            last edited by

                            @cube8021 If go to /pkg_edit.php?xml=node_exporter.xml

                            because I can find the button. I get this when I save.

                            Warning: file_put_contents(/usr/local/etc/rc.conf.d/node_exporter): failed to open stream: No such file or directory in /usr/local/pkg/node_exporter.inc on line 50

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @vukuze
                              last edited by

                              @vukuze said in Error node_exporter 0.18.1_1:

                              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
                              

                              My node_exporter 0.18.1_2 on pfsense 2.5.1 gave me the same could not open error. I used these commands verbatim and after reboot the service started up and the metrics were exposed as expected. Thank you

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.