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

Lua_error on index.lua #330

Closed
hvdbrand opened this issue Dec 25, 2015 · 3 comments
Closed

Lua_error on index.lua #330

hvdbrand opened this issue Dec 25, 2015 · 3 comments

Comments

@hvdbrand
Copy link

Hi,

I get the following error when connecting to my page.

HTTP/1.1 500 Internal server error Content-Type: text/html Connection: close Script "/usr/share/ntopng/scripts/lua/index.lua" returned an error:

/usr/share/ntopng/scripts/lua/modules/lua_utils.lua:14: bad argument #1 to 'pairs' (table expected, got nil)

I see a similar error in /var/log/messages/ :

Dec 20 07:50:59 server ntopng: [src/Lua.cpp:4478] WARNING: Script failure [/usr/share/ntopng/scripts/callbacks/second.lua][/usr/share/ntopng/scripts/lua/modules/lua_utils.lua:14: bad argument #1 to 'pairs' (table expected, got nil)]

Results from ntopng --version:

v.2.2.151211 [Professional Edition]
GIT rev: 2.2-stable:b96d564541333833293ce9537ebe598ffece5c3a:20151211
Pro rev: r524
System Id: 8D8BA7399206AAF2
Built on: CentOS Linux release 7.1.1503 (Core)

I use the ntop centos-stable repo at http://www.nmon.net/centos-stable

@simonemainardi
Copy link
Contributor

I've just tested with 2.3.151229 - Professional Edition and it works just fine on CentOS Linux release 7.1.1503 (Core)

image

The exception you have reported suggests me that interface statistics are not propagated to Lua. Is ntopng running with enough privileges?

Also the link you have enclosed is 404. Please see this: http://packages.ntop.org/centos/ and consider moving to the nightly build.

@hvdbrand
Copy link
Author

hvdbrand commented Jan 2, 2016

Thanks for the reply.
The error I was experiencing in the logfile arose after an update via yum.
After stopping and restart the error in the logfile was gone.

I switched to the nightly build as suggested.
ntopng works fine on port 3000.
I noticed that the configuration files changed and had a time step of dec 11.
As a result SSH was disabled.
Changing this in the configuration file everything works as expected.

@hvdbrand hvdbrand closed this as completed Jan 2, 2016
@lemmy04
Copy link

lemmy04 commented Dec 25, 2016

Having the same problem, running ntopng 2.4.0 built on openSUSE Leap 42.2... any advice?

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

No branches or pull requests

3 participants