Installation Error

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
User avatar
BanditBBS
Posts: 2457
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Installation Error

Post by BanditBBS »

Code: Select all

Making install in man
make[1]: Entering directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/man'
make[2]: Entering directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/man'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 ft2nfdump.1 nfcapd.1 nfdump.1 nfexpire.1 nfprofile.1 nfreplay.1 nfanon.1 sfcapd.1 '/usr/local/share/man/man1'
make[2]: Leaving directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/man'
make[1]: Leaving directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/man'
Making install in doc
make[1]: Entering directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/doc'
make[2]: Entering directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/doc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/doc'
make[1]: Leaving directory '/tmp/nagiosna/subcomponents/nfdump-1.6.22/doc'
build_nfdump step completed OK
Running 'library_path'...
library_path step completed OK
Running 'nagiosna'...
nagiosna step completed OK
Running 'backend'...
chmod: cannot access '/usr/local/nagiosna/bin/rc.py': No such file or directory

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Enterprises technical support.

The step that failed was: 'backend'
I looked immediately after that and saw this:

Code: Select all

[root@cms-365-nna01 backend]# cd bin
[root@cms-365-nna01 bin]# ll
total 76
-rwxrwxr-x. 1 nna nnacmd  3409 Mar  9 09:26 capd.py
-rwxrwxr-x. 1 nna nnacmd  2129 Mar  9 09:26 config.py
-rwxrwxr-x. 1 nna nnacmd  3587 Mar  9 09:26 get_square_matrix.py
-rwxrwxr-x. 1 nna nnacmd  5147 Mar  9 09:26 get_square_matrix_query.py
-rwxrwxr-x. 1 nna nnacmd  3477 Mar  9 09:26 initialize_source.py
-rwxrwxr-x. 1 nna nnacmd     0 Mar  9 09:26 __init__.py
-rwxrwxr-x. 1 nna nnacmd  2398 Mar  9 09:26 nagiosna
-rwxrwxr-x. 1 nna nnacmd 10094 Mar  9 09:26 netflow_checks.py
-rwxrwxr-x. 1 nna nnacmd 10908 Mar  9 09:26 nfdump.py
-rwxrwxr-x. 1 nna nnacmd  7368 Mar  9 09:26 notify.py
-rwxrwxr-x. 1 nna nnacmd  4398 Mar  9 09:26 rc.py
-rwxrwxr-x. 1 nna nnacmd  5163 Mar  9 09:26 reap_files.py
So it was there. I tried running the full install again and its skipping all the other steps, going right to backend step and failing with same error. However, now if I look the nagiosna folder is now empty.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2457
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Installation Error

Post by BanditBBS »

Apparently I am blind and the folder and files are still there, but getting that error:

Code: Select all

[root@cms-365-nna01 bin]# ll
total 76
-rwxrwxr-x. 1 nna nnacmd  3409 Mar  9 09:30 capd.py
-rwxrwxr-x. 1 nna nnacmd  2129 Mar  9 09:30 config.py
-rwxrwxr-x. 1 nna nnacmd  3587 Mar  9 09:30 get_square_matrix.py
-rwxrwxr-x. 1 nna nnacmd  5147 Mar  9 09:30 get_square_matrix_query.py
-rwxrwxr-x. 1 nna nnacmd  3477 Mar  9 09:30 initialize_source.py
-rwxrwxr-x. 1 nna nnacmd     0 Mar  9 09:30 __init__.py
-rwxrwxr-x. 1 nna nnacmd  2398 Mar  9 09:30 nagiosna
-rwxrwxr-x. 1 nna nnacmd 10094 Mar  9 09:30 netflow_checks.py
-rwxrwxr-x. 1 nna nnacmd 10908 Mar  9 09:30 nfdump.py
-rwxrwxr-x. 1 nna nnacmd  7368 Mar  9 09:30 notify.py
-rwxrwxr-x. 1 nna nnacmd  4398 Mar  9 09:30 rc.py
-rwxrwxr-x. 1 nna nnacmd  5163 Mar  9 09:30 reap_files.py
[root@cms-365-nna01 bin]# pwd
/usr/local/nagiosna/backend/bin

Code: Select all

[root@cms-365-nna01 bin]# ll /usr/local/nagiosna/bin/rc.py
ls: cannot access '/usr/local/nagiosna/bin/rc.py': No such file or directory
So it's looking in the wrong folder it seems?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation Error

Post by ssax »

What OS/version are you installing it on?

Code: Select all

uname -a
cat /etc/*release
Is this a fresh install on a new VM?

Can you attach the full install.log?

Which version of NNA are you installing?
User avatar
BanditBBS
Posts: 2457
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Installation Error

Post by BanditBBS »

Code: Select all

[root@cms-365-nna01 ~]# uname -a
Linux cms-365-nna01.itciss.com 4.18.0-240.el8.x86_64 #1 SMP Wed Sep 23 05:13:10 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@cms-365-nna01 ~]# cat /etc/*release
NAME="Red Hat Enterprise Linux"
VERSION="8.3 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.3"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.3 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.3:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.3
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.3"
Red Hat Enterprise Linux release 8.3 (Ootpa)
Red Hat Enterprise Linux release 8.3 (Ootpa)
Was a completely fresh installation of the OS, nothing was installed. I was attempting to install the latest version. It really just looks to me like it was tryign to run that file from the wrong folder?!?!

Log file here:
install.log
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation Error

Post by ssax »

Is selinux enabled?

Code: Select all

sestatus
Any security software installed on there?

Are you running as root or with sudo?

The perms look proper and the file exists, I'm guessing something is blocking it.
User avatar
BanditBBS
Posts: 2457
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Installation Error

Post by BanditBBS »

Notice the wrong folder. The file exists in /usr/local/nagiosna/backend/bin but its looking for it in /usr/local/nagiosna/bin

selinux is enabled. I'll try disabling and re-running!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation Error

Post by ssax »

EDIT:

I only find the backend dir in the installer directory that's extracted, did you cd to /usr/local before doing the download/extract of installer? That's the only reason you should have a backend folder under /usr/local/nagiosna.

Code: Select all

/usr/local/nagiosna/bin/rc.py
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation Error

Post by ssax »

Which version of NNA are you installing? The latest or a beta or something?
User avatar
BanditBBS
Posts: 2457
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Installation Error

Post by BanditBBS »

Disabling selinux didn't fix it. It still exists with the same message.

This is the "-latest" version.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Installation Error

Post by ssax »

I'm wonder if this in the fullinstall is causing it:

Code: Select all

cp -r backend "$backenddir"
You could try changing to this:

Code: Select all

cp -r backend/* "$backenddir"
Locked