Page 1 of 2
Installation Error
Posted: Tue Mar 09, 2021 12:33 pm
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.
Re: Installation Error
Posted: Tue Mar 09, 2021 12:56 pm
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?
Re: Installation Error
Posted: Wed Mar 10, 2021 3:27 pm
by ssax
What OS/version are you installing it on?
Is this a fresh install on a new VM?
Can you attach the full install.log?
Which version of NNA are you installing?
Re: Installation Error
Posted: Wed Mar 10, 2021 4:19 pm
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
Re: Installation Error
Posted: Wed Mar 10, 2021 6:01 pm
by ssax
Is selinux enabled?
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.
Re: Installation Error
Posted: Wed Mar 10, 2021 6:05 pm
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!
Re: Installation Error
Posted: Wed Mar 10, 2021 6:18 pm
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.
Re: Installation Error
Posted: Wed Mar 10, 2021 6:23 pm
by ssax
Which version of NNA are you installing? The latest or a beta or something?
Re: Installation Error
Posted: Wed Mar 10, 2021 6:26 pm
by BanditBBS
Disabling selinux didn't fix it. It still exists with the same message.
This is the "-latest" version.
Re: Installation Error
Posted: Wed Mar 10, 2021 6:40 pm
by ssax
I'm wonder if this in the fullinstall is causing it:
You could try changing to this: