NtopNG Lua errors



  • I'm giving ntopng another spin, and am seeing a number of errors from a fresh install of 0.8.1.  Interestingly, while /usr/local/lib/lua/5.1/ doesn't exist, the files being reported as not found in /usr/local/share/ntopng/scripts/lua/modules/ are in fact present.

    Suggestions welcomed.

    
    Sep 21 09:48:52	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua:4: module 'lua_trace' not found: no field package.preload['lua_trace'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua' no file './lua_trace.lua' no file '/usr/local/share/luajit-2.0.3/lua_trace.lua' no file '/usr/local/share/lua/5.1/lua_trace.lua' no file '/usr/local/share/lua/5.1/lua_trace/init.lua' no file './lua_trace.so' no file '/usr/local/lib/lua/5.1/lua_trace.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:48:52	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:9: module 'flow_utils' not found: no field package.preload['flow_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua' no file './flow_utils.lua' no file '/usr/local/share/luajit-2.0.3/flow_utils.lua' no file '/usr/local/share/lua/5.1/flow_utils.lua' no file '/usr/local/share/lua/5.1/flow_utils/init.lua' no file './flow_utils.so' no file '/usr/local/lib/lua/5.1/flow_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:48:35	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'lua_trace' from file '/usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua': cannot open /usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua: No such file or directory]
    Sep 21 09:47:56	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua:4: module 'lua_trace' not found: no field package.preload['lua_trace'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua' no file './lua_trace.lua' no file '/usr/local/share/luajit-2.0.3/lua_trace.lua' no file '/usr/local/share/lua/5.1/lua_trace.lua' no file '/usr/local/share/lua/5.1/lua_trace/init.lua' no file './lua_trace.so' no file '/usr/local/lib/lua/5.1/lua_trace.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:47:29	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'lua_utils' from file './lua_utils.lua': cannot open ./lua_utils.lua: No such file or directory]
    Sep 21 09:46:09	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:8: module 'lua_utils' not found: no field package.preload['lua_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua' no file './lua_utils.lua' no file '/usr/local/share/luajit-2.0.3/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils/init.lua' no file './lua_utils.so' no file '/usr/local/lib/lua/5.1/lua_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:45:06	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'flow_utils' from file '/usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua': cannot open /usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua: No such file or directory]
    Sep 21 09:43:39	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:9: module 'flow_utils' not found: no field package.preload['flow_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua' no file './flow_utils.lua' no file '/usr/local/share/luajit-2.0.3/flow_utils.lua' no file '/usr/local/share/lua/5.1/flow_utils.lua' no file '/usr/local/share/lua/5.1/flow_utils/init.lua' no file './flow_utils.so' no file '/usr/local/lib/lua/5.1/flow_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:41:16	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'flow_utils' from file '/usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua': cannot open /usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua: No such file or directory]
    Sep 21 09:39:27	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:8: module 'lua_utils' not found: no field package.preload['lua_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua' no file './lua_utils.lua' no file '/usr/local/share/luajit-2.0.3/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils/init.lua' no file './lua_utils.so' no file '/usr/local/lib/lua/5.1/lua_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:38:42	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:8: module 'lua_utils' not found: no field package.preload['lua_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua' no file './lua_utils.lua' no file '/usr/local/share/luajit-2.0.3/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils/init.lua' no file './lua_utils.so' no file '/usr/local/lib/lua/5.1/lua_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:38:08	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'flow_utils' from file '/usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua': cannot open /usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua: No such file or directory]
    Sep 21 09:36:52	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua:4: module 'lua_trace' not found: no field package.preload['lua_trace'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua' no file './lua_trace.lua' no file '/usr/local/share/luajit-2.0.3/lua_trace.lua' no file '/usr/local/share/lua/5.1/lua_trace.lua' no file '/usr/local/share/lua/5.1/lua_trace/init.lua' no file './lua_trace.so' no file '/usr/local/lib/lua/5.1/lua_trace.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:36:40	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:9: module 'flow_utils' not found: no field package.preload['flow_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/flow_utils.lua' no file './flow_utils.lua' no file '/usr/local/share/luajit-2.0.3/flow_utils.lua' no file '/usr/local/share/lua/5.1/flow_utils.lua' no file '/usr/local/share/lua/5.1/flow_utils/init.lua' no file './flow_utils.so' no file '/usr/local/lib/lua/5.1/flow_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:36:40	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'lua_utils' from file './lua_utils.lua': cannot open ./lua_utils.lua: No such file or directory]
    Sep 21 09:36:25	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][error loading module 'lua_trace' from file '/usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua': cannot open /usr/local/share/ntopng/scripts/lua/modules/lua_trace.lua: No such file or directory]
    Sep 21 09:36:25	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][/usr/local/share/ntopng/scripts/lua/get_flow_data.lua:8: module 'lua_utils' not found: no field package.preload['lua_utils'] no file '/usr/local/share/ntopng/scripts/lua/modules/lua_utils.lua' no file './lua_utils.lua' no file '/usr/local/share/luajit-2.0.3/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils.lua' no file '/usr/local/share/lua/5.1/lua_utils/init.lua' no file './lua_utils.so' no file '/usr/local/lib/lua/5.1/lua_utils.so' no file '/usr/local/lib/lua/5.1/loadall.so']
    Sep 21 09:35:09	ntopng: [Lua.cpp:2775] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/get_flow_data.lua][cannot open /usr/local/share/ntopng/scripts/lua/get_flow_data.lua: No such file or directory]
    
    

  • Banned

    Suggestion: Ignore those and wait for 2.3.x - not fixable. There's now even a hackish symlink to /usr/local under the PBI directory structure. Hopeless. PBI packaging format is broken by design and FUBARed.


Log in to reply