Got a lot of errors of permission with ntopng
-
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, -
You used the pfSense 'admin' account to install the package ?
-
@Gertjan
Hi,
I installed the package from the gui. -
Packages can only be installed with the GUI.
The question was : did you use the admin account to enter the GUI ? -
@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/ntopngHowever, the better choice would be to upgrade to a more recent version.