Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors related to LuaEngine.cpp, Utils.cpp, etc #2456

Closed
maravento opened this Issue Mar 11, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@maravento
Copy link

commented Mar 11, 2019

a. In one PC. Ubutu18.04.2 x64. Obtain network via DHCP

Errors related to LuaEngine.cpp, Utils.cpp:
[LuaEngine.cpp:8741] WARNING: Script failure [/usr/share/ntopng/scripts/callbacks/system/housekeeping.lua][/usr/share/ntopng/scripts/lua/modules/lists_utils.lua:259: attempt to index a number value (local 'res')]
[Utils.cpp:1713] ERROR: Could not open /var/lib/ntopng/category_lists/Cisco Talos Intelligence.txt.new for write
problem

b. In another PC. Ubutu18.04.2 x64. Obtain network via static IP (interfaces: 1 lan 1 wan)

Error related to NetworkInterface.cpp
Captura de pantalla -2019-03-10 12-04-36

Error related to "could not find '/var/lib/ntopng/category_list/...."
Captura de pantalla -2019-03-11 16-28-46

global parameters (for both PCs)

ntopng --version
v.3.9.190311	[Enterprise/Professional build]
GIT rev:	dev:840313dd60620ded5492ae87be780c3461b5522d:20190311
Pro rev:	r2275
Built on:	Ubuntu 18.04.2 LTS
System Id:	[REMOVED]
Platform:	x86_64
Edition:	Enterprise
License Type:	Time-Limited
Validity:	Until Mon Mar 11 16:02:33 2019

Install method:

wget http://apt.ntop.org/18.04/all/apt-ntop.deb
dpkg -i apt-ntop.deb
apt update -y
apt install pfring-dkms nprobe ntopng n2disk cento -y

Too many errors. How are they solved?. thanks in advance

@maravento maravento changed the title Errors related to LuaEngine.cpp and Utils.cpp Errors related to LuaEngine.cpp, Utils.cpp, etc Mar 11, 2019

@emanuele-f

This comment has been minimized.

Copy link
Contributor

commented Mar 12, 2019

It seems like a permission issue. Please ensure that the ntopng user has write access to /var/lib/ntopng (e.g. chwon -R ntopng:ntopng /var/lib/ntopng) or add the -s option to run as root.

@maravento

This comment has been minimized.

Copy link
Author

commented Mar 12, 2019

I already did what you said (chwon -R ntopng:ntopng /var/lib/ntopng) and the errors keep appearing every 3 seconds:

[Utils.cpp:1713] ERROR: Could not open /var/lib/ntopng/category_lists/Cisco Talos Intelligence.txt.new for write
[LuaEngine.cpp:8741] WARNING: Script failure [/usr/share/ntopng/scripts/callbacks/system/housekeeping.lua][/usr/share/ntopng/scripts/lua/modules/lists_utils.lua:259: attempt to index a number value (local 'res')]
root@test:/var/lib/ntopng/category_lists# ls -l
total 128
-rw------- 1 ntopng ntopng 21479 mar 10 11:12 'Cisco Talos Intelligence.txt'
----rw-rw- 1 ntopng ntopng     0 mar 11 08:04 'Cisco Talos Intelligence.txt.new'
-rw------- 1 ntopng ntopng 20444 mar 10 11:12 'Emerging Threats.txt'
----rw-rw- 1 ntopng ntopng     0 mar 11 08:04 'Emerging Threats.txt.new'
-rw------- 1 ntopng ntopng  4744 mar 10 11:12 'Feodo Tracker Botnet C2 IP Blocklist.txt'
----rw-rw- 1 ntopng ntopng     0 mar 11 08:04 'Feodo Tracker Botnet C2 IP Blocklist.txt.new'
-rw------- 1 ntopng ntopng 17826 mar 10 11:12 'NoCoin Filter List.txt'
----rw-rw- 1 ntopng ntopng     0 mar 11 08:04 'NoCoin Filter List.txt.new'
-rw------- 1 ntopng ntopng 51727 mar 10 11:12 'Ransomware Domain Blocklist.txt'
----rw-rw- 1 ntopng ntopng     0 mar 11 08:04 'Ransomware Domain Blocklist.txt.new'
-rw------- 1 ntopng ntopng  2106 mar 10 11:12 'SSLBL Botnet C2 IP Blacklist.txt'
----rw-rw- 1 ntopng ntopng     0 mar 11 08:04 'SSLBL Botnet C2 IP Blacklist.txt.new'
@emanuele-f

This comment has been minimized.

Copy link
Contributor

commented Mar 18, 2019

@maravento in 43bce04 I've fixed the script error. For the permissions issue, please perform the following steps:

  1. systemctl stop ntopng
  2. rm -rf /var/lib/ntopng/category_lists
  3. systemctl start ntopng

I think in your case ntopng was started as root in some previous run and then the permissions got broken. Please start clean with the commands above and let me know.

@maravento

This comment has been minimized.

Copy link
Author

commented Mar 18, 2019

solved. Thanks

@maravento maravento closed this Mar 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.