SETCAP errors show when starting the SpectroSERVER
search cancel

SETCAP errors show when starting the SpectroSERVER

book

Article ID: 417606

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

After installing Spectrum and starting the SpectroSERVER the following shows in the VNM.OUT and the SpectroSERVER will not start:


ERROR TRACE at VNM.cc(446): Required capabilities cap_net_raw and cap_net_bind_service are not set properly.
ERROR TRACE at VNM.cc(447): If installed Spectrum as non-root,Please run the $SPECROOT/Install-Tools/spectrum_nonroot_prepost_install.sh as root to properly set capabilities if not run earlier
ERROR TRACE at VNM.cc(448): If replaced SpectroSERVER file, then once start SS using startSS.pl with install owner

Cause

root permissions.  This often happens with dzdo configuration.

Resolution

Stop processd and manually run setcap as root user.

Stop processd:

systemctl stop processd


Replace $SPECROOT with the path and run all three of these:
   
/usr/sbin/setcap cap_net_raw,cap_net_bind_service+ep $SPECROOT/SS/SpectroSERVER

/usr/sbin/setcap cap_setuid+ep $SPECROOT/bin/launchinstdbapp

/usr/sbin/setcap cap_sys_ptrace+ep $SPECROOT/bin/gdb

For example:

/usr/sbin/setcap cap_net_raw,cap_net_bind_service+ep /opt/CA/Spectrum/SS/SpectroSERVER

Start processd:

systemctl start processd