• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.2k 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.
  • O
    Overlord @stephenw10
    last edited by Jan 21, 2024, 4:05 PM

    @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 Jan 22, 2024, 3:16 PM Reply Quote 1
    • O
      Overlord @Overlord
      last edited by Jan 22, 2024, 3:16 PM

      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
      • S
        stephenw10 Netgate Administrator
        last edited by Jan 22, 2024, 3:27 PM

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

        O 1 Reply Last reply Jan 26, 2024, 3:50 PM Reply Quote 0
        • O
          Overlord @stephenw10
          last edited by Jan 26, 2024, 3:50 PM

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

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Jan 26, 2024, 4:19 PM

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

            O 1 Reply Last reply Jan 31, 2024, 5:05 AM Reply Quote 0
            • O
              Overlord @stephenw10
              last edited by Jan 31, 2024, 5:05 AM

              @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
              • S
                stephenw10 Netgate Administrator
                last edited by Jan 31, 2024, 11:07 AM

                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 Feb 1, 2024, 1:32 PM Reply Quote 0
                • O
                  Overlord @stephenw10
                  last edited by Feb 1, 2024, 1:32 PM

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

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Feb 1, 2024, 1:45 PM

                    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 Feb 1, 2024, 1:47 PM Reply Quote 0
                    • O
                      Overlord @stephenw10
                      last edited by Feb 1, 2024, 1:47 PM

                      @stephenw10
                      Yes, I dit this as well.

                      1 Reply Last reply Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator
                        last edited by Feb 1, 2024, 1:55 PM

                        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 Feb 2, 2024, 2:59 PM Reply Quote 0
                        • O
                          Overlord @stephenw10
                          last edited by Feb 2, 2024, 2:59 PM

                          @stephenw10
                          ntopng 0.8.13_10

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

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Feb 2, 2024, 5:49 PM

                            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
                            18 out of 18
                            • First post
                              18/18
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received