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

Web-Frontend not accessible any more in community edition #4903

Closed
closertotheedge opened this issue Jan 13, 2021 · 17 comments
Closed

Web-Frontend not accessible any more in community edition #4903

closertotheedge opened this issue Jan 13, 2021 · 17 comments

Comments

@closertotheedge
Copy link

ntopng web-frontend not accessible after 10 minutes when going from enterprise to community edition. NO problems during first 10 minutes!

Google Chrome says "ERR_TOO_MANY_REDIRECTS"

tail -f /var/log/ntopng.log gives a lot of messages like:

Jan 13 10:11:37 rpi-ntopng ntopng: [LuaEngine.cpp:1159] WARNING: Script failure [/usr/share/ntopng/scripts/lua/http_status_code.lua][error loading module 'alert_iec_invalid_transition' from file '/var/lib/ntopng/plugins1/alert_definitions/alert_iec_invalid_transition.lua':#12#011...gins1/alert_definitions/alert_iec_invalid_transition.lua:1: unexpected symbol near '<\135>']

ntong running on raspi4 2gb, invoked by fritzdump.sh.

ntopng package is ntopng_4.3.210111-12741_armhf.deb. Same problem when downgrading to ntopng_4.3.210110-12724_armhf.deb.

@simonemainardi
Copy link
Contributor

try and add option --community if you want to run it in community version

@closertotheedge
Copy link
Author

I added --community to fritzdump.sh and the error messages are gone. So the problem is fixed for now.
Nevertheless I think it is a strange behaviour because old ntopng-versions worked flawlessly without this argument for months, going automatically and without errors after 10 minutes from enterprise to community edition...

@rreiner
Copy link

rreiner commented Jan 18, 2021

I have this problem too. It worked perfectly without the --community flag on all previous versions, but the web GUI now becomes inaccessible after 10 minutes.

@simonemainardi
Copy link
Contributor

I am unable to reproduce reported behavior. @rreiner are you also on armhf? Please show me the output of ntopng --version

@rreiner
Copy link

rreiner commented Jan 19, 2021

~$ ntopng --version
v.4.3.210117 [Enterprise/Professional/Embedded build]
GIT rev: dev:406f933f207b53f74c525c4a41f87a30087d80c8:20210117
Pro rev: r3506
Built on: Raspbian GNU/Linux 10 (buster)
System Id: FD51A59B499602D2
Platform: armv7l
Edition: Enterprise Embedded
License Type: Time-Limited [Empty license file]
Validity: Until Tue Jan 19 12:23:59 2021

@simonemainardi
Copy link
Contributor

Thanks for providing this. Are you using it with fritzdump as well?

@rreiner
Copy link

rreiner commented Jan 20, 2021

No, I'm not using fritzdump

@mihakralj
Copy link

mihakralj commented Jan 20, 2021

have the same issue. The --community flag works - for about an hour or so. But even with --community flag it goes into redirect loop after about an hour or so and then ntopng service needs to be restarted to make GUI operational again.

admin@OPNsense:~ % ntopng --version
v.4.3.210120    [Enterprise/Professional build]
GIT rev:        dev:80ed58464e3570d144620a502e69f8723b8bceab:20210120
Pro rev:        r3509
Built on:       FreeBSD 12.2
System Id:      7B598744920BAB21
Platform:       amd64
Edition:        Enterprise L
License Type:   Time-Limited [Empty license file]
Validity:       Until Wed Jan 20 15:30:01 2021

@simonemainardi
Copy link
Contributor

@mihakralj and you get the same errors such as

unexpected symbol near '<\135>'

?

@mihakralj
Copy link

here is the bottom of ntopng.log at the time of failure:
21/Jan/2021 14:05:10 [LuaEngine.cpp:391] WARNING: Script failure [/var/db/ntopng/plugins1/alert_definitions/alert_iec_invalid_transition.lua][...gins1/alert_definitions/alert_iec_invalid_transition.lua:1: unexpected symbol near '<\135>'] 21/Jan/2021 14:05:10 [AlertCheckLuaEngine.cpp:73] WARNING: Script failure[/usr/local/share/ntopng/scripts/callbacks/interface/network.lua] [.../local/share/ntopng/scripts/lua/modules/alert_consts.lua:353: module 'alert_iec_invalid_transition' not found:] 21/Jan/2021 14:05:10 [LuaEngine.cpp:391] WARNING: Script failure [/var/db/ntopng/plugins1/alert_definitions/alert_iec_invalid_transition.lua][...gins1/alert_definitions/alert_iec_invalid_transition.lua:1: unexpected symbol near '<\135>'] 21/Jan/2021 14:05:10 [AlertCheckLuaEngine.cpp:73] WARNING: Script failure[/usr/local/share/ntopng/scripts/callbacks/interface/host.lua] [.../local/share/ntopng/scripts/lua/modules/alert_consts.lua:353: module 'alert_iec_invalid_transition' not found:] 21/Jan/2021 14:05:10 [AlertCheckLuaEngine.cpp:73] WARNING: Script failure[/usr/local/share/ntopng/scripts/callbacks/interface/host.lua] [error loading module 'alert_iec_invalid_transition' from file '/var/db/ntopng/plugins1/alert_definitions/alert_iec_invalid_transition.lua': ...gins1/alert_definitions/alert_iec_invalid_transition.lua:1: unexpected symbol near '<\135>'] 21/Jan/2021 14:05:10 [AlertCheckLuaEngine.cpp:73] WARNING: Script failure[/usr/local/share/ntopng/scripts/callbacks/interface/host.lua] [error loading module 'alert_iec_invalid_transition' from file '/var/db/ntopng/plugins1/alert_definitions/alert_iec_invalid_transition.lua': ...gins1/alert_definitions/alert_iec_invalid_transition.lua:1: unexpected symbol near '<\135>'] 21/Jan/2021 14:05:14 [LuaEngine.cpp:1159] WARNING: Script failure [/usr/local/share/ntopng/scripts/lua/rest/v1/get/interface/data.lua][error loading module 'alert_iec_invalid_transition' from file '/var/db/ntopng/plugins1/alert_definitions/alert_iec_invalid_transition.lua': ...gins1/alert_definitions/alert_iec_invalid_transition.lua:1: unexpected symbol near '<\135>']

simonemainardi added a commit that referenced this issue Jan 25, 2021
@simonemainardi
Copy link
Contributor

Issue should be resolved. New arm builds are in progress and will be ready in a couple of hours from now. Please, update, and let me know. Thanks for your support in troubleshooting this.

@mihakralj
Copy link

just FYI, my ntopng runs on freeBSD on x86 Intel architecture...

@closertotheedge
Copy link
Author

Thanks for the new version. I can confirm that the problem is solved with Version 4.3.210125-12909 / "ntopng / Embedded v.4.3.210125 (Raspbian GNU/Linux 10 (buster))".

What I also noticed is that the German web-frontend has some translation errors. For example "Upgrade to Pro/Enterprise version" in English now gives "Upgralang.zu lang. Professional Version" in German which is complete nonsense.

@simonemainardi
Copy link
Contributor

@closertotheedge thanks for reporting.

As per the german translation, you may want to check the lang file out, fix it, and send a pull request. That would be great.

This is the file: https://github.com/ntop/ntopng/blob/dev/scripts/locales/de.lua

Thank you.

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

No branches or pull requests

4 participants