Public bug reported:
Binary package hint: gdm
Noticed an issue with the newest gdm available in Karmic. It appears
that this gdm version does not want to load in our environment.
We have a very large passwd file:
cat /etc/passwd | wc -l
34113
with home directories being served out of NFS.
When gdm loads on this machine, it hangs forever, while the mount table
goes up. It appears that gdm is attempting to mount and read every
single home directory for every single user in the passwd file. Notices
in syslog appear about being unable to read the .face file in each
user's home directory.
I went ahead and disabled the user list using:
sudo gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults \
--type bool --set /apps/gdm/simple-greeter/disable_user_list true
stracing the process shows a bunch of these messages (usernames removed for
security purposes):
[pid 13493] inotify_add_watch(5, "*********************",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 ENOENT (No such file or directory)
[pid 13493] inotify_add_watch(5, "/usr2/*******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 3
[pid 13493] inotify_add_watch(5, "/usr2/*****",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 4
[pid 13493] inotify_add_watch(5, "/usr2/*******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 5
[pid 13493] inotify_add_watch(5, "/usr2/********",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 6
[pid 13493] inotify_add_watch(5, "/usr2/*******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 7
[pid 13493] inotify_add_watch(5, "/usr2/*******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 8
[pid 13493] inotify_add_watch(5, "/usr2/*******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 EACCES (Permission denied)
[pid 13493] inotify_add_watch(5, "/usr2/*******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 9
[pid 13493] inotify_add_watch(5, "/usr2/******",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= 10
[pid 13493] inotify_add_watch(5, "/usr2/*****",
IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR)
= -1 EACCES (Permission denied)
And now no more errors appear about the .face files, however the
mounting behavior is still happening. I highly doubt the automounter on
this box will be able to handle 32K+ simultaneous mounts on it, and it
seems very unnecessary.
Killing gdm on this machine immediately stops mounting the home
directories, and then I have to go back and do a umount -t nfs -a to
unmount them all.
lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
/usr/sbin/automount -V
Linux automount version 5.0.4
Directories:
config dir: /etc/default
maps dir: /etc
modules dir: /usr/lib/autofs
Compile options:
ENABLE_FORCED_SHUTDOWN ENABLE_IGNORE_BUSY_MOUNTS WITH_HESIOD
WITH_LDAP WITH_SASL LIBXML2_WORKAROUND
apt-cache policy gdm
gdm:
Installed: (none)
Candidate: 2.28.1-0ubuntu1
Version table:
2.28.1-0ubuntu1 0
500 http://archive.ubuntu.com karmic/main Packages
100 /var/lib/dpkg/status
** Affects: gdm (Ubuntu)
Importance: Undecided
Status: New
--
gdm doesn't load with large passwd file
https://bugs.launchpad.net/bugs/471542
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs