WTF is this? (Or how NIS and portmapper on Ubuntu Dapper Drake drove me nuts)

Not too long ago a couple of the Ubuntu Dapper Drake (6.06 LTS) VPSs we use abruptly became inaccessible. These VPSs were NIS clients that suddenly could no longer connect to the NIS master. Great. And as far as I could tell I didn’t do anything to those servers. I even managed to replicate the problem on another similar VPS (that was still accessble) simply by restarting the NIS daemon.

Thanks to Rimuhosting’s fantabulous support, I managed to regain access to the VPSs. Oh yeah, big lesson learnt here: when configuring NIS clients, be sure to leave at least one user account with sudo privileges or set the root account’s password (Ubuntu doesn’t come with a root account enabled by default - run sudo passwd to set it and enable the root account as a side effect). Big big lesson learnt. Don’t let this bite you in the ass if you’re a sysadmin-ish person.

Anyway, /var/log/syslog was complaining this:

ypbind[1026]: Unable to register (YPBINDPROG, YPBINDVERS, udp)

Which turned out to be a portmap problem. So yeah portmap wasn’t running! For a moment there I thought we had an easy solution. Sadly, /etc/init.d/portmap start was throwing this inexplicable error (i.e. Google wasn’t of much help):

root@zoidberg:/sbin# /etc/init.d/portmap  restart
 * Stopping portmap daemon...
   ...done.
 * Starting portmap daemon...
dhclient.4.x 2.*.5, December 30th, 2000
Compiled on Dec 12 2003 09:55:54
Features: DBG, SEE, ALS, SEF
init: Couldn't open the file ./libuuid.so ->
   ...fail!

It sure isn’t caturday. After hours spent scrambling to find out why portmap can’t find libuuid.so, reinstalling the NIS .deb, comparing configuration files between working NIS clients and these busted ones, it finally dawned on me that I have yet to re-install portmap (not that it was logically sound that I’d have to reinstall it, but at this point I was willing to try anything). Annoyingly enough, it worked!

apt-get remove portmap nis
apt-get install nis

I still don’t know WTF happened there. If anyone has any clue please please point me to it.

5 Comments & TrackBacks (Add yours)

The paper doll icon that precedes each comment is an idea conceived by Vanessa Tan.

Paper doll icon
Jeffrey Lim's Gravatar

ok here -

clue

Posted by: Jeffrey Lim on July 4, 2007 12am

Paper doll icon
Jeffrey Lim's Gravatar

ok wait - something went wrong there. Testing…

>=

Posted by: Jeffrey Lim on July 4, 2007 12am

Paper doll icon
Jeffrey Lim's Gravatar

ok here -

clue <=

:P pointing you to a clue right now…

It’s not everyday that somebody deletes a library (or changes the permission - or whatever)…

Posted by: Jeffrey Lim on July 4, 2007 12am

Paper doll icon
Chu Yeow's Gravatar

LOL smart ass.

Posted by: Chu Yeow on July 4, 2007 10am

Paper doll icon
Jeffrey Lim's Gravatar

;D heey, man - a clue’s a clue… :P

Posted by: Jeffrey Lim on July 4, 2007 8pm

You can subscribe to the RSS feed for comments on this post.

Post a comment

(required)

(required, but never displayed)


You can format your comments using XHTML. Your email address will not be displayed or used for nefarious purposes.

Only following tags are allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>