Bandwidth monitor - Page "/" was not found

NethServer Version: 7.3 final
Module: Bandwidth monitor

Unit stopped working.
First, I noted only green interface and it worked.
After I said green and red interfaces address 192.168.0.1:3000 shows an error: Page “/” was not found
And if we include in the authorization settings, the following error: Page “/lua/login.lua” was not found

How to fix?

@islipfd19 @jitkian @dnutan @Hunv @firsttiger @ssabbath can you help Andy? Did you already try NethServer 7?

wierd, from where are you trying to acess? from red network or from green?

how are your firewall rules?

1 Like

After initial installation, everything worked. Then I tried the red zone and the settings stated noted both interfaces (red and green) and then stopped working.

Do you see any error on the logs, or with the command:

systemctl -l status ntopng

Is redis service running?

# systemctl -l status ntopng
● ntopng.service - Start/stop ntopng program
   Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2017-02-01 21:53:25 MSK; 1 day 10h ago
 Main PID: 23230 (ntopng)
   CGroup: /system.slice/ntopng.service
           └─23230 /usr/bin/ntopng /etc/ntopng/ntopng.conf

Feb 01 21:53:24 ns.iv.lan systemd[1]: Starting Start/stop ntopng program...
Feb 01 21:53:25 ns.iv.lan ntopng[23223]: Starting ntopng: [  OK  ]
Feb 01 21:53:25 ns.iv.lan systemd[1]: Started Start/stop ntopng program.


# systemctl -l status redis
● redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)                                       
  Drop-In: /etc/systemd/system/redis.service.d                                                                                    
           └─limit.conf
   Active: failed (Result: exit-code) since Wed 2017-02-01 21:53:26 MSK; 1 day 10h ago
 Main PID: 703 (code=exited, status=0/SUCCESS)

Jan 31 18:26:59 ns.iv.lan systemd[1]: Started Redis persistent key-value database.
Jan 31 18:26:59 ns.iv.lan systemd[1]: Starting Redis persistent key-value database...
Feb 01 21:53:26 ns.iv.lan redis-shutdown[23285]: Could not connect to Redis at 127.0.0.1:6379: Connection refused
Feb 01 21:53:26 ns.iv.lan systemd[1]: redis.service: control process exited, code=exited status=1
Feb 01 21:53:26 ns.iv.lan systemd[1]: Unit redis.service entered failed state.
Feb 01 21:53:26 ns.iv.lan systemd[1]: redis.service failed.

Feb 01 21:53:26 ns.iv.lan systemd[1]: redis.service: control process exited, code=exited status=1
Feb 01 21:53:26 ns.iv.lan systemd[1]: Unit redis.service entered failed state.
Feb 01 21:53:26 ns.iv.lan systemd[1]: redis.service failed.

here is your problem: redis fails

2 Likes

And?

# systemctl start redis
# systemctl status redis
● redis.service - Redis persistent key-value database
   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/redis.service.d
           └─limit.conf
   Active: active (running) since Fri 2017-02-03 20:56:10 MSK; 8s ago
 Main PID: 16247 (redis-server)
   CGroup: /system.slice/redis.service
           └─16247 /usr/bin/redis-server 127.0.0.1:6379

Feb 03 20:56:10 ns.iv.lan systemd[1]: Started Redis persistent key-value database.
Feb 03 20:56:10 ns.iv.lan systemd[1]: Starting Redis persistent key-value database...

Now the page does not open at all. Opens an empty tab in the browser and endlessly spinning load indicator.

# systemctl restart ntopng
Job for ntopng.service failed because the control process exited with error code. See "systemctl status ntopng.service" and "journalctl -xe" for details.


# systemctl status ntopng
● ntopng.service - Start/stop ntopng program
   Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-02-03 22:01:22 MSK; 5min ago
  Process: 16462 ExecStop=/etc/systemd/scripts/ntopng stop (code=exited, status=0/SUCCESS)
  Process: 16568 ExecStart=/etc/systemd/scripts/ntopng start (code=exited, status=0/SUCCESS)
 Main PID: 16575 (ntopng)
   CGroup: /system.slice/ntopng.service
           └─16575 /usr/bin/ntopng /etc/ntopng/ntopng.conf

Feb 03 22:03:19 ns.iv.lan ntopng[16575]: 1486148599|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:03:19 ns.iv.lan ntopng[16575]: 1486148599|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:03:24 ns.iv.lan ntopng[16575]: 1486148604|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:03:29 ns.iv.lan ntopng[16575]: 1486148609|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:03:56 ns.iv.lan ntopng[16575]: 1486148636|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:05:05 ns.iv.lan ntopng[16575]: 1486148705|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:05:27 ns.iv.lan ntopng[16575]: 1486148727|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:05:32 ns.iv.lan ntopng[16575]: 1486148732|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:06:48 ns.iv.lan ntopng[16575]: 1486148808|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Feb 03 22:06:48 ns.iv.lan ntopng[16575]: 1486148808|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192...
Hint: Some lines were ellipsized, use -l to show in full.

I’m reboot server…, after…

# systemctl status ntopng
● ntopng.service - Start/stop ntopng program
   Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-02-03 22:17:09 MSK; 1min 13s ago
  Process: 662 ExecStart=/etc/systemd/scripts/ntopng start (code=exited, status=0/SUCCESS)
 Main PID: 772 (ntopng)
   CGroup: /system.slice/ntopng.service
           └─772 /usr/bin/ntopng /etc/ntopng/ntopng.conf

Feb 03 22:17:02 ns.iv.lan systemd[1]: Starting Start/stop ntopng program...
Feb 03 22:17:09 ns.iv.lan ntopng[662]: Starting ntopng: Unable to start ntopng[FAILED]
Feb 03 22:17:09 ns.iv.lan systemd[1]: Started Start/stop ntopng program.
Feb 03 22:17:13 ns.iv.lan ntopng[772]: [main.cpp:261] ERROR: Unable to store PID in file /var/run/ntopng/ntopng.pid
Feb 03 22:17:28 ns.iv.lan ntopng[772]: 1486149448|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192.168.0.23&ifname=enp1s0'>192.168.0.23</A> &g...
Feb 03 22:18:00 ns.iv.lan ntopng[772]: 1486149480|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192.168.0.23&ifname=enp1s0'>192.168.0.23</A> &g...
Hint: Some lines were ellipsized, use -l to show in full.

I mkdir /var/run/ntopng, reboot…

# systemctl status ntopng
● ntopng.service - Start/stop ntopng program
   Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-02-03 22:20:27 MSK; 48s ago
  Process: 683 ExecStart=/etc/systemd/scripts/ntopng start (code=exited, status=0/SUCCESS)
 Main PID: 779 (ntopng)
   CGroup: /system.slice/ntopng.service
           └─779 /usr/bin/ntopng /etc/ntopng/ntopng.conf

Feb 03 22:20:20 ns.iv.lan systemd[1]: Starting Start/stop ntopng program...
Feb 03 22:20:27 ns.iv.lan ntopng[683]: Starting ntopng: Unable to start ntopng[FAILED]
Feb 03 22:20:27 ns.iv.lan systemd[1]: Started Start/stop ntopng program.
Feb 03 22:20:30 ns.iv.lan ntopng[779]: [main.cpp:261] ERROR: Unable to store PID in file /var/run/ntopng/ntopng.pid
Feb 03 22:20:42 ns.iv.lan ntopng[779]: 1486149642|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192.168.0.210&ifname=enp1s0'>192.168.0.210</A> ...
Feb 03 22:20:44 ns.iv.lan ntopng[779]: 1486149644|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192.168.0.210&ifname=enp1s0'>192.168.0.210</A> ...
Feb 03 22:21:04 ns.iv.lan ntopng[779]: 1486149662|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192.168.0.210&ifname=enp1s0'>192.168.0.210</A> ...
Hint: Some lines were ellipsized, use -l to show in full.

What nonsense? I created a directory /var/run/ntopng, where did he go?

I again create /var/run/ntopng

reboot server

# systemctl status ntopng
● ntopng.service - Start/stop ntopng program
   Loaded: loaded (/etc/systemd/system/ntopng.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-02-03 22:25:53 MSK; 9min ago
  Process: 1093 ExecStop=/etc/systemd/scripts/ntopng stop (code=exited, status=0/SUCCESS)
  Process: 1262 ExecStart=/etc/systemd/scripts/ntopng start (code=exited, status=0/SUCCESS)
 Main PID: 1275 (ntopng)
   CGroup: /system.slice/ntopng.service
           └─1275 /usr/bin/ntopng /etc/ntopng/ntopng.conf

Feb 03 22:31:52 ns.iv.lan ntopng[1275]: 1486150312|1|3|10|Probing or server down: <A HREF='/lua/host_details.lua?host=192.168.0.23&ifname=enp1s0'>test.iv.lan</A>...
Hint: Some lines were ellipsized, use -l to show in full.

Devilry some!