Once Again Fixed Sendmail Hang on Linux Web Server, Plus Mysql Login Issue

| 0 comments

Yes I had been living with a sendmail hang on my web server since I removed my second NIC (network interface card). I do not reboot much but I had some time and thought it would be nice to insure that my web server boots up quickly and with the sendmail hang of several minutes it was not a very fast process.
The first thing I had noticed was that the second NIC eth1 was still being called upon during the boot up process. I had removed the entry from /etc/hosts, /etc/sysconfig/networking/devices, /etc/sysconfig/networking/profiles/default but it was still being referenced somewhere.
After looking in /dev & /proc for references of eth1 I finally saw a directory in /etc/sysconfig/network-scripts/ and found a reference to eth1 with all of the settings of the removed NIC.
I removed the eth1 script text file from /etc/sysconfig/network-scripts/ and rebooted the box and no longer had eth1 referenced only eth0 the only physical NIC on the system.
Now even though I no longer had eth1 showing up during boot I still experienced a hang on boot when the system started the sendmail server and client daemons.
Well obviously there was another reason and I found that reason in /etc/hosts. It seems that /etc/hosts did not have my local loopback defined any longer I corrected my local loopback, using one of my other Linux systems as reference to look like the following:
localhost.localdomain localhost
I did the reboot on my system and it came up so fast starting the sendmail daemons along the way I was barely able to see them referenced on the screen during the boot process.
Now that the sendmail issue was fixed there had to be other issues associated with the system resolving correctly and I soon found the issue. Now I could not log into my mysql database instance for my blogs.
Trying to login to my blog I got the infamous Bad ObjectDriver config: Connection error: Access denied for user ‘NNNN’@’ip.adress’ (using password: YES).
I wanted to write this post and could not login initially. This became an issue because I used to have the two NICs and pointed separate databases to be accessed off of the two different NICs but I used the same username but different passwords for that username depending on the NIC you were accessing the database from.
So for this Mysql login issue I went and deleted the Mysql user pointed to the now removed NIC and changed the user to access from the NIC now on the system and changed the file on Movabletype to the password of the username on my current NIC eth0.
Now I can login ok to my blogs as you can see and sendmail no longer hangs on boot! Now its time for me to check my other database instances to insure they work ok as well

Leave a Reply

Required fields are marked *.