On Mon, Apr 13, 2009 at 18:26, Kurt Buff <[email protected]> wrote:
>
> I'm putting together a new ntop installation (well, sorta new - it's
> FreeBSD 7.1Release, with ntop 3.3_4 out of the base ports tree) and
> can't start the darn thing. I keep getting the following error:
>
> Apr 13 17:57:11 znetmon ntop[654]: [admin.c:967]
> **FATAL_ERROR** No password for admin user - please re-run ntop in
> non-daemon mode first
>
> But, I've done that, several times:
>
> /usr/local/bin/ntop -u ntop -A
>
> Whereupon it prompts for the password, and I type it in, and it looks
> happy, but then
>
> '/usr/local/etc/rc.d/ntop start'
>
> yields the same message in /var/log/messages, every time.
>
> I've perused the FAQ and man pages multiple times, and I have another
> ntop running just fine, for many moons now.
>
> Any hints?
>
> I am updating the ports tree right now, and will get a more current
> version of ntop installed soonest, but this is a bit weird.
>
>
> Thanks,
>
> Kurt
OK - this is getting more stupid.
I'm finding that ntop isn't using /etc/rc.conf for its startup, nor is
it finding ntop.conf, whether I place it in /usr/local/etc/ or
/usr/local/etc/ntop/ or /etc or even /etc/rc.d
No matter what, I get this output when trying to set the password:
znetmon# /usr/local/bin/ntop -u ntop -A
Mon Apr 20 11:55:41 2009 NOTE: Interface merge enabled by default
Mon Apr 20 11:55:41 2009 Initializing gdbm databases
Mon Apr 20 11:55:41 2009 **ERROR** ....open of
/var/db/ntop/prefsCache.db failed: File open error
Mon Apr 20 11:55:41 2009 Possible solution: please use '-P <directory>'
Mon Apr 20 11:55:41 2009 **FATAL_ERROR** GDBM open failed, ntop
shutting down...
Mon Apr 20 11:55:41 2009 CLEANUP[t688918784]: ntop caught signal 2 [state=2]
Mon Apr 20 11:55:41 2009 ntop is now quitting...
I've also tried:
/usr/local/bin/ntop -u nobody -A -P /home/ntop/databases
and
/usr/local/bin/ntop -u ntop -A -P /home/ntop/databases
These returned good results, but I get the same errors as below in my
original message when trying /usr/local/etc/rc.d/ntop start
I've also tried updating to ntop 3.3.8, which didn't change anything.
Kurt
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop