Bandwidthd issues?
-
Does anything show up in /tmp/php_errors.txt?
This line, from Phil's log below, looks strange. Can you verify you have configured an interface for bandwidthd?
Sep 28 09:46:08 apu22 php-fpm[54340]: /rc.start_packages: You should specify an interface for bandwidthd to listen on. Exiting.
-
Hi,
Nothing here at least … but my BandwidthD is running, even though it says it's not installed ... :(.
Do I need to reinstall? I can, to check this ... but then I lose the GUI, and it seems to be a very manual process to go back?
Thanks!
-
Hi,
OK, some very odd behavior with BandwidthD … :(. A couple items, below,
- I updated my install, but pfSense still says BandwdithD is not installed - even though I now have 2 copies of bandwidthd running it seems. Not sure how / why. Is there a way to fully / cleanly uninstall BandwidthD, to try again?
- I reinstalled BandwidthD from the GUI -> yep, my GUI is broken again (clearly the BandwidthD install breaks it!). Nothing in /tmp/php_errors.txt though. Any other places to look?
- When I try to manually run /usr/pbi/bandwidthd-amd64/local/bandwidthd/bandwidthd now, I get the error message: Shared object "libpq.so.5" not found, required by "bandwidthd"
Suggestions?
Thanks!
-
And a couple more observations,
4) The command above works to get the GUI going again (/usr/local/sbin/php-fpm -c /usr/local/lib/php.ini -y /usr/local/lib/php-fpm.conf -RD). Thanks!
5) I then removed and reinstalled BandwidthD … now it seems to be broken (no GUI to configure it, unable to restart it).Thoughts?
Thanks!
-
Sorry for the barrage of postings, but trying to help debug this. A couple more observations …
6) I updated pfSense, and then BandwidthD gets reinstalled (as I have it installed now) -> does not work from the GUI, and I have to execute the command above to get the GUI restarted.
7) I can manually start bandwidthd after reboot, by executing /usr/local/etc/rc.d/bandwidthd.sh startThanks!
-
The sad truth is, this install from the Pfsense library has been borked for TWO years!!!! Does the author not maintain it, or how does that work? Very unfortunate.
Unfortunately I am a little confused about this "patch". I didn't see where it can be downloaded, or how to install it to make it work. Do I need to manually make the code change at the terminal?
-
The patch mentioned near the start of this thread has been applied already, you don't need to edit anything. It fixed bandwidthd so that it would start up correctly with a full install version of pfSense. (Prior to that, it only started on embedded versions).
Problems mentioned later in the thread, such as bandwidthd causing php-fpm (and thus the webgui) to fail, have not been addressed, tracked down or patched. Patches welcome.
Note that the later issues do not apply universally; ie, I continue to use bandwidthd without issue on 64bit 2.2Beta
-
Hi,
I admit, still a bit confused the fact that some installations see this, others don't. Any thoughts on what to check?
Thanks!
-
I split part of the old thread into this thread, leaving here only the part referencing something that might still be an issue for some.
I admit, still a bit confused the fact that some installations see this, others don't. Any thoughts on what to check?
I'm not seeing this either, with bandwidthd running on a handful of different systems on latest 2.2 snapshot.
If you're still seeing this, make sure you're on the latest 2.2 snapshot and can still replicate, and please provide the following info:
- which platform, full or nano? (not sure? If you have a Diagnostics>Nanobsd menu, it's nano. otherwise it's full)
- 32 or 64 bit? (not sure? look for i386 or amd64 on dashboard)
- what other packages do you have installed?
- have you installed anything manually at the command line via 'pkg'?
- is there anything about your setup or configuration that's atypical? anything really out of the ordinary you're doing
-
The sad truth is, this install from the Pfsense library has been borked for TWO years!!!!
That's not the truth, it's one of the most widely-used packages. I'm not aware of any issues in versions prior to 2.2, the things discussed in this thread and the one where this was originally posted were specific to 2.2 back in the alpha days. It's working fine in 2.2 now as well.
-
Hi,
Still trying to get this working. It sort of works … but breaks the GUI (I can work around that), but also creates two copies of bandwidthd on upgrade (that's more painful). Is there a way to fully de-install, so I can try a re-install? It could be my machine, as others don't see this, but not sure what all to remove to clean it up.
Thanks!
-
Hi,
FYI - did a complete uninstall of bandwidthd, then reinstalled. All looked good, then I rebooted … :(. Again I had two copies of bandwidthd running, and it broke my GUI.
So the reboot after seems critical (to demonstrate the problem).
Thanks.
-
Anyone who can replicate the issue with bandwidthd breaking the web interface, is there anything unusual about your setup? Seems it's easy for some to replicate, but most of us, including myself with at least a handful of 2.2 systems running bandwidthd, have never been able to replicate. Could someone share a config backup from a system that exhibits the issue?
-
Yep, I can get that to you - but is there an easy way to remove any sensitive information?
Thanks!
-
For what its worth, installing bandwidthd seemed to bork my webGUI too. More specifically, after installation I started configuring it (i.e., selecting the LAN interface and identifying the subnet), I hit save and that's when the webGUI went down.
I restarted the pfsense box and managed to get back in. bandwidthd isn't running, and I don't plan to enable it for fear of not being able to get back in next time it goes down.
My setup isn't hugely special. I'm running 2.2-RC (amd64), Jan 02 build, with packages apinger, darkstat and snort.
-
For what its worth, installing bandwidthd seemed to bork my webGUI too. More specifically, after installation I started configuring it (i.e., selecting the LAN interface and identifying the subnet), I hit save and that's when the webGUI went down.
I restarted the pfsense box and managed to get back in. bandwidthd isn't running, and I don't plan to enable it for fear of not being able to get back in next time it goes down.
My setup isn't hugely special. I'm running 2.2-RC (amd64), Jan 02 build, with packages apinger, darkstat and snort.
Same thing happened to me. But after a reboot it's running without issues.
-
Hi,
Do you have bandwidthd running on boot (i.e. is it enabled)? That may be your "fix" - below is why I say this …
I tried a few cases,
-
Upgrade my release - breaks on reboot, and 2 copies of bandwidthd are running.
-
Reboot, with bandwidthd enabled. Again, 2 copies are running, and I can see this in the log,
Jan 5 13:24:37 pfSense bandwidthd: Monitoring subnet 255.255.255.0 with netmask 255.255.255.0
Jan 5 13:24:37 pfSense bandwidthd: Monitoring subnet 255.255.255.0 with netmask 255.255.255.0
Jan 5 13:24:37 pfSense bandwidthd: Opening bge0
Jan 5 13:24:37 pfSense bandwidthd: Packet Encoding: Ethernet
Jan 5 13:24:37 pfSense bandwidthd: Opening bge0
Jan 5 13:24:37 pfSense bandwidthd: Packet Encoding: Ethernet -
Disable bandwidthd, reboot ... then all is good, GUI doesn't break. So bandwidthd seems to be the culprit. I then manually started bandwidthd (from the GUI ... enable and save). Only a single copy runs (log below), and GUI stays up,
Jan 6 06:58:51 pfSense bandwidthd: Monitoring subnet 255.255.255.0 with netmask 255.255.255.0
Jan 6 06:58:51 pfSense bandwidthd: Opening bge0
Jan 6 06:58:51 pfSense bandwidthd: Packet Encoding: Ethernet
So it seems that reboot with bandwidhd is the issue ... and 2 copies of bandwidthd are started for some reason (confirmed by ps aux, and also in the logs). Any idea why this happens (and how to fix it)?
Thanks!
-
-
Hi,
OK, perhaps another interesting finding here (that I admit, I stumbled on to accidentally … ;)).
In the case where things break, I see the following in the logs. I did make this happen once with manual (command line) restarts of bandwidthd, but can't seem to make it happen again ... :(.
Jan 6 09:28:11 lighttpd[27258]: (mod_fastcgi.c.1754) connect failed: No such file or directory on unix:/var/run/php-fpm.socket
Jan 6 09:28:11 lighttpd[27258]: (mod_fastcgi.c.3021) backend died; we'll disable it for 1 seconds and send the request to another backend instead: reconnects: 0 load: 1
Jan 6 09:28:14 lighttpd[27258]: (mod_fastcgi.c.2848) fcgi-server re-enabled: unix:/var/run/php-fpm.socketFollowed by,
sshlockout[43240]: sshlockout/webConfigurator v3.0 starting upThoughts? I think the sshlockout may be what is causing this, but why is it happening?
Thanks!
-
Hi,
OK, a bit more here - hoping to get some thoughts on this … ;).
It seems that the GUI is broken when I stop the two operating bandwidthd processes after boot (more on this below). When I boot up, there are two bandwidthd processes ... does anyone else see this? I did an uninstall / reinstall, get the same thing. This itself doesn't kill the GUI, it's when I ssh in and stop bandwidthd ... then the GUI breaks.
If I restart php-fpm, then after that I can can stop and start bandwidthd as much as I want - the GUI stays up.
Thoughts?
Thanks!
-
And one more thing … stopping bandwidthd also kills ntopng (not just the GUI / php-fpm). Very odd ... :(