OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: sparticle on November 08, 2020, 05:07:27 PM

Title: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: sparticle on November 08, 2020, 05:07:27 PM
I need some help with this implementation.

Following a 20.7 upgrade earlier I cannot get redis or ntopng to start. Log is full of these lines. If I reboot and watch it start then redis connection fails on startup of opnsense server.

2020-11-08T16:03:39 root[11641] /usr/local/etc/rc.d/ntopng: WARNING: failed to start ntopng
2020-11-08T16:03:39 ntopng[78906] [Redis.cpp:150] ERROR: to specify a redis server other than the default
2020-11-08T16:03:39 ntopng[78906] [Redis.cpp:149] ERROR: Please start it and try again or use -r
2020-11-08T16:03:39 ntopng[78906] [Redis.cpp:148] ERROR: ntopng requires redis server to be up and running
2020-11-08T16:03:38 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:35 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:33 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:30 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:28 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:25 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:23 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:20 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:18 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:15 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:13 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:10 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:07 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:05 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:02 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out]
2020-11-08T16:03:00 ntopng[78906] [Redis.cpp:99] ERROR: Connection error [Operation timed out


Any help appreciated please.

Cheers
Spart
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: mimugmail on November 08, 2020, 06:13:31 PM
Did you set a password for redis?
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: sparticle on November 08, 2020, 06:35:17 PM
Quote from: mimugmail on November 08, 2020, 06:13:31 PM
Did you set a password for redis?

Was working perfectly before upgrade. There is no password set in the Gui that I can see.

Cheers
Spart
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: mimugmail on November 08, 2020, 06:41:47 PM
What was the previous running version? 20.7?
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: sparticle on November 09, 2020, 11:29:01 AM
I don't recall. Whatever it was late September when it was last updated.

Cheers
Spart
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: mimugmail on November 09, 2020, 11:49:22 AM
I'm on 20.7.4 and can start it successfully.

Maybe you have to reset Redis Cache?
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: sparticle on November 09, 2020, 12:07:51 PM
I had to remove the redis db and then reset the service. After that redis started then I could start ntopng.

cd /var/db/redis
rm redis.rdb

Restart redis service from gui
Restart ntopng service from gui

Seems to be up and stable.

Hope this helps someone else.

Cheers
Spart
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: rolsch on December 31, 2020, 02:42:57 PM
Hi,
is there a timeline for an upgrade/update to ntopng 4.2.0?
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: mimugmail on December 31, 2020, 11:29:53 PM
This depends on FreeBSD upstream maintainer
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: TheLinuxGuy on January 19, 2021, 01:37:18 AM
I had this same issue, had to delete /var/db/redis in order for redis to start.
Title: Re: Following 20.7.4 upgrade redis and NTOPNG will not start
Post by: mimugmail on January 19, 2021, 08:57:57 AM
Quote from: TheLinuxGuy on January 19, 2021, 01:37:18 AM
I had this same issue, had to delete /var/db/redis in order for redis to start.

THere's also a reset button in OPNsense UI