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

Ntopng crashing #5772

Closed
olmanolsztyn opened this issue Aug 17, 2021 · 22 comments
Closed

Ntopng crashing #5772

olmanolsztyn opened this issue Aug 17, 2021 · 22 comments
Assignees
Labels

Comments

@olmanolsztyn
Copy link

After last update ntopng crashes.
Before crash there are logs:
17/Aug/2021 11:15:14 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][...local/share/ntopng/scripts/lua/modules/locales_utils.lua:45: attempt to call a string value (local 'chunk')]
17/Aug/2021 11:16:04 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/timeseries.lua][attempt to call a userdata value]
17/Aug/2021 11:18:01 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/notifications.lua][/usr/local/share/ntopng/scripts/lua/modules/dkjson.lua:397: bad argument #2 to 'strfind' (string expected, got no value)]
17/Aug/2021 11:18:05 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][/usr/local/share/ntopng/scripts/lua/modules/i18n/i18n.lua:56: i18n.load requires a non-empty string or table on its en.internals.flow_calls_stats. Got flow.lua Calls Stats (a string value).]
17/Aug/2021 11:18:06 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/housekeeping.lua][attempt to index a function value]
17/Aug/2021 11:19:01 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][...local/share/ntopng/scripts/lua/modules/locales_utils.lua:45: attempt to call a string value (local 'chunk')]
17/Aug/2021 11:24:07 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][attempt to concatenate a userdata value]
17/Aug/2021 11:26:06 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][/usr/local/share/ntopng/scripts/callbacks/system/second.lua:29: module 'ts_utils_core' not found:@/usr/local/share/ntopng/scripts/lua/modules/timeseries/ts_utils_core.lua]
17/Aug/2021 11:37:01 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/timeseries.lua][...local/share/ntopng/scripts/lua/modules/locales_utils.lua:45: attempt to call a string value (local 'chunk')]
17/Aug/2021 11:39:03 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][/usr/local/share/ntopng/scripts/lua/modules/i18n/i18n.lua:23: bad argument #3 to 'gsub' (number expected, got no value)]
17/Aug/2021 11:40:10 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua:23: module 'lua_trace' not found:@/usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua]
17/Aug/2021 11:40:16 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/timeseries.lua][/usr/local/share/ntopng/scripts/lua/modules/ntop_utils.lua:275: object length is not an integer]
17/Aug/2021 11:40:21 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][.../ntopng/scripts/lua/modules/timeseries/ts_utils_core.lua:139: module 'rrd' not found:@/usr/local/share/ntopng/scripts/lua/modules/timeseries/drivers/rrd.lua]

version:
Version: 4.3.210817 [Enterprise/Professional build]
Built on: FreeBSD 12.2
Edition: Enterprise M

@olmanolsztyn
Copy link
Author

After restart in addition there is info like on the screenshot:

ntopng_interface

@olmanolsztyn
Copy link
Author

Another log before crash:
17/Aug/2021 12:55:59 [get_check_config.lua:44] ERROR: Unknown user script: syn_flood_victim

@olmanolsztyn
Copy link
Author

Another logs before crash:
17/Aug/2021 15:13:00 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/discover.lua][...ocal/share/ntopng/scripts/lua/modules/discover_utils.lua:288: attempt to concatenate a nil value (local 'ifid')]
17/Aug/2021 15:13:00 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/timeseries.lua][/usr/local/share/ntopng/scripts/lua/modules/ntop_utils.lua:279: bad argument #2 to 'sub' (number expected, got no value)]
17/Aug/2021 15:14:00 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/discover.lua][...ocal/share/ntopng/scripts/lua/modules/discover_utils.lua:288: attempt to concatenate a nil value (local 'ifid')]

@MatteoBiscosi
Copy link
Member

hi @olmanolsztyn is ntopng going to crash just randomly after a restart or do you do something specific before it crashes?
Regarding the last screen you added, it's correct this way, in this way users are able to understand when the data are going to be shown up in the web gui after a restart

@olmanolsztyn
Copy link
Author

olmanolsztyn commented Aug 18, 2021

It crashed randomly.
Yesterday i disabled some alert checks and restart server. Didn't crash so far.
Didn't make any ntopng configuration changes in ntopng.conf.

@MatteoBiscosi
Copy link
Member

MatteoBiscosi commented Aug 18, 2021

alright, let me know if it crashes again. Do you remember which are the checks you disabled?

@olmanolsztyn
Copy link
Author

As i remember it was Remote Connection, SYN Flood Victim Alert, Blacklisted Flow, Remote to Local Insecure Protocol.

@MatteoBiscosi
Copy link
Member

Sorry @olmanolsztyn but I was unable to reproduce your crash, please let me know first if with those alerts disabled the problem still remains or not and if it's going to crash again please send me the entire logs of ntopng. If you prefer, you can drop an email to my address, [email protected]

@MatteoBiscosi
Copy link
Member

@olmanolsztyn if you have the possibility, could you please re-add them one by one and let me know with which checks enabled it crashes?

@olmanolsztyn
Copy link
Author

Server crashed again and i got log:
19/Aug/2021 05:59:01 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/timeseries.lua][attempt to index a function value]

@olmanolsztyn
Copy link
Author

olmanolsztyn commented Aug 19, 2021

Suddenly ntopng stopped storing flows after i went System > Health > Interface > tcp://127.0.0.1:5000c

@simonemainardi
Copy link
Contributor

@olmanolsztyn if you have the possibility, could you please re-add them one by one and let me know with which checks enabled it crashes?

@olmanolsztyn did you enable checks as suggested by matteo to trigger the crash?

@olmanolsztyn
Copy link
Author

I did not make it. Ntopng process stopped working eariler.

@olmanolsztyn
Copy link
Author

In addition i updated today ntopng to ntopng Enterprise M v.5.1.210819 (FreeBSD 12.2) version.

@MatteoBiscosi
Copy link
Member

Hi @olmanolsztyn do you perhaps have the top sites enabled? (settings->applications->top visited sites)

@olmanolsztyn
Copy link
Author

Yes i have enabled.

@MatteoBiscosi
Copy link
Member

alright soon i'm going to release a fix, those were probably the crashing problem, I happened to encounter it randomly before, so please be patience, the fix is already on testing, I'll push it really soon so in the afternoon you should have the new build, please update and let me know if it continues crashing after the new build is released

@MatteoBiscosi
Copy link
Member

Hi @olmanolsztyn any news?

@olmanolsztyn
Copy link
Author

Looks like problem is solved. Didn't crash so far.

@MatteoBiscosi
Copy link
Member

Great! I'm going to close the ticket, please re-open it or contact us if the issue persists

@olmanolsztyn
Copy link
Author

Ntopng after update and enabling top visited sites crashed again.

@olmanolsztyn
Copy link
Author

Another crash with disable top visited sites
Below log before crash:
28/Aug/2021 10:32:01 [LuaEngine.cpp:560] WARNING: Script failure [/usr/local/share/ntopng/scripts/callbacks/system/second.lua][attempt to index a function value]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants