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

    Vnstat2 not working on nanobsd and alix

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    32 Posts 4 Posters 9.8k 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.
    • X
      xbipin
      last edited by

      currently on the 25th may nanobsd snap and noticed the following, if the previous snap had vnstat2 installed and if u tried upgrading the snap, then when the new snap boots, in console, vnstat2 package downlaod starts and finishes and when u load web gui, the package wizard also starts again but just shows the below stuff and thats it and vnstat2 doesnt work, but suppose i remove the  package entry from the config and restore it and then manually add it then it downlaods and works also and when clicking the stats page, initially shows just a few values as the page seems to be cached in the browser so in firefox i need to pres  ctrl+shift+R to make it fetch the latest info so i guess caching also needs to be turned off on the vnstat2 page so everytime page is loaded, it gets fresh values.

      Loading package instructions...	Auxiliary files... done.
      	Deinstall commands... 
      
      1 Reply Last reply Reply Quote 0
      • X
        xbipin
        last edited by

        after reboot, it just doesnt seem to start so i went to console and typed vnstat and this is what i got

        [2.0-BETA2][root@firewall.pfsense]/root(5): vnstat
        Error: Unable to open database directory "/var/db/vnstat".
        Make sure it exists and is at least read enabled for current user.
        Exiting...
        
        1 Reply Last reply Reply Quote 0
        • X
          xbipin
          last edited by

          currently im on the 8th june nanobsd and after upgrade and reboot, the package is synced again in console and when i go to the web gui, shows deinstall command but isnt removed properly, the only improvement i saw was, after all the above, u can now go to package manager and click reinstall for vnstat and this time it actually does reinstall but doesnt work yet, screenshot below

          CropperCapture[1].jpg
          CropperCapture[1].jpg_thumb

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I fixed some package uninstall/reinstall issues last night so you might want to upgrade to the snapshot from June 9th and try again.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • M
              mxx
              last edited by

              Doesn't work for me on normal x86 either:

              Notice: Undefined index: totalrx in /usr/local/www/vnstat2/index.php on line 77 Notice: Undefined index: totalrxk in /usr/local/www/vnstat2/index.php on line 77 Notice: Undefined index: totaltx in /usr/local/www/vnstat2/index.php on line 78 Notice: Undefined index: totaltxk in /usr/local/www/vnstat2/index.php on line 78

              1 Reply Last reply Reply Quote 0
              • X
                xbipin
                last edited by

                @jimp:

                I fixed some package uninstall/reinstall issues last night so you might want to upgrade to the snapshot from July 9th and try again.

                u mean june 9th

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  @xbipin:

                  @jimp:

                  I fixed some package uninstall/reinstall issues last night so you might want to upgrade to the snapshot from July 9th and try again.

                  u mean june 9th

                  Yeah, that's what I meant (I fixed the other post)

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • X
                    xbipin
                    last edited by

                    on the 8th jun snap atleast it did a proper package reinstall after upgrade and reboot and now its back to original, after upgrade and reboot, the console shows reinstall and when u start the web gui, shows deinstall and doesnt attemp a reinstall again and package doesnt work at all like before.

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      But what about June 10th? (9th had some ssl issues)

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • X
                        xbipin
                        last edited by

                        sorry im on the 10th jun as it started building on 10th so has most of the patches for today

                        1 Reply Last reply Reply Quote 0
                        • P
                          Perry
                          last edited by

                          Correct something has changed in the base system so the install fails, though it's unrelated to your alix problem. http://redmine.pfsense.org/issues/641

                          /Perry
                          doc.pfsense.org

                          1 Reply Last reply Reply Quote 0
                          • X
                            xbipin
                            last edited by

                            but the fact is package reinstall on upgrade and reboot has issues no matter if its some other package even on alix

                            1 Reply Last reply Reply Quote 0
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate
                              last edited by

                              @xbipin:

                              but the fact is package reinstall on upgrade and reboot has issues no matter if its some other package even on alix

                              They did before the 9th, but I don't have any problem with reinstalls on the 10th or later snaps. I haven't tried nanobsd yet though.

                              Unless it's something specific to this one package. Are you having problems reinstalling any other package?

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • X
                                xbipin
                                last edited by

                                either vnstat or any other package, from the time it started giving problems it has never worked correctly on alix and later on i never bothered installing any more packages and so lately i didnt try any other package and this reinstall issue is froma very long time so i though over time it will get solved as lot of development work was going on but on the 8th jun snap it worked fine, atleast the reinstall after upgrade but the package never worked ever for me, didnt last more that a few mins and never after a reboot and the reason y i need this package is to keep track of data transfer rather than have all that data of RRD.

                                1 Reply Last reply Reply Quote 0
                                • P
                                  Perry
                                  last edited by

                                  Made some changes to the package that should help with the vnstat database being saved on nanobsd.

                                  /Perry
                                  doc.pfsense.org

                                  1 Reply Last reply Reply Quote 0
                                  • X
                                    xbipin
                                    last edited by

                                    yes i saw the change but the issue is still with the package manager, after upgrade, it doesn't sync the package and even clicking reinstall just shows deinstall and doesn't do anything yet so could u give me some commands to get it to reinstall properly from console etc till the package installer is fixed?

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      Perry
                                      last edited by

                                      To install
                                      /etc/rc.conf_mount_rw
                                      pkg_add -r vnstat
                                      rehash
                                      /etc/rc.conf_mount_ro

                                      If there already is a vnstat installed use pkg_info to get the full name and pkg_delete -r to delete it

                                      /Perry
                                      doc.pfsense.org

                                      1 Reply Last reply Reply Quote 0
                                      • X
                                        xbipin
                                        last edited by

                                        vnstat wasnt installed so i went to console and typed out the commands and it finished, so then i returned to the web GUI and the package didnt appear anywhere so i went back to package manager and clicked install and then again it downloaded and installed and worked for like a min or so then again loggin into the web GUI gave me the below stuff

                                        Removing pacakge instructions…done.
                                        Auxiliary files... done.
                                        Package XML... done.
                                        Configuration... done.
                                        Downloading package configuration file... done.
                                        Saving updated package information... done.
                                        Downloading vnstat2 and its dependencies... done.
                                        Checking for successful package installation... of vnstat-1.10_2 failed!

                                        Installation aborted.

                                        then it shows under packages as installed but the menu doesnt appear nor manually typing out the link works and if i go abck to package manager and try to click reinstall, just shows the below stuff and thats it

                                        Loading package instructions... Deinstall commands...

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          Perry
                                          last edited by

                                          I think you need to reflash your card with the latest image.
                                          I can install vnstat it on my test 2g nanobsd image installed in virtualbox.

                                          /Perry
                                          doc.pfsense.org

                                          1 Reply Last reply Reply Quote 0
                                          • X
                                            xbipin
                                            last edited by

                                            first time install is fine but it all dies out once u upgrade, try this out, once installed and working, upgrade with a newer snapshot and ull see it doesnt sync the package again but just keeps showing under installed packages and nor will it let u remove it or reinstall.

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