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

    ntopng cannot be installed with latest update

    Traffic Monitoring
    5
    9
    1.1k
    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.
    • O
      overcam
      last edited by

      I was trying to update ntopng to the latest package version and it failed. I also tried uninstall/reinstall ... still fails with output seen below.

      Looking at /usr/local/pkg/ntopng.inc, it looks like there is an error in the logic to handle the case where the user doesn't have a maxmind key (I don't have one.)

      PHP ERROR: Type: 1, File: /usr/local/pkg/ntopng.inc, Line: 241, Message: Uncaught ArgumentCountError: Too few arguments to function ntopng_update_geoip(), 0 passed in /etc/inc/pkg-utils.inc(778) : eval()'d code on line 2 and exactly 1 expected in /usr/local/pkg/ntopng.inc:241
      Stack trace:
      #0 /etc/inc/pkg-utils.inc(778) : eval()'d code(2): ntopng_update_geoip()
      #1 /etc/inc/pkg-utils.inc(778): eval()
      #2 /etc/inc/pkg-utils.inc(866): eval_once('ntopng_php_inst...')
      #3 /etc/rc.packages(74): install_package_xml('ntopng')
      #4 {main}
      thrown @ 2020-04-30 09:48:42
      
      1 Reply Last reply Reply Quote 0
      • R
        revengineer
        last edited by

        I posted the same. I have a maxmind key but cannot enter it because the package does not install.

        1 Reply Last reply Reply Quote 0
        • O
          overcam
          last edited by

          Here is the entire install script output...

          >>> Installing pfSense-pkg-ntopng... 
          Updating pfSense-core repository catalogue...
          pfSense-core repository is up to date.
          Updating pfSense repository catalogue...
          pfSense repository is up to date.
          All repositories are up to date.
          Checking integrity... done (0 conflicting)
          The following 22 package(s) will be affected (of 0 checked):
          
          New packages to be INSTALLED:
          	pfSense-pkg-ntopng: 0.8.13_4 [pfSense]
          	webfonts: 0.30_14 [pfSense]
          	mkfontscale: 1.2.1 [pfSense]
          	libfontenc: 1.1.4 [pfSense]
          	freetype2: 2.10.1 [pfSense]
          	fontconfig: 2.12.6,1 [pfSense]
          	cyrus-sasl: 2.1.27 [pfSense]
          	ntopng: 3.8.d20191111,1 [pfSense]
          	libsodium: 1.0.18 [pfSense]
          	ndpi: 3.0.d20191021,1 [pfSense]
          	mysql57-client: 5.7.29 [pfSense]
          	protobuf: 3.9.2,1 [pfSense]
          	graphviz: 2.42.2_3 [pfSense]
          	webp: 1.0.3_1 [pfSense]
          	tiff: 4.1.0 [pfSense]
          	jpeg-turbo: 2.0.3 [pfSense]
          	jbigkit: 2.1_1 [pfSense]
          	png: 1.6.37 [pfSense]
          	giflib: 5.2.1 [pfSense]
          	libgd: 2.2.5_2,1 [pfSense]
          	redis: 5.0.7_2 [pfSense]
          	gdbm: 1.18.1_1 [pfSense]
          
          Number of packages to be installed: 22
          
          The process will require 119 MiB more space.
          [1/22] Installing jpeg-turbo-2.0.3...
          [1/22] Extracting jpeg-turbo-2.0.3: .......... done
          [2/22] Installing jbigkit-2.1_1...
          [2/22] Extracting jbigkit-2.1_1: .......... done
          [3/22] Installing tiff-4.1.0...
          [3/22] Extracting tiff-4.1.0: .......... done
          [4/22] Installing png-1.6.37...
          [4/22] Extracting png-1.6.37: .......... done
          [5/22] Installing giflib-5.2.1...
          [5/22] Extracting giflib-5.2.1: .......... done
          [6/22] Installing libfontenc-1.1.4...
          [6/22] Extracting libfontenc-1.1.4: ......... done
          [7/22] Installing freetype2-2.10.1...
          [7/22] Extracting freetype2-2.10.1: .......... done
          [8/22] Installing cyrus-sasl-2.1.27...
          *** Updated user `cyrus'.
          [8/22] Extracting cyrus-sasl-2.1.27: .......... done
          [9/22] Installing protobuf-3.9.2,1...
          [9/22] Extracting protobuf-3.9.2,1: .......... done
          [10/22] Installing webp-1.0.3_1...
          [10/22] Extracting webp-1.0.3_1: .......... done
          [11/22] Installing mkfontscale-1.2.1...
          [11/22] Extracting mkfontscale-1.2.1: ....... done
          [12/22] Installing fontconfig-2.12.6,1...
          [12/22] Extracting fontconfig-2.12.6,1: .......... done
          Running fc-cache to build fontconfig cache...
          /usr/local/share/fonts: skipping, no such directory
          /usr/local/lib/X11/fonts: skipping, no such directory
          /var/db/fontconfig: cleaning cache directory
          /var/db/fontconfig: invalid cache file: 4c599c202bc5c08e2d34565a40eac3b2-le32d8.cache-7
          /var/db/fontconfig: invalid cache file: a2bfc4e431963a28dd6df8adc7776b96-le32d8.cache-7
          fc-cache: succeeded
          [13/22] Installing libsodium-1.0.18...
          [13/22] Extracting libsodium-1.0.18: .......... done
          [14/22] Installing ndpi-3.0.d20191021,1...
          [14/22] Extracting ndpi-3.0.d20191021,1: .......... done
          [15/22] Installing mysql57-client-5.7.29...
          [15/22] Extracting mysql57-client-5.7.29: .......... done
          [16/22] Installing libgd-2.2.5_2,1...
          [16/22] Extracting libgd-2.2.5_2,1: .......... done
          [17/22] Installing webfonts-0.30_14...
          [17/22] Extracting webfonts-0.30_14: .......... done
          [18/22] Installing ntopng-3.8.d20191111,1...
          ===> Creating groups.
          Using existing group 'ntopng'.
          ===> Creating users
          Using existing user 'ntopng'.
          [18/22] Extracting ntopng-3.8.d20191111,1: .......... done
          [19/22] Installing graphviz-2.42.2_3...
          [19/22] Extracting graphviz-2.42.2_3: .......... done
          [20/22] Installing redis-5.0.7_2...
          ===> Creating groups.
          Using existing group 'redis'.
          ===> Creating users
          Using existing user 'redis'.
          [20/22] Extracting redis-5.0.7_2: ......... done
          [21/22] Installing gdbm-1.18.1_1...
          [21/22] Extracting gdbm-1.18.1_1: .......... done
          [22/22] Installing pfSense-pkg-ntopng-0.8.13_4...
          [22/22] Extracting pfSense-pkg-ntopng-0.8.13_4: ......... done
          Saving updated package information...
          done.
          Loading package configuration... done.
          Configuring package components...
          Loading package instructions...
          Custom commands...
          Executing custom_php_install_command()...
          Fatal error: Uncaught ArgumentCountError: Too few arguments to function ntopng_update_geoip(), 0 passed in /etc/inc/pkg-utils.inc(778) : eval()'d code on line 2 and exactly 1 expected in /usr/local/pkg/ntopng.inc:241
          Stack trace:
          #0 /etc/inc/pkg-utils.inc(778) : eval()'d code(2): ntopng_update_geoip()
          #1 /etc/inc/pkg-utils.inc(778): eval()
          #2 /etc/inc/pkg-utils.inc(866): eval_once('ntopng_php_inst...')
          #3 /etc/rc.packages(74): install_package_xml('ntopng')
          #4 {main}
            thrown in /usr/local/pkg/ntopng.inc on line 241
          PHP ERROR: Type: 1, File: /usr/local/pkg/ntopng.inc, Line: 241, Message: Uncaught ArgumentCountError: Too few arguments to function ntopng_update_geoip(), 0 passed in /etc/inc/pkg-utils.inc(778) : eval()'d code on line 2 and exactly 1 expected in /usr/local/pkg/ntopng.inc:241
          Stack trace:
          #0 /etc/inc/pkg-utils.inc(778) : eval()'d code(2): ntopng_update_geoip()
          #1 /etc/inc/pkg-utils.inc(778): eval()
          #2 /etc/inc/pkg-utils.inc(866): eval_once('ntopng_php_inst...')
          #3 /etc/rc.packages(74): install_package_xml('ntopng')
          #4 {main}
            thrownpkg-static: POST-INSTALL script failed
          =====
          Message from freetype2-2.10.1:
          
          --
          The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
          the default, emulating a modern version of ClearType. This change inevitably
          leads to different rendering results, and you might change port's options to
          adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
          variable).
          
          The environment variable "FREETYPE_PROPERTIES" can be used to control the
          driver properties. Example:
          
          FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
          	cff:no-stem-darkening=1 \
          	autofitter:warping=1
          
          This allows to select, say, the subpixel hinting mode at runtime for a given
          application.
          
          If LONG_PCF_NAMES port's option was enabled, the PCF family names may include
          the foundry and information whether they contain wide characters. For example,
          "Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at
          run time with using pcf:no-long-family-names property, if needed. Example:
          
          FREETYPE_PROPERTIES=pcf:no-long-family-names=1
          
          How to recreate fontconfig cache with using such environment variable,
          if needed:
          # env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv
          
          The controllable properties are listed in the section "Controlling FreeType
          Modules" in the reference's table of contents
          (/usr/local/share/doc/freetype2/reference/site/index.html, if documentation was installed).
          =====
          Message from cyrus-sasl-2.1.27:
          
          --
          You can use sasldb2 for authentication, to add users use:
          
          	saslpasswd2 -c username
          
          If you want to enable SMTP AUTH with the system Sendmail, read
          Sendmail.README
          
          NOTE: This port has been compiled with a default pwcheck_method of
                auxprop.  If you want to authenticate your user by /etc/passwd,
                PAM or LDAP, install ports/security/cyrus-sasl2-saslauthd and
                set sasl_pwcheck_method to saslauthd after installing the
                Cyrus-IMAPd 2.X port.  You should also check the
                /usr/local/lib/sasl2/*.conf files for the correct
                pwcheck_method.
                If you want to use GSSAPI mechanism, install
                ports/security/cyrus-sasl2-gssapi.
                If you want to use SRP mechanism, install
                ports/security/cyrus-sasl2-srp.
                If you want to use LDAP auxprop plugin, install
                ports/security/cyrus-sasl2-ldapdb.
          =====
          Message from mysql57-client-5.7.29:
          
          --
          This is the mysql CLIENT without the server.
          for complete server and client, please install databases/mysql57-server
          =====
          Message from webfonts-0.30_14:
          
          --
          IMPORTANT - READ CAREFULLY: You may not use these fonts if you do not agree to
          the terms of the Microsoft End-User License Agreement ("EULA").  You will find
          the EULA at /usr/local/share/doc/webfonts/LICENSE.  If you read and agree
          to the EULA, you can start using the fonts by following these instructions:
          
          Make sure that the freetype module is loaded.  If it is not, add the following
          line to the "Modules" section of xorg.conf or XF86Config:
          
          	Load "freetype"
          
          Add the following line to the "Files" section of xorg.conf or XF86Config:
          
          	FontPath "/usr/local/share/fonts/webfonts/"
          
          NOTE: Due to known freetype bug some glyphs (N, W) of y2006 Verdana Bold
                font are not rendered correctly in anti-aliased mode within the range
                9-16 ppem
          =====
          Message from ntopng-3.8.d20191111,1:
          
          --
          ntopng runs a web interface service by default, it is suggested to protect
          such network accessible services with packet filters or TCP wrappers.
          
          ntopng requires to connect to a redis server to work. Please install redis
          server from databases/redis or use -r option via ntopng_flags to specify a
          remote one.
          
          ntopng supports IP geolocation, to enable this you should use the
          ntopng-geoip2update.sh script to update the maxminddb geolocation
          data to the latest version.
          
          To pass a configuration file to ntopng, which overrides any command
          line arguments, add something like the following to rc.conf:
          
          ntopng_flags="/path/to/file.conf"
          =====
          Message from redis-5.0.7_2:
          
          --
          To setup "redis" you need to edit the configuration file:
                /usr/local/etc/redis.conf
          
                To run redis from startup, add redis_enable="YES"
                in your /etc/rc.conf.
          >>> Cleaning up cache... done.
          Success
          
          1 Reply Last reply Reply Quote 0
          • viktor_gV
            viktor_g Netgate
            last edited by

            Fixed
            Please install ntopng 0.8.13_5

            D 1 Reply Last reply Reply Quote 0
            • D
              digs
              last edited by

              This post is deleted!
              D 1 Reply Last reply Reply Quote 0
              • D
                digs @digs
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • D
                  digs @viktor_g
                  last edited by

                  @viktor_g Just installed 0.18.13_5. Failed to start because of requirement to connect to a redis server to work. System logs suggests couldn't connect to redis server.

                  1 Reply Last reply Reply Quote 0
                  • D
                    digs
                    last edited by

                    Removerd *.rdb from /var/db/ntopng/. Uninstalled ntopng and reinstalled. Now working! Thanks to previous poster on pointing out redis db craps itself and needs a reset.

                    R 1 Reply Last reply Reply Quote 1
                    • R
                      rrtolivia @digs
                      last edited by

                      @digs did the trick. I was not able to log in, uninstalled and insalled lot of times, updated pfsense from 2.4.4_3 to 2.4.5, same scenario not able to login (login loop).

                      Deleted all on /var/db/ntopng/, unistalled on gui, reinstalled then working. Thank you!

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