The Wayback Machine - https://web.archive.org/web/20230221173050/https://github.com/ntop/ntopng/issues/7097
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

LuaEngine error crashed ntopng GUI #7097

Closed
sp-heinrichsra opened this issue Jan 12, 2023 · 3 comments
Closed

LuaEngine error crashed ntopng GUI #7097

sp-heinrichsra opened this issue Jan 12, 2023 · 3 comments
Assignees
Labels
Ready to Test a feedback is needed on a proposal or implementation

Comments

@sp-heinrichsra
Copy link

sp-heinrichsra commented Jan 12, 2023

Environment:

  • OS name: Ubuntu
  • OS version: 20.04.5 LTS
  • Architecture: 5.4.0-136-generic x153-Ubuntu SMP Thu Nov 24 15:56:58 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • ntopng version/revision: ntopng Enterprise XL v.5.5.230112

What happened:
After a while (seems to random) the ntopng GUI crashed with the following error:
ntopng[239968]: 12/Jan/2023 15:31:37 [LuaEngine.cpp:1329] WARNING: Script failure [/usr/share/ntopng/scripts/lua/flows_stats.lua][/usr/share/ntopng/scripts/lua/modules/lua_utils_print.lua:174: attempt to index a nil value (field '?')]

Do a "service ntopng restart" whithout success: immediate crashed again:
ntopng[257409]: 12/Jan/2023 16:13:10 [LuaEngine.cpp:1329] WARNING: Script failure [/usr/share/ntopng/scripts/lua/flows_stats.lua][/usr/share/ntopng/scripts/lua/modules/lua_utils_print.lua:174: attempt to index a nil value (field '?')]

Do a reboot of the server -> Crashed again
12/Jan/2023 16:18:39 [LuaEngine.cpp:1329] WARNING: Script failure [/usr/share/ntopng/scripts/lua/flows_stats.lua][/usr/share/ntopng/scripts/lua/modules/lua_utils_print.lua:174: attempt to index a nil value (field '?')]

How did you reproduce it?
Most likely by choosing the ZMQ Interface in the dropdown of showing the Flows/Live:
ntopng[1346]: 12/Jan/2023 16:15:46 [ZMQCollectorInterface.cpp:263] Collecting flows on tcp://:5557c
ntopng[1346]: 12/Jan/2023 16:15:46 [ZMQCollectorInterface.cpp:263] Collecting flows on tcp://
:5556c

Debug Information:

MatteoBiscosi added a commit that referenced this issue Jan 13, 2023
@MatteoBiscosi
Copy link
Member

Hi @sp-heinrichsra i pushed a possible fix, however i'm not able to reproduce the issue, so please let me know if this patch fixed the issue or not

@MatteoBiscosi MatteoBiscosi self-assigned this Jan 13, 2023
@MatteoBiscosi MatteoBiscosi added In Progress Ready to Test a feedback is needed on a proposal or implementation and removed In Progress labels Jan 13, 2023
@sp-heinrichsra
Copy link
Author

sp-heinrichsra commented Jan 17, 2023 via email

@sp-heinrichsra
Copy link
Author

After some tests I cannot re-produce the error anylonger.
So this issue seems to fixed from my point of view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to Test a feedback is needed on a proposal or implementation
3 participants