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

    Ntop fontconfig error?

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 2 Posters 3.4k 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.
    • rcfaR
      rcfa
      last edited by

      I tried (latest 2.1 build) to access the ntop "Local Network Traffic Map", and what I get is this:

      Local Network Traffic Map
      ERROR

      Creation 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.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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 ?

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • rcfaR
          rcfa
          last edited by

          @jimp:

          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 file

          @jimp:

          Also, 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

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            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.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              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.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                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.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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