Page 1 of 2

The script that failed was ./3-dbservers

Posted: Fri Mar 08, 2019 1:52 pm
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.

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

Posted: Fri Mar 08, 2019 3:20 pm
by npolovenko
Hello, @andrewatmacys. Yes, could you PM the install log to me? Thank you.

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

Posted: Tue Mar 12, 2019 10:10 am
by andrewatmacys
Sure, PMing it now.

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

Posted: Tue Mar 12, 2019 12:24 pm
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

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

Posted: Wed Mar 13, 2019 9:13 am
by andrewatmacys
Sorry for the late reply, here's the output, and I will PM the log.

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

Posted: Wed Mar 13, 2019 9:18 am
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?

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

Posted: Wed Mar 13, 2019 10:09 am
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

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

Posted: Wed Mar 13, 2019 10:47 am
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.

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

Posted: Wed Mar 13, 2019 1:01 pm
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

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

Posted: Thu Mar 14, 2019 12:18 pm
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.