View previous topic :: View next topic |
Author |
Message |
mc_rph n00b

Joined: 31 May 2003 Posts: 10
|
Posted: Fri May 21, 2004 6:12 pm Post subject: ntop error |
|
|
When I try to start ntop I get the following error:
bash-2.05b# ntop
Fri May 21 20:05:46 2004 ntop will be started as user nobody
Fri May 21 20:05:46 2004 ntop v.3.0 SourceForge .tgz MT (SSL)
Fri May 21 20:05:46 2004 Configured on May 21 2004 20:03:03, built on May 21 2004 20:03:34.
Fri May 21 20:05:46 2004 Copyright 1998-2004 by Luca Deri <deri@ntop.org>
Fri May 21 20:05:46 2004 Get the freshest ntop from http://www.ntop.org/
Fri May 21 20:05:46 2004 Initializing ntop
Fri May 21 20:05:46 2004 Checking eth0 for additional devices
Fri May 21 20:05:46 2004 Resetting traffic statistics for device eth0
Fri May 21 20:05:46 2004 DLT: Device 0 [eth0] is 1, mtu 1514, header 14
Fri May 21 20:05:46 2004 Initializing gdbm databases
Fri May 21 20:05:46 2004 Now running as requested user 'nobody' (65534:65534)
Fri May 21 20:05:46 2004 **FATAL_ERROR** ....open of /var/lib/ntop/prefsCache.db failed: File open error
Fri May 21 20:05:46 2004 1. Is another instance of ntop running?
Fri May 21 20:05:46 2004 2. Make sure that the use you specified can write in the target directory
Any clues?
TIA,
mc_rph |
|
Back to top |
|
 |
golloza Guru

Joined: 14 Mar 2004 Posts: 427
|
Posted: Fri May 21, 2004 6:22 pm Post subject: |
|
|
Quote: | Fri May 21 20:05:46 2004 2. Make sure that the use you specified can write in the target directory |
Did you make this sure?
ls -l /var/lib/ntop |
|
Back to top |
|
 |
mc_rph n00b

Joined: 31 May 2003 Posts: 10
|
Posted: Fri May 21, 2004 7:12 pm Post subject: yes I did |
|
|
This just gives:
bash-2.05b# ls -l /var/lib/ntop
total 0
Don't know why "ls" should do anything but it for sure does not solve my problem....
Thanks anyway,
mc_rph |
|
Back to top |
|
 |
golloza Guru

Joined: 14 Mar 2004 Posts: 427
|
Posted: Fri May 21, 2004 7:36 pm Post subject: |
|
|
I meant
ls -l /var/lib
This will show you if nobody has write access to /var/lib/ntop |
|
Back to top |
|
 |
mc_rph n00b

Joined: 31 May 2003 Posts: 10
|
Posted: Sat May 22, 2004 9:38 am Post subject: |
|
|
golloza wrote: | I meant
ls -l /var/lib
This will show you if nobody has write access to /var/lib/ntop |
That did it, I simply missed the part about "user nobody" and thought root can write - so what....
Thanks a million,
mc_rph |
|
Back to top |
|
 |
chrisis Tux's lil' helper

Joined: 22 May 2003 Posts: 112 Location: Auckland
|
Posted: Mon May 24, 2004 11:42 am Post subject: |
|
|
What should ls -l /var/lib/ntop show?
I am getting this error when I try to start ntop:
Code: |
Wait please: ntop is coming up...
24/May/2004 23:38:36 ntop v.2.2c MT (SSL) [i686-pc-linux-gnu] (05/24/04 11:22:26 PM build)
24/May/2004 23:38:36 Copyright 1998-2003 by Luca Deri <deri@ntop.org>
24/May/2004 23:38:36 Get the freshest ntop from http://www.ntop.org/
24/May/2004 23:38:36 Initializing ntop
24/May/2004 23:38:36 SSL is present but https is disabled: use -W <https port> for enabling it
24/May/2004 23:38:36 Initializing gdbm databases
24/May/2004 23:38:36 **FATAL_ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
I don't have a file called /var/lib/ntop/prefsCache.db. Even if I touch and have a zero sized file, I still get the error.
I have done chmod 0666 on that directory. I also tried chown nobody:nobody (previously everything was owned by root).
I have even tried starting ntop using /etc/init.d/ntop start, but I just get the [!!]. I don't know how to troubleshoot that response! (I have uncommented the options in /etc/conf.d/ntop).
Any ideas?
24/May/2004 23:38:36 **FATAL_ERROR** Possible solution: please use '-P <directory>' |
_________________ But the situation seemed to call for witty repartee. "Huh?" I said. |
|
Back to top |
|
 |
Marlo Veteran

Joined: 26 Jul 2003 Posts: 1591
|
Posted: Wed Aug 18, 2004 12:06 pm Post subject: |
|
|
The solution:
Code: | chown -R nobody:nobody /var/lib/ntop/ /usr/share/ntop | and
close the thread _________________ ------------------------------------------------------------------
http://radio.garden/ |
|
Back to top |
|
 |
|