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

    Bandwidthd graphs no longer displaying after updating to the latest version

    Scheduled Pinned Locked Moved pfSense Packages
    21 Posts 6 Posters 8.1k 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.
    • C
      craibo
      last edited by

      My hdd is only at 11% capacity and there are no special permissions or anything like that required.
      All the HTML files (index and subnet) are being generated and the usage is definitely being recorded as the table at the top is displaying the usage per IP correctly.
      It only appears to be the graphs that have broken.
      Are there an specific libraries required to generate the .png graph files?

      1 Reply Last reply Reply Quote 0
      • J
        jasch
        last edited by

        Having the same Problem here with 1.3 everything was fine 1.4 just not working. try´d reinstall. manually delete…
        MFG Alex

        1 Reply Last reply Reply Quote 0
        • C
          craibo
          last edited by

          Hi Phil

          I have noticed that on my system I have two png libraries installed.

          
          png-1.4.8           Library for manipulating PNG images
          png-1.5.14          Library for manipulating PNG images
          
          

          The 1.4.8 library is installed by Bandwidthd and the 1.5.14 is installed by Lightsquid. Could it be possible that the method required by bandwidthd to produce the .png files is no longer available in the 1.5 version and is therefore failing to produce the files?

          Would you be able to test this by installing Lightsquid on the test instance you setup? And if this is the case how would one go about resolving the issue?

          Sorry for all the questions.

          Thanks

          1 Reply Last reply Reply Quote 0
          • J
            jasch
            last edited by

            I also have lightsquid installed, but i already testet it with all packages uninstalled except for bandwithd.
            This was making no difference on my system.

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by

              I reproduced the symptoms. Installed 2.0.2 on a VM, then bandwidthd, enable bandwidthd defaults plus output_cdf and recover_cdf, reboot, all is good.
              Installed squid, enable transparent proxy and all other defaults, reboot, all is good.
              Installed lightsquid, did not much with it (pressed the "Refresh Now" button), rebooted.
              The packages all start fine. bandwidthd produces numeric output, but does not make the graphs.
              Here is a dir listing:

              [2.0.2-RELEASE][admin@front.localdomain]/usr/local/bandwidthd(14): ls -l
              total 82
              -rwxr-xr-x  1 root  wheel  59776 Jun 11  2012 bandwidthd
              drwxr-xr-x  2 root  wheel    512 Mar  8 15:27 etc
              drwxr-xr-x  2 root  wheel    512 Mar  8 16:05 htdocs
              -rw-r--r--  1 root  wheel    493 Mar  8 17:40 log.1.0.cdf
              -rw-r--r--  1 root  wheel    264 Mar  8 17:37 log.1.1.cdf
              -rw-r--r--  1 root  wheel   1671 Mar  8 17:37 log.1.2.cdf
              -rw-r--r--  1 root  wheel    254 Mar  8 17:22 log.1.3.cdf
              -rw-r--r--  1 root  wheel   2566 Mar  8 17:22 log.1.4.cdf
              -rw-r--r--  1 root  wheel    248 Mar  8 16:57 log.1.5.cdf
              -rw-r--r--  1 root  wheel   2654 Mar  8 17:28 log.2.0.cdf
              [2.0.2-RELEASE][admin@front.localdomain]/usr/local/bandwidthd(15): ls -l htdocs/
              total 30
              -rw-r--r--  1 root  wheel     0 Mar  8 17:40 10.99.1.42-1-R.png
              -rw-r--r--  1 root  wheel     0 Mar  8 17:40 10.99.1.42-1-S.png
              -rw-r--r--  1 root  wheel     0 Mar  8 17:33 10.99.1.42-2-R.png
              -rw-r--r--  1 root  wheel     0 Mar  8 17:33 10.99.1.42-2-S.png
              -rw-r--r--  1 root  wheel  2222 Mar  8 17:40 Subnet-1-10.99.1.0.html
              -rw-r--r--  1 root  wheel  2224 Mar  8 17:33 Subnet-2-10.99.1.0.html
              -rw-r--r--  1 root  wheel     0 Mar  8 17:40 Total-1-R.png
              -rw-r--r--  1 root  wheel     0 Mar  8 17:40 Total-1-S.png
              -rw-r--r--  1 root  wheel     0 Mar  8 17:33 Total-2-R.png
              -rw-r--r--  1 root  wheel     0 Mar  8 17:33 Total-2-S.png
              -rw-r--r--  1 root  wheel  2914 Mar  8 17:40 index.html
              -rw-r--r--  1 root  wheel  2916 Mar  8 17:33 index2.html
              -rw-r--r--  1 root  wheel   653 Mar  8 17:33 index3.html
              -rw-r--r--  1 root  wheel   653 Mar  8 17:33 index4.html
              -rw-r--r--  1 root  wheel  1649 Jun 11  2012 legend.gif
              -rw-r--r--  1 root  wheel  7573 Jun 11  2012 logo.gif
              

              The "png" files are all zero bytes!
              And the bandwidthd report looks like the screenshot below.
              While lightsquid was installing, I noticed that it had different versions of the same tbz files that bandwidthd had. e.g.
              bandwidthd - lightsquid
              png-1.4.8.tbz - png-1.5.14.tbz

              I am guessing that one of these messes up the report generation?
              And I guess uninstalling lightsquid does not remove whatever has gone wrong. The lightsquid versions were all later, so maybe they get left in place and then even a reinstall of bandwidthd does not overwrite them with the old version??? I am guessing here!

              I only changed the bandwidthd package xml and inc file. I didn't actually build any new binaries for this. I incremented the version number from 2.0.1.3 to 2.0.1.4 to flag a change to the package xml/inc and because actually the tbz file was already bandwidthd-2.0.1_4.tbz 2011-Oct-15 00:56:07 - so that tbz has been around for a long while also.

              It's well past bedtime in my time zone! I will sleep on it - any further ideas are most welcome.

              Bandwidthd.png
              Bandwidthd.png_thumb

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                The following differences in dependent packages seemed to be breaking the graphing:

                gd-2.0.35_7,1       A graphics library for fast creation of images
                gd-2.0.35_8,1       A graphics library for fast creation of images
                png-1.4.8           Library for manipulating PNG images
                png-1.5.14          Library for manipulating PNG images
                

                The earlier versions get installed with bandwidthd, then LightSquid installs the later ones - presumably overwriting various so files.
                I found ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/bandwidthd-2.0.1_5.tbz
                That has later dependencies.
                I did the following to use 2.0.1_5 bandwidthd:
                a) Remove LightSquid package, using the GUI
                b) Stop bandwidthd from Services->Status
                c) At a command prompt:

                pkg_delete bandwidthd-2.0.1_4
                pkg_delete gd-2.0.35_7,1
                pkg_delete png-1.4.8
                pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/bandwidthd-2.0.1_5.tbz
                
                

                The addition emits a bunch of warnings about various other dependency issues:

                Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/bandwidthd-2.0.1_5.tbz... Done.
                Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/png-1.5.12.tbz... Done.
                Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/gd-2.0.35_8,1.tbz... Done.
                pkg_add: warning: package 'gd-2.0.35_8,1' requires 'jpeg-8_3', but 'jpeg-8_4' is installed
                pkg_add: warning: package 'gd-2.0.35_8,1' requires 'pkgconf-0.8.8', but 'pkgconf-0.8.9' is installed
                pkg_add: warning: package 'gd-2.0.35_8,1' requires 'freetype2-2.4.9_1', but 'freetype2-2.4.11' is installed
                pkg_add: warning: package 'gd-2.0.35_8,1' requires 'freetype2-2.4.9_1', but 'freetype2-2.4.7' is installed
                pkg_add: warning: package 'bandwidthd-2.0.1_5' requires 'jpeg-8_3', but 'jpeg-8_4' is installed
                pkg_add: warning: package 'bandwidthd-2.0.1_5' requires 'pkgconf-0.8.8', but 'pkgconf-0.8.9' is installed
                pkg_add: warning: package 'bandwidthd-2.0.1_5' requires 'freetype2-2.4.9_1', but 'freetype2-2.4.11' is installed
                pkg_add: warning: package 'bandwidthd-2.0.1_5' requires 'freetype2-2.4.9_1', but 'freetype2-2.4.7' is installed
                pkg_add: warning: package 'bandwidthd-2.0.1_5' requires 'libiconv-1.14', but 'libiconv-1.13.1_1' is installed
                
                

                d) Install LightSquid from the pfSense GUI

                2.0.1_5 pbi is used by 2.1-BETA1 - maybe the tbz will work with 2.0.2.
                Can others try this?
                If successful then we can update the pfSense package version to 2.0.1_5

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                1 Reply Last reply Reply Quote 0
                • C
                  craibo
                  last edited by

                  Hi Phil

                  Thank you for your solution. I have updated my Bandwidthd package following your instructions and it is now working and displaying graphs correctly again.
                  :D

                  I did encounter an issue with lightsquid once I had re-installed it. I experienced a "Server 500 - Internal Error", this is easily fixed however using my previous resolution for the issue:
                  http://forum.pfsense.org/index.php/topic,57505.0.html

                  I have also check the RRD graphs and ntop Graphs and they all display correctly.

                  I would say you may go ahead and update the bandwidthd package to version 2.0.1_5 for pfSense 2.0.2

                  Thank you for your time.

                  BandwidthdGraphs.jpg
                  BandwidthdGraphs.jpg_thumb

                  1 Reply Last reply Reply Quote 0
                  • P
                    phil.davis
                    last edited by

                    I have submitted a pull request to make the GitHub changes: https://github.com/pfsense/pfsense-packages/pull/405
                    Someone with privs also needs time to put the 2.0.1_5 file into http://files.pfsense.org/packages/8/All/ - things look rather busy right now, as they have changed the GitHub repo addresses, so it might take some time to be looked at.

                    As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                    If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                    1 Reply Last reply Reply Quote 0
                    • P
                      phil.davis
                      last edited by

                      Jimp has put bandwidthd-2.0.1_5.tbz into http://files.pfsense.org/packages/8/All/ and committed the version change - thanks.
                      I installed 2.0.2 to a fresh VM, added bandwidthd 2.0.1_5 from the packages menu. It works. Installed Squid and then Lightsquid. Bandwidthd still works. Rebooted - bandwidthd comes up and generates and updates its report and graphs. Seems fixed.
                      Can others on pfSense 2.0.n try this latest bandwidthd 2.0.1_5 and confirm it is OK.

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                      1 Reply Last reply Reply Quote 0
                      • C
                        craibo
                        last edited by

                        Hi Phil

                        Firstly, thank you to both you and Jimp for resolving this issue.

                        Just a quick note on the upgrading to the new bandwidthd 2.0.1_5 from previous versions.
                        I would advise that a full uninstall and re-install is done when upgrading. When running just the upgrade I experienced issues with the logo no longer being present.
                        Also it is not necessary to uninstall and re-install any other packages as previously stated when we were testing. (eg. Lightsquid)

                        Thanks again for the resolution gents. Much appreciated.

                        1 Reply Last reply Reply Quote 0
                        • J
                          jasch
                          last edited by

                          Uninstalled 1.4, installed 1.5, pressed Reload on Graph Site and voila there they are.
                          Works fine.
                          THX Alex

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