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

    Unable to use ntopng package

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 3 Posters 2.3k 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.
    • S
      SteveITS Galactic Empire @Overlord
      last edited by

      @Overlord Are you on 23.09 or 23.09.1? If 23.09 did you change to that update branch before installing the package?

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote 👍 helpful posts!

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Yup that is 23.09. Though I'd be surprised if it made a difference like that.

        Other than that error do you see any other issues?

        O 1 Reply Last reply Reply Quote 0
        • O
          Overlord @stephenw10
          last edited by

          @stephenw10 @SteveITS
          Hey guys, sorry for the very late response - I got no notification from this site (or maybe I deactivated it).

          My pfSense is running on 23.09-RELEASE. As far is I can see there is only the ntopng Package with that issue. All is up2date and I have installed all Patches from the (System) Patches site.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Any reason you're not running 23.09.1?

            O 1 Reply Last reply Reply Quote 0
            • O
              Overlord @stephenw10
              last edited by

              @stephenw10
              Good question - I checked and I saw that I'm not on the current stable version branch. I don't know why it's setup like this. I will check and let you know - thanks :)

              O 1 Reply Last reply Reply Quote 1
              • O
                Overlord @Overlord
                last edited by

                I upgraded, but I have still the issue:

                Crash report begins. Anonymous machine information:

                amd64
                14.0-CURRENT
                FreeBSD 14.0-CURRENT amd64 1400094 #1 plus-RELENG_23_09_1-n256200-3de1e293f3a: Wed Dec  6 21:00:32 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_09_1-main/obj/amd64/Obhu6gXB/var/jenkins/workspace/pfSense-Plus-snapshots-23_09_1
                
                Crash report details:
                
                PHP Errors:
                [22-Jan-2024 16:03:37 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                Stack trace:
                #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
                #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
                #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
                #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
                #6 /usr/local/www/pkg_edit.php(233): write_config('')
                #7 {main}
                  thrown in /etc/inc/util.inc on line 3748
                [22-Jan-2024 16:03:37 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                Stack trace:
                #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
                #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
                #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
                #5 [internal function]: pfSense_clear_globals()
                #6 {main}
                  thrown in /etc/inc/util.inc on line 3748
                [22-Jan-2024 16:14:25 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                Stack trace:
                #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
                #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
                #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
                #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
                #6 /usr/local/www/pkg_edit.php(233): write_config('')
                #7 {main}
                  thrown in /etc/inc/util.inc on line 3748
                [22-Jan-2024 16:14:25 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                Stack trace:
                #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
                #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
                #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
                #5 [internal function]: pfSense_clear_globals()
                #6 {main}
                  thrown in /etc/inc/util.inc on line 3748
                [22-Jan-2024 16:14:56 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                Stack trace:
                #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
                #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
                #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
                #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
                #6 /usr/local/www/pkg_edit.php(233): write_config('')
                #7 {main}
                  thrown in /etc/inc/util.inc on line 3748
                [22-Jan-2024 16:14:56 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                Stack trace:
                #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
                #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
                #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
                #5 [internal function]: pfSense_clear_globals()
                #6 {main}
                  thrown in /etc/inc/util.inc on line 3748
                
                No FreeBSD crash data found.
                
                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  What actually triggers that php crash? Did the upgrade trigger it?

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    Overlord @stephenw10
                    last edited by

                    @stephenw10
                    Yes - I opened the ntop settings page, set a Password and click on save.

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Ah, OK so you can trigger it every time you resave that page?

                      O 1 Reply Last reply Reply Quote 0
                      • O
                        Overlord @stephenw10
                        last edited by

                        @stephenw10
                        Yes - I removed and installed the package again. I deleted all the package date, so I can start from the beginning.

                        If I go to the settings packe, activate ntopgng, set a password and click save get to a white packe with this:

                        Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748 Stack trace: #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable') #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable') #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...') #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...') #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '') #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...') #6 /usr/local/www/pkg_edit.php(233): write_config('') #7 {main} thrown in /etc/inc/util.inc on line 3748 PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 3748, Message: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748 Stack trace: #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable') #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable') #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...') #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...') #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '') #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...') #6 /usr/local/www/pkg_edit.php(233): write_config('') #7 {main} thrown Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748 Stack trace: #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable') #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable') #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...') #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...') #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors') #5 [internal function]: pfSense_clear_globals() #6 {main} thrown in /etc/inc/util.inc on line 3748
                        

                        If I got back to the pfsense, I have two Notices:
                        1c134f38-78da-4044-8227-164f07b8b8fc-image.png

                        And a crash report:

                        Crash report begins.  Anonymous machine information:
                        
                        amd64
                        14.0-CURRENT
                        FreeBSD 14.0-CURRENT amd64 1400094 #1 plus-RELENG_23_09_1-n256200-3de1e293f3a: Wed Dec  6 21:00:32 UTC 2023     root@freebsd:/var/jenkins/workspace/pfSense-Plus-snapshots-23_09_1-main/obj/amd64/Obhu6gXB/var/jenkins/workspace/pfSense-Plus-snapshots-23_09_1
                        
                        Crash report details:
                        
                        PHP Errors:
                        [31-Jan-2024 06:03:37 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                        Stack trace:
                        #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                        #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                        #2 /etc/inc/notices.inc(662): notify_via_smtp('Netgate pfSense...')
                        #3 /etc/inc/notices.inc(151): notify_all_remote('Netgate pfSense...')
                        #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'Netgate pfSense...', 'pfSenseConfigur...', '')
                        #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
                        #6 /usr/local/www/pkg_edit.php(233): write_config('')
                        #7 {main}
                          thrown in /etc/inc/util.inc on line 3748
                        [31-Jan-2024 06:03:37 Europe/Berlin] PHP Fatal error:  Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1264 and defined in /etc/inc/util.inc:3748
                        Stack trace:
                        #0 /etc/inc/config.lib.inc(1264): array_path_enabled(-1, 'notifications/s...', 'disable')
                        #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
                        #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
                        #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
                        #4 /etc/inc/config.lib.inc(1168): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
                        #5 [internal function]: pfSense_clear_globals()
                        #6 {main}
                          thrown in /etc/inc/util.inc on line 3748
                        
                        No FreeBSD crash data found.			
                        
                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Same error as: https://redmine.pfsense.org/issues/15157

                          It looks like you must have some corruption in your config file somehow. I would imagine it's in the ntopng config except cleared all the data when you removed the pkg?

                          O 1 Reply Last reply Reply Quote 0
                          • O
                            Overlord @stephenw10
                            last edited by

                            @stephenw10
                            Yes I delete all files before with: rm -rf /var/db/ntop

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              But I mean you removed the ntop data from the config? So unchecked Keep ntopng settings, graphs and traffic data. before uninstalling?

                              O 1 Reply Last reply Reply Quote 0
                              • O
                                Overlord @stephenw10
                                last edited by

                                @stephenw10
                                Yes, I dit this as well.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Hmm, I can't replicate this.

                                  What version of the ntopng pakcage do you have installed?

                                  Do you have any patches installed in the system?

                                  O 1 Reply Last reply Reply Quote 0
                                  • O
                                    Overlord @stephenw10
                                    last edited by

                                    @stephenw10
                                    ntopng 0.8.13_10

                                    System Patches:
                                    f8fc6bd3-6b28-4151-9085-00082e32ad6d-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Hmm, still can't replicate it. It must be something in your config somehow. Are you able to test it with a default config? Or upload your config to us to check?

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