Hi!

I'm using Arch Linux with ntop on my router, and it is pretty annoying
that ntop is quitting silently quite often.

$uname -a
Linux jjserver 3.1.5-1-ARCH #1 SMP PREEMPT Sat Dec 10 14:43:09 CET 2011
x86_64 AMD Athlon(tm) II X4 605e Processor AuthenticAMD GNU/Linux


The only message i can get is the following:

Dec 18 14:29:02 jjserver kernel: [54466.036547] ntop[1936]: segfault at
fffffff7 ip 00007f45ff209219 sp 00007f45f3978c20 error 4 in
libc-2.14.1.so[7f45ff192000+17e000]
Dec 18 14:29:02 jjserver kernel: [54466.039895] device ext0 left
promiscuous mode
Dec 18 14:29:02 jjserver kernel: [54466.064655] device int0 left
promiscuous mode
Dec 18 14:29:02 jjserver kernel: [54466.167975] device tap0 left
promiscuous mode

I have to start ntop manually after that.

Another thing is that when i want to restart ntop, i have to do it
twice, since it refuses to start the first time becaus of the following:

Sun Dec 18 14:49:55 2011  NOTE: Interface merge enabled by default
Sun Dec 18 14:49:55 2011  Initializing gdbm databases
Sun Dec 18 14:49:55 2011  Setting administrator password...
Sun Dec 18 14:49:55 2011  Admin password set...
Sun Dec 18 14:49:55 2011  ntop will be started as user nobody
Sun Dec 18 14:49:55 2011  ntop v.4.1.0 (64 bit)
Sun Dec 18 14:49:55 2011  Configured on Nov 22 2011  9:43:44, built on
Nov 22 2011 09:44:42.
Sun Dec 18 14:49:55 2011  Copyright 1998-2011 by Luca Deri <[email protected]>
Sun Dec 18 14:49:55 2011  Get the freshest ntop from http://www.ntop.org/
Sun Dec 18 14:49:55 2011  NOTE: ntop is running from '/usr/bin'
Sun Dec 18 14:49:55 2011  NOTE: (but see warning on man page for the
--instance parameter)
Sun Dec 18 14:49:55 2011  NOTE: ntop libraries are in '/usr/lib'
Sun Dec 18 14:49:55 2011  Initializing ntop
Sun Dec 18 14:49:55 2011  PROTO_INIT: Processing protocol file:
'/var/lib/ntop/ntop.protocols', size: 264
Sun Dec 18 14:49:56 2011  **WARNING** Truncated network size (device
ext0) to 1024 hosts (real netmask 255.255.252.0)
Sun Dec 18 14:49:56 2011  Checking ext0 for additional devices
Sun Dec 18 14:49:56 2011  Resetting traffic statistics for device ext0
Sun Dec 18 14:49:56 2011  Initializing device ext0 (0)
Sun Dec 18 14:49:56 2011  DLT: Device 0 [ext0] is 1, mtu 1514, header 14
Sun Dec 18 14:49:57 2011  Checking int0 for additional devices
Sun Dec 18 14:49:57 2011  Resetting traffic statistics for device int0
Sun Dec 18 14:49:57 2011  Initializing device int0 (1)
Sun Dec 18 14:49:57 2011  DLT: Device 1 [int0] is 1, mtu 1514, header 14
Sun Dec 18 14:49:57 2011  Checking tap0 for additional devices
Sun Dec 18 14:49:57 2011  Resetting traffic statistics for device tap0
Sun Dec 18 14:49:57 2011  Initializing device tap0 (2)
Sun Dec 18 14:49:57 2011  DLT: Device 2 [tap0] is 1, mtu 1514, header 14
Sun Dec 18 14:49:57 2011  Checking sixxs for additional devices
Sun Dec 18 14:49:57 2011  Resetting traffic statistics for device sixxs
Sun Dec 18 14:49:57 2011  Initializing device sixxs (3)
Sun Dec 18 14:49:57 2011  **WARNING** DLT: Device 3 [sixxs] MTU value
unknown
Sun Dec 18 14:49:57 2011  **WARNING** DLT: Processing continues OK
Sun Dec 18 14:49:57 2011  DLT: Device 3 [sixxs] is 12, mtu 65355, header 0
Sun Dec 18 14:49:57 2011  Initialized events [mask: 0][path: ]
Sun Dec 18 14:49:57 2011  Initializing gdbm databases
Sun Dec 18 14:49:57 2011  VENDOR: Loading MAC address table.
Sun Dec 18 14:49:57 2011  VENDOR: Checking for MAC address table file
Sun Dec 18 14:49:57 2011  VENDOR: File '/etc/ntop/specialMAC.txt.gz'
does not need to be reloaded
Sun Dec 18 14:49:57 2011  VENDOR: ntop continues ok
Sun Dec 18 14:49:57 2011  VENDOR: Checking for MAC address table file
Sun Dec 18 14:49:57 2011  VENDOR: File '/etc/ntop/oui.txt.gz' does not
need to be reloaded
Sun Dec 18 14:49:57 2011  VENDOR: ntop continues ok
Sun Dec 18 14:49:57 2011  Fingerprint: Loading signature file
Sun Dec 18 14:49:57 2011  Fingerprint: Checking for Fingerprint file... file
Sun Dec 18 14:49:57 2011  Fingerprint: Loading file
'/etc/ntop/etter.finger.os.gz'
Sun Dec 18 14:49:57 2011  Fingerprint: ...loaded 1765 records
Sun Dec 18 14:49:57 2011  INIT: Parent process is exiting (this is normal)
Sun Dec 18 14:49:57 2011  INIT: Bye bye: I'm becoming a daemon...
Sun Dec 18 15:04:56 2011  NOTE: Interface merge enabled by default
Sun Dec 18 15:04:56 2011  Initializing gdbm databases
Sun Dec 18 15:04:56 2011  **ERROR** ....open of
/var/lib/ntop/prefsCache.db failed: Can't be writer
Sun Dec 18 15:04:56 2011  Possible solution: please use '-P <directory>'
Sun Dec 18 15:04:56 2011  **FATAL_ERROR** GDBM open failed, ntop
shutting down...
Sun Dec 18 15:04:56 2011  CLEANUP[t139744712042624]: ntop caught signal
2 [state=2]
Sun Dec 18 15:04:56 2011  ntop is now quitting...


A second restart works perfect, ntop runs as it should afterwards. until
it segfaults again.
I did not change anything in the filesystem manually, nor changes
/var/lib/ntop/prefsCache.db

What can i do to fix these errors?

By the way, why can't ntop determine the correct MTU of 1480 for device
sixxs?

Thanks for your support,

Jonas Jelten

Attachment: 0xFA2292AF.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to