Archive for November, 2009

Problems with ubuntu when upgrading to karmic koala: mysqld and dns resolution

Posted in Linux, Ubuntu on November 8th, 2009 by alex – 1 Comment

After upgrading to Ubuntu 9.10, Karmic Koala, I noticed I had a couple of annoying problems.
First of all I was unable to connect to any outside site, so I tried to ping yahoo.com but I had an error say that the domain name could not be resolved. I tried pinging the IP address for yahoo.com (got that from using another computer to look it up) and that worked.
What this means is that the ubuntu machine can’t resolve domain names to their IP address, which it usually does through nameservers.
Apparently the upgrade process erased my nameserver configuration.
On ubuntu the nameserver configuration can be found in
/etc/resolv.conf
In that file, set your nameservers like this:

nameserver 192.168.1.1
nameserver 10.0.0.1

Those just examples, but the 192.168.1.1 IP address in my case was my router’s IP address since it acts as a relay for the ISP’s nameservers, the next one is just an example IP. Now try to bring your ethernet interface up, or just reboot your box.

Another annoying problem is that the mysql server would not start on the ubuntu machine. I checked in the dmesg error log and found this weird looking error:

[10360.109659] type=1503 audit(1256893798.480:502): operation=”open” pid=23026 parent=23025 profile=”/usr/sbin/mysqld” requested_mask=”r::” denied_mask=”r::” fsuid=0 ouid=0 name=”/sys/devices/system/cpu/”

After a couple Google searches I found some other people had the same problem and it stemmed from an option in the mysql configuration where it disabled berkley db support.
I went in the mysql configuration file, in ubuntu /etc/mysql/my.cnf and commented out the skip-bdb, just put a # in front of the option:

#skip-bdb

That should do it, now restart mysql and it should work, if it doesn’t try to reboot and see if that does it.
user@host:~$ sudo /etc/init.d/mysqld restart
That’s all for now, let me know if you had any other problems when upgrading.

Share