The script that failed was ./3-dbservers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

The script that failed was ./3-dbservers

Post by andrewatmacys »

Hello,

I'm running an install of an older version of Nagios on a new server, v 5.2.0 to be exact, so that I can transfer another installation to it then upgrade, which is not possible on the current server. However, I am running into an error that's preventing me from installing that is as follows: 'The script that failed was ./3-dbservers'.

I am not sure what the cause is, but I'm attaching a screenshot and can pm the install log as well.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: The script that failed was ./3-dbservers

Post by npolovenko »

Hello, @andrewatmacys. Yes, could you PM the install log to me? Thank you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was ./3-dbservers

Post by andrewatmacys »

Sure, PMing it now.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: The script that failed was ./3-dbservers

Post by npolovenko »

@andrewatmacys, I saw this error at the beginning of the installation.
ERROR: unable to read system id.
This could be related to problems with RedHat activation or activation of the subscription manager.

Looks like it fails to start mariadb. Can you run these commands and show me the output?
/bin/systemctl start mariadb.service
/bin/systemctl status mariadb.service
Also, please upload:
/var/log/mariadb/mariadb.log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was ./3-dbservers

Post by andrewatmacys »

Sorry for the late reply, here's the output, and I will PM the log.
You do not have the required permissions to view the files attached to this post.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was ./3-dbservers

Post by andrewatmacys »

As it turns out, the mariadb.log is empty. I'm not sure why that is, I guess because it didn't ever start?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: The script that failed was ./3-dbservers

Post by npolovenko »

@andrewatmacys, This error is usually caused by the install of MariaDB or MYSQL in the past and some files being leftover in the directory. Try running the following commands and let me know if MariaDB starts:
mv /var/lib/mysql/* /tmp/
systemctl start mariadb
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was ./3-dbservers

Post by andrewatmacys »

I got a no such file or directory error. There shouldn't be any issues with prior installs since this was a new install, albeit an older version then the latest.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: The script that failed was ./3-dbservers

Post by npolovenko »

@andrewatmacys, I can try to replicate the installation on a test server in the lab. What kind of OS is installed on this server?

Is selinux enabled?
sestatus
What is the output of?
rpm -q mariadb-server
yum list installed | grep maria
You may try to remove the mariadb and rerun the fullinstall script:
yum remove mariadb mariadb-server
mv /var/lib/mysql /var/lib/mysql_old_backup
Can you also show me the list of installed repositories:
yum repolist
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: The script that failed was ./3-dbservers

Post by andrewatmacys »

sestatus returns disabled. The server is running RHEL 7.6.

I am attaching the outputs of the other commands, deleting and reinstalling did not work.

This was a fresh install of version 5.4.0, so there should be nothing else inhibiting the install from previous versions.
You do not have the required permissions to view the files attached to this post.
Locked