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

    Got a lot of errors of permission with ntopng

    Scheduled Pinned Locked Moved Traffic Monitoring
    5 Posts 3 Posters 114 Views 3 Watching
    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.
    • K Offline
      kabeda
      last edited by

      Hi,
      I'm with pfsense 2.7.0 with ntopng 0.8.13_10 and in my logs I have a lot of errors like this :

      Oct 17 11:04:08 	ntopng 	72196 	[Trace.cpp:78] ERROR: Unable to create log /var/db/ntopng/ntopng.log
      Oct 17 11:04:08 	ntopng 	72196 	[Utils.cpp:703] WARNING: mkdir(/var/db/ntopng/-1/top_talkers/) failed [13/Permission denied]
      Oct 17 11:04:08 	ntopng 	72196 	[StatsManager.cpp:43] WARNING: Unable to create directory /var/db/ntopng/-1/top_talkers/
      Oct 17 11:04:08 	ntopng 	72196 	[Utils.cpp:703] WARNING: mkdir(/var/db/ntopng/-1/alerts/) failed [13/Permission denied]
      Oct 17 11:04:08 	ntopng 	72196 	[SQLiteStoreManager.cpp:38] WARNING: Unable to open /var/db/ntopng/-1/alerts/alert_store_v11.db: unable to open database file
      Oct 17 11:04:08 	ntopng 	72196 	[SQLiteAlertStore.cpp:41] WARNING: Unable to initialize store /var/db/ntopng/-1/alerts/alert_store_v11.db
      Oct 17 11:04:08 	ntopng 	72196 	[SQLiteAlertStore.cpp:45] WARNING: Unable to open store /var/db/ntopng/-1/alerts/alert_store_v11.db
      Oct 17 11:04:09 	ntopng 	72196 	[Utils.cpp:703] WARNING: mkdir(/var/db/ntopng/scripts/scripts) failed [13/Permission denied] 
      

      I tried to uninstall ntopng, delete the /var/db/ntopng folder and install the package again, it works a while then the errors came back again.
      What should I do to avoid these errors?
      Thanks,

      GertjanG dennypageD 2 Replies Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @kabeda
        last edited by

        @kabeda

        You used the pfSense 'admin' account to install the package ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kabeda @Gertjan
          last edited by

          @Gertjan
          Hi,
          I installed the package from the gui.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @kabeda
            last edited by

            @kabeda

            Packages can only be installed with the GUI.
            The question was : did you use the admin account to enter the GUI ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • dennypageD Offline
              dennypage @kabeda
              last edited by

              @kabeda If memory serves, that old version of ntopng did not run as user ntopng, but as user nobody. There are lots of problems in that old version. Anyway, check the ownership and permissions of /var/db/ntopng and make sure it matches the user that ntopng runs as. You may need to set ownership of the entire hierarchy. Example:

              /usr/sbin/chown -R nobody:nobody /var/db/ntopng
              

              However, the better choice would be to upgrade to a more recent version.

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