You are not logged in.

#1 2017-04-10 21:03:23

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

[SOLVED] nTop won't start anymore after migrating from i686 to x86_64

Like the title says it won't start anymore, well it does start bus the web-interface is inaccessible.

[xxx@xxx ~]$ sudo ntop -w 3000 -i ens1

Mon Apr 10 22:50:38 2017  Initializing gdbm databases
Mon Apr 10 22:50:38 2017  ntop will be started as user nobody
Mon Apr 10 22:50:38 2017  ntop v.5.0.1 (64 bit)
Mon Apr 10 22:50:38 2017  Configured on Nov  1 2016 10:47:49, built on Nov  1 2016 10:48:16.
Mon Apr 10 22:50:38 2017  Copyright 1998-2012 by Luca Deri <deri@ntop.org>
Mon Apr 10 22:50:38 2017  Get the freshest ntop from http://www.ntop.org/
Mon Apr 10 22:50:38 2017  NOTE: ntop is running from 'ntop'
Mon Apr 10 22:50:38 2017  NOTE: (but see warning on man page for the --instance parameter)
Mon Apr 10 22:50:38 2017  NOTE: ntop libraries are in '/usr/lib'
Mon Apr 10 22:50:38 2017  Initializing ntop
Mon Apr 10 22:50:38 2017  Checking ens1 for additional devices
Mon Apr 10 22:50:38 2017  Resetting traffic statistics for device ens1
Mon Apr 10 22:50:38 2017  Initializing device ens1 (0)
Mon Apr 10 22:50:38 2017  DLT: Device 0 [ens1] is 1, mtu 1514, header 14
Mon Apr 10 22:50:38 2017  **ERROR** While adding events.mask=0.

/etc/conf.d/ntop:

# Parameters to be passed to ntop.
NTOP_ARGS="-w 3000 -4 -i ens1"
# Location of the log file.
NTOP_LOG="/var/log/ntop.log"

ntop.service:

[Unit]
Description=A network traffic probe similar to the UNIX top command
Requires=network.target
ConditionPathExists=/var/lib/ntop/ntop_pw.db
After=syslog.target network.target
    
[Service]
Environment=LANG=C
ExecStart=/usr/bin/ntop -i ens1 -w 3000
Type=simple
StandardError=syslog
    
[Install]
WantedBy=multi-user.target

/var/lib/ntop/ belongs to root:root with permissions 755.

Also all plugins in /usr/lib/ntop/plugins/ are ELF 64-bit.

If you need more information just let me know.

Last edited by Ztjuh (2017-04-29 01:57:00)

Offline

#2 2017-04-19 15:32:24

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED] nTop won't start anymore after migrating from i686 to x86_64

As you say you have migrated, do you have any exisiting dot files in your home area relating to ntop? Does it work for other users?

Offline

#3 2017-04-25 00:39:33

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: [SOLVED] nTop won't start anymore after migrating from i686 to x86_64

Same error when trying to run as a other user. I also saw that there was a update on ntop today but the error remained. I didn't see any dot filer relating to ntop.

Offline

#4 2017-04-27 18:26:45

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [SOLVED] nTop won't start anymore after migrating from i686 to x86_64

Ztjuh wrote:

I also saw that there was a update on ntop today

https://git.archlinux.org/svntogit/comm … kages/ntop

shows...
"2017-03-16    upgpkg: ntop 5.0.1-10"

which shows the update was over a month ago - what's the output of...

pacman -Q ntop

Also what does this show...

systemctl status ntop

Is there anything in your journal relating to ntop?

Just double checking you've also followed the wiki...
https://wiki.archlinux.org/index.php/Ntop

Offline

#5 2017-04-27 18:48:43

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] nTop won't start anymore after migrating from i686 to x86_64

It may be that the 32-bit and 64-bit ntop databases are incompatible (I vaguely remember a similar issue when migrating architectures with vnstat).

Does removing all the the files in /var/lib/ntop/ and /var/lib/ntop/rrd/ help?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2017-04-29 01:56:36

Ztjuh
Member
Registered: 2011-05-30
Posts: 58

Re: [SOLVED] nTop won't start anymore after migrating from i686 to x86_64

Yes after removing all files in /var/lib/ntop/ and /var/lib/ntop/rdd nTop starts again, there goes 2 years of data :-(

Offline

Board footer

Powered by FluxBB