NtopNG 0.8.1 error
-
On a full install of PfSense 2.2.4-RELEASE (amd64). Just upgraded the NtopNG package to 0.8.1 and now get the error shown below every time I visit the Dashboard. The fix?
Crash report begins. Anonymous machine information:
amd64
10.1-RELEASE-p15
FreeBSD 10.1-RELEASE-p15 #0 c5ab052(releng/10.1)-dirty: Sat Jul 25 20:20:58 CDT 2015 root@pfs22-amd64-builder:/usr/obj.amd64/usr/pfSensesrc/src/sys/pfSense_SMP.10Crash report details:
PHP Errors:
[10-Oct-2015 10:30:28 America/Los_Angeles] PHP Fatal error: Cannot redeclare ntopng_update_geoip() (previously declared in /etc/inc/pkg-utils.inc(699) : eval()'d code:127) in /usr/local/pkg/ntopng.inc on line 290 -
Same problem here. Did you fixed it ?
-
Kindof, a work-around. Added to cron on a weekly schedule the following;
cd /usr/pbi/ntopng-amd64/local/share/ntopng/httpdocs/geoip;fetch http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz;fetch http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz;fetch http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz;fetch http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz;gunzip -f GeoLiteCity.dat.gz GeoLiteCityv6.dat.gz GeoIPASNum.dat.gz GeoIPASNumv6.dat.gz;
I see there is a 0.8.2 pkg upgrade that may fix this. I'll try upgrading this weekend.
-
It's not redeclared anywhere. And it's not on line 290 either, never has been.
https://github.com/pfsense/pfsense-packages/blob/master/config/ntopng/ntopng.inc#L263
Uninstall and reinstall the package, god knows what crappy mixture of things you have there.
-
Make that two crappy mixtures the package installer created.