• Da' Hoytt's Home
  • Darryl Hoytt's Personal Blog
  • Snakeice's "House of Beats" Radio Blog
  • Da' Hoytt's Online Games Blog
  • Darryl's Sale Items
  • Da' Hoytt's Online Universe Forums
  • Photos
  • Hoytt Enterprises
Da' Hoytt's Online Universe
Da Hoytt's Online Universe consists of places were you can listen to music, play games, participate in discussion, view photos and buy merchandise.

Sign In

  • Darryl Hoytt's Personal Blog
  • About Darryl Hoytt's Personal Blog
  • Darryl Hoytt Personal Blog Contact

Search

Da' Hoytt's Online Universe > Darryl Hoytt's Personal Blog > Once Again Fixed Sendmail Hang on Linux Web Server, Plus Mysql Login Issue

Darryl Hoytt's Personal Blog
Information about projects and some thoughts from me, Darryl Hoytt.

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

By Darryl Hoytt on January 23, 2007 11:00 PM | 0 Comments | 0 TrackBacks

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

Categories:

  • Whole Site Development

No TrackBacks

TrackBack URL: http://www.dhoytt.com/cgi-bin/mt/mt-tb.cgi/1063

Leave a comment

Categories

  • Food (13)
  • Health & Wellness (46)
  • Home Projects (21)
  • RandomThoughts (106)
  • Technical Non-Site Related (13)
  • Whole Site Development (48)

Monthly Archives

  • April 2010 (1)
  • March 2010 (2)
  • February 2010 (2)
  • December 2009 (4)
  • November 2009 (3)
  • October 2009 (4)
  • September 2009 (7)
  • August 2009 (2)
  • July 2009 (3)
  • January 2009 (1)
  • December 2008 (3)
  • June 2008 (1)
  • May 2008 (2)
  • April 2008 (2)
  • February 2008 (1)
  • January 2008 (1)
  • December 2007 (1)
  • August 2007 (4)
  • May 2007 (1)
  • March 2007 (1)
  • February 2007 (2)
  • January 2007 (4)
  • December 2006 (4)
  • November 2006 (2)
  • October 2006 (1)
  • September 2006 (1)
  • June 2006 (4)
  • April 2006 (4)
  • March 2006 (6)
  • February 2006 (10)
  • January 2006 (4)
  • December 2005 (1)
  • November 2005 (5)
  • October 2005 (1)
  • September 2005 (6)
  • August 2005 (1)
  • July 2005 (7)
  • June 2005 (1)
  • May 2005 (4)
  • April 2005 (4)
  • March 2005 (1)
  • February 2005 (5)
  • January 2005 (1)
  • December 2004 (4)
  • November 2004 (6)
  • October 2004 (4)
  • September 2004 (20)
  • August 2004 (31)
  • July 2004 (32)
  • June 2004 (28)
OpenID accepted here Learn more about OpenID
  • Subscribe to feed Subscribe to this blog's feed

About this Entry

This page contains a single entry by Darryl Hoytt published on January 23, 2007 11:00 PM.

Late Fantasy Sports Update was the previous entry in this blog.

Out of Shape! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type Pro

Links

  • Home
This blog is licensed under a Creative Commons License.