Bandwidthd broken? [Resolved with patch]
-
I saw Renato made some updates related to packages yesterday that perhaps could help, but no dice.
I installed new snapshot from scratch (pfSense-LiveCD-2.2-DEVELOPMENT-amd64-20140613-1600.iso.gz), unticked 'check package signature', and then installed bandwidthd from the list of available packages. Checked the last commit:
[2.2-ALPHA][admin@pfSense.localdomain]/etc(3): cat version.lastcommit aba02f656010bc190b5db0e0c659f8f79402b6a9
I see that /usr/local/etc/rc.d/bandwidthd.sh contains```
rc_start() {
/usr/local/bandwidthd/bandwidthd
}There is no such directory or executable file under /usr/local/, but there is under /usr/pbi/bandwithd-amd64:
[2.2-ALPHA][admin@pfSense.localdomain]/usr/pbi/bandwidthd-amd64/local/bandwidthd(13): ls -l
total 60
-rwxr-xr-x 1 root wheel 52904 Jun 7 02:43 bandwidthd
drwxr-xr-x 2 root wheel 512 Jun 19 10:10 etc
drwxr-xr-x 2 root wheel 512 Jun 19 10:10 htdocsRunning that file gives the same result as before:
[2.2-ALPHA][admin@pfSense.localdomain]/usr/pbi/bandwidthd-amd64/local/bandwidthd(21): ./bandwidthd -l
Shared object "libpq.so.5" not found, required by "bandwidthd"
[2.2-ALPHA][admin@pfSense.localdomain]/usr/pbi/bandwidthd-amd64/local/bandwidthd(22): find / -name libpq.so.5
/usr/pbi/bandwidthd-amd64/local/lib/libpq.so.5So there seems to be at least two separate problems: * RC file expects to find the bandwidthd executable in /usr/local/bandwidthd directory, but it lives somewhere else * The shared library libpq.so is not found by the executable I don't know anything about the pbi sytstem, so I can't be much further help other than testing.
-
That has happened to me in the past, and I am on 32-bit installs on nanoBSD. Uninstalled and reinstalled and then the library/ies appear again. Do the "standard" computer thing and uninstall and reinstall! And if you can figure out what actually makes the problem happen (presumably some "event" during installation) then report back and we can make progress to fix or handle it.
Phil, you made a commit to fix it for nano (https://github.com/pfsense/pfsense-packages/commit/dc690b55fe7b55b767af8461c4735ea4a3a60c3b), but there is another minor change needed for the non-nano (full install) case:
[2.2-ALPHA][root@pfsense]/usr/local/pkg(52): diff -ub bandwidthd.inc.old bandwidthd.inc --- bandwidthd.inc.old 2014-06-24 08:14:40.000000000 -0400 +++ bandwidthd.inc 2014-06-24 11:24:38.000000000 -0400 @@ -348,7 +348,9 @@ EOD; } else { $rc['start'] = <<<eod<br>-/usr/local/bandwidthd/bandwidthd +cd {$bandwidthd_base_dir} +{$bandwidthd_runtime_library_env} {$bandwidthd_base_dir}/bandwidthd +cd - EOD; } } else {</eod<br>
With this change, bandwidthd works for me (full install, amd64, 20-Jun-14 alpha 2.2 snapshot). I'm not sure how long it's been broken in the full-install case, but this fixes it.
-
The full install case on 2.2 has never worked. Thanks for sorting this out. I tested the change on a 2.1.4 full install also, and it does not break that, and should not break 2.0.n either, as the way the code works out the shell script to start it on 2.0.n case will end up the same as it was previously.
With this change, bandwidthd should now work on 2.0.* 2.1.* and 2.2 in both full and nanoBSD installs.
Pull request: https://github.com/pfsense/pfsense-packages/pull/679 -
I'm having the same issue as the OP and I'm glad a fix has been found..
How do I install the latest build from Github?
When will the fix be published to the 'Packages' section in the pfSense GUI? -
Hi,
Bandwidthd is working fine for me … but it doesn't work with Postgresql. Is that broken? Actually, it seems like Postgresql isn't installed?
Thanks!
-
I'm having the same issue as the OP and I'm glad a fix has been found..
How do I install the latest build from Github?
When will the fix be published to the 'Packages' section in the pfSense GUI?Pull request 679 referenced above was committed back in June 2014. bandwidthd should be showing 2.0.1_6 pkg v.0.5 and that is the version that should install from the packages list.
-
Hi,
Bandwidthd is working fine for me … but it doesn't work with Postgresql. Is that broken? Actually, it seems like Postgresql isn't installed?
Thanks!
You need to fill in the various Postgresql parameters to point to a database that is listening on some other system reachable on your network. pfSense itself does not have a Postgresql database engine.
-
Makes sense, thanks! I have the PostgreSQL server running now, and installed the schema (and can see the tables). No data showing up from BandwidthD yet … need to find the logs to see if I can figure out the problem.
Thanks again!
-
This problem still is ongoing for me, I'm using the standard install as a VM on VMWare. I read the patch was to fix the Nano version, but I believe it still affects the standard version. Are there any logs I can provide to help get to the root cause?
-
This problem still is ongoing for me, I'm using the standard install as a VM on VMWare. I read the patch was to fix the Nano version, but I believe it still affects the standard version. Are there any logs I can provide to help get to the root cause?
Nano was OK, the most recent patch was to fix bandwidthd startup on a full install. Please clarify which pfSense version you installed, and what is shown for the version of your bandwidthd package.