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

    Bandwidthd - where to write on nanobsd

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.6k 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.
    • P
      phil.davis
      last edited by

      I fixed up some issues with the passing of bandwidthd.conf parameters from the GUI to config.xml to make bandwidthd.conf - https://github.com/bsdperimeter/pfsense-packages/commit/0edf4e67178a769a1bb784401aa2bcf7b7c2c109 Now bandwidthd starts up nicely with whatever parameters are specified on the GUI.
      But on 2.1-BETA0 bandwidthd writes its data files to /usr/pbi/bandwidthd-i386/bandwidthd/htdocs and /usr/local/www/bandwidthd is a link to that htdocs directory. On nanobsd the htdocs dir is on a read-only filesystem, so I get messages that it cannot write to the htdocs dir, and of course I get no data/graphs.

      1. I had another pfSense system running 1.2.3 (an old install, not mine, so I was not familiar with it). Apparently it ran bandwidthd OK. We upgraded it to 2.0.1 and then immediately to 2.1-BETA0. Now bandwidthd won't run, for the reasons above. I can't see how bandwidthd could have run on 1.2.3 either - did 1.2.3 have the CF card filesystems mounted read-write?
      2. Where should I put the htdocs dir? In a dir called /var/bandwidthd/htdocs?
      3. Should I add code to save htdocs somewhere on shutdown and restore it at boot time? Or do we just start from scratch again each boot?\
      4. Should I move htdocs on all platforms, or leave it where it is on non-nanobsd platforms?\

      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
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.