Ntop fontconfig error?
-
I tried (latest 2.1 build) to access the ntop "Local Network Traffic Map", and what I get is this:
Local Network Traffic Map
ERRORCreation of network map failed
Command was:
/usr/local/bin/dot -Tpng -Goverlap=false /var/db/ntop/ntop.dot -o /var/db/ntop/network_map.png 2>&1
Results were:
Fontconfig error: Cannot load default config file
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name.
Error: fontconfig: Couldn't retrieve font file name. -
Does it work if, at the shell, you type:
fc-cache -r
And then reload the page?
It worked for me when I tried it here, but I think I've had ntop on this vm before and had that part working a long time ago.
Also, do you have /usr/local/etc/fonts/fonts.conf ? Or just /usr/pbi/ntop-(i386|amd64)/etc/fonts/fonts.conf ?
-
Does it work if, at the shell, you type:
fc-cache -r
And then reload the page?
Nope, won't help:
root(1): fc-cache -r
Fontconfig error: Cannot load default config fileAlso, do you have /usr/local/etc/fonts/fonts.conf ? Or just /usr/pbi/ntop-(i386|amd64)/etc/fonts/fonts.conf ?
Neither. /usr/pbi/ntop-amd64/etc/fonts/ seems to be a symlink to /usr/local/etc/fonts/ and that does not exist.
root(5): ls -las /usr/pbi/ntop-amd64/etc/
total 24
2 drwxr-xr-x 9 root wheel 512 Jul 9 00:18 .
2 drwxr-xr-x 14 root wheel 512 Jul 9 00:18 ..
2 -rw-r–r-- 1 root wheel 588 Jul 6 23:49 GeoIP.conf
2 -rw-r--r-- 1 root wheel 588 Jul 6 23:49 GeoIP.conf.default
2 drwxr-xr-x 2 root wheel 512 Jul 7 00:34 bash_completion.d
2 drwxr-xr-x 2 root wheel 512 Jul 6 23:40 devd
0 lrwxr-xr-x 1 root wheel 20 Jul 9 00:18 fonts -> /usr/local/etc/fonts
2 drwxr-xr-x 2 root wheel 512 Jul 6 23:40 man.d
2 drwxr-xr-x 2 root wheel 512 Jul 7 00:55 ntop
2 drwxr-xr-x 2 root wheel 512 Jul 6 23:40 pam.d
2 drwxr-xr-x 2 root wheel 512 Jul 7 00:47 pango
2 drwxr-xr-x 2 root wheel 512 Jul 7 00:55 rc.d
2 -r--r--r-- 1 root wheel 375 Jul 7 00:39 xml2Conf.sh -
Interesting, the package is supposed to be including that. Somehow it is on my vm though, and also the webfonts package seems to be missing from ntop even though it's listed as one that should be included. I'll have to fiddle with things a bit and see what I can figure out.
-
Still not 100% clear on why, but even if I build a PBI of only the webfonts, the actual fonts are not being included, apparently it's a bit more subtle of an issue than expected.
-
OK, it was a PBI build issue but one that was easily solved, I was just missing a flag to tell it to use the fonts in the PBI rather than the system fonts.
I rebuilt ntop and all of the fonts and the font config file should all be present now. Give it another try.