CAPKI Errors when starting SpectroServer
search cancel

CAPKI Errors when starting SpectroServer

book

Article ID: 8209

calendar_today

Updated On:

Products

Spectrum Network Observability

Issue/Introduction

When trying to start the SpectroSERVER via command line by the following: 

/opt/Spectrum/bin/StartSS.pl

The following errors are output to the screen and logged to the $SPECROOT/SS/VNM.OUT

Could not open CAPKI shared library, errno is 0, errmsg is /opt/CA/SharedComponents/CAPKI/CAPKI5/Linux/amd64/64/lib/libcapki.so: cannot open shared object file: Permission denied 

or

/opt/NetOps/SharedComponents/CAPKI/CAPKI7/Linux/amd64/64/lib/libcapki.so: cannot open shared object file: No such file or directory

The Server still runs without issue however SNMPv3 functions such as discovery do not work.

Cause

Upon Spectrum Installation, some permissions on Symbolic Links (symlink) are added to CAPKI files. 

We have seen in some situations where if a TAR backup is made of the /opt/Spectrum directory and at some point restored, the Symlink permissions on /opt/CA/Shared Components/CAPKI files may be broken. 

 

Resolution

1. Review the contents of the /opt/SPECTRUM/spectrum80.env file and verify the path of the following.  The default location is the following:

CASHCOMP=/opt/CA/SharedComponents
CAPKIHOME=/opt/CA/SharedComponents/CAPKI

The installer will install CAPKI in the /opt/CA/SharedComponents directory.  Verify it has not been moved.  Once verified update the path if necessary.  If the path is updated you must stop SpectroSERVER and processd then restart processd and SpectroSERVER.

For example:

As you can see from the error above, the path is not /opt/CA/SharedComponents.  The path is /opt/NetOps/SharedComponents/CAPKI/CAPKI7/Linux/amd64/64/lib/libcapki.so.

When reviewing the spectrum80.env file the CASHCOMP and CAPKIHOME values were pointing at /opt/NetOps/SharedComponents. This did not exist.  The CAPKI was in /opt/CA/SharedComponents.

The spectrum80.env file was updated to /opt/CA/SharedComponents and the SpectroSERVER and processd stopped, then restart processd and SpectroSERVER which resolved the issue.

 

2. Check the permissions on /opt/CA directory.
    The read (r) and execute (x) permissions should be granted to Other users

drwxr-xr-x. 3 root     root     4096 Mar 18  2026 CA

   The same permissions should be set to each directory in the path (/opt/CA/SharedComponents/*)

   You can make sure of that running next from /opt as opt should also have read and execute permissions for Other users.

 cd /opt

 sudo chmod -R 755 CA

 Stop SpectroSERVER and processd then restart processd and SpectroSERVER

3. If the problem persists, the recommended resolution is to reinstall Spectrum on top of itself to reset the CAPKI Symlink permissions. After reinstalling Spectrum, the CAPKI permission errors should no longer appear.