Page 2 of 2
Re: The script that failed was ./3-dbservers
Posted: Thu Mar 14, 2019 2:43 pm
by npolovenko
@andrewatmacys, Can you reinstall the DB now and see if you can start it?
yum install MariaDB mariadb-server
service mariadb start
mysql
Also, it looks like your optional repos have expired metadata. Please run:
yum clean all
yum update
And see if exclamation points before the repos would go away.
Re: The script that failed was ./3-dbservers
Posted: Thu Mar 14, 2019 2:51 pm
by andrewatmacys
Looks like mariadb is running now, can you clarify what you mean with the MySQL below the start mariadb command? Sorry.
Also, after cleaning and updating the repos I still have exclamations.
However, the install is proceeding, so that fixed that problem!
Re: The script that failed was ./3-dbservers
Posted: Thu Mar 14, 2019 2:57 pm
by andrewatmacys
It was going well, until it didn't! haha
It did a lot of stuff, but then I got hit with this:
The script that failed was: './D-chkconfigalldaemons'
Re: The script that failed was ./3-dbservers
Posted: Thu Mar 14, 2019 3:14 pm
by npolovenko
@andrewatmacys, Can you post the whole install.log again?
Also, you should run this command to allow nagios to connect to the database with familiar credentials:
mysqladmin --user=root password "nagiosxi"
Re: The script that failed was ./3-dbservers
Posted: Thu Mar 14, 2019 3:19 pm
by andrewatmacys
I just PM'd the install.log. I'll run that command as well.
On running the command I got an access denied for user root@localhost. I'll post the full error here:
[root@mdc2vrs7867f0 nagiosxi]# mysqladmin --user=root password "nagiosxi"
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Did I run this incorrectly?
Re: The script that failed was ./3-dbservers
Posted: Thu Mar 14, 2019 4:16 pm
by npolovenko
@andrewatmacys, The command looks right. Perhaps the installation script already set the MySQL password for you. Can you try to sign in to MySQL like this:
mysql -u root -pnagiosxi
Can you run the fullinstall script one more time with -x and that should show us a more detailed info about the error:
./fullinstall -x | tee -a /tmp/support3.txt
Also, please run the following two commands and then upload the support1.txt, support3.txt and support2.txt files.
systemctl > /tmp/support1.txt
ps -ef > /tmp/support2.txt
Re: The script that failed was ./3-dbservers
Posted: Fri Mar 15, 2019 12:26 pm
by andrewatmacys
Unfortunately I got an error Unknown option: -x, possibly not available on 5.4.0?
Anyway, I will upload support1.txt and support2.txt
Re: The script that failed was ./3-dbservers
Posted: Fri Mar 15, 2019 1:42 pm
by npolovenko
@andrewatmacys, We found some MySQL errors in your install log. My recommendation is to start with a clean server, activate redhat and start the installation all over. Bu this time please install the mariadb before installing XI and make sure to change the root password to nagiosxi. You need to be able to sign in to MySQL with
mysql -u root -pnagiosxi
Re: The script that failed was ./3-dbservers
Posted: Fri Mar 15, 2019 1:46 pm
by andrewatmacys
Sorry, I meant to say I was able to log in using your command
mysql -u root -pnagiosxi.
Does that change anything?
Re: The script that failed was ./3-dbservers
Posted: Fri Mar 15, 2019 1:56 pm
by npolovenko
@andrewatmacys, I see. No, you should still start from a clean system and install mariadb beforehand, change the root password with the command I gave you and make sure you can sign in with mysql -u root -pnagiosxi before installing XI.
Also, when you run the installation try:
bash -x fullinstall | tee -a /tmp/support.txt