autofs hangs

Bug #529530 reported by Knirp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: autofs

Hi,

After not using automounted directories for a while, autofs seem to loose track of its mountpoints.

This is what happens:

magnus@htpc:~$ ls /var/lib/mythtv/videos/remote/hmovies
ls: cannot access /var/lib/mythtv/videos/remote/hmovies: No such file or directory

magnus@htpc:~$ ls /var/lib/mythtv/videos/remote/hmovies/
ls: cannot access /var/lib/mythtv/videos/remote/hmovies: No such file or directory

magnus@htpc:~$ sudo /etc/init.d/autofs restart
Stopping automounter: done.
Starting automounter: done.

magnus@htpc:~$ ls /var/lib/mythtv/videos/remote/hmovies
ls: cannot access /var/lib/mythtv/videos/remote/hmovies: No such file or directory

magnus@htpc:~$ ls /var/lib/mythtv/videos/remote/hmovies/
ls: cannot access /var/lib/mythtv/videos/remote/hmovies: No such file or directory

It seems to be no way to get it to work again - other than rebooting the entire box.
After rebooting all automounts are accessible again. Also when using these automounts frequently it will
keep working.

magnus@htpc:~$ ls -l /var/lib/mythtv/videos|grep remote
drwxr-xr-x 3 root root 0 2010-02-28 17:35 remote

I try to restart and unmount, but somehow autofs is dead.

Also, manually mounting the same cifs share with mount works fine.

More info

magnus@htpc:~$ tail /var/log/daemon.log
Feb 28 16:28:56 localhost automount[16000]: mount_autofs: already mounted
Feb 28 16:28:56 localhost automount[16000]: /var/lib/mythtv/videos/remote: mount failed!
Feb 28 16:29:02 localhost automount[16126]: mount_autofs: already mounted
Feb 28 16:29:02 localhost automount[16126]: /var/lib/mythtv/music/remote: mount failed!
Feb 28 16:29:02 localhost automount[16180]: mount_autofs: already mounted
Feb 28 16:29:02 localhost automount[16180]: /var/lib/mythtv/videos/remote: mount failed!
Feb 28 16:29:58 localhost automount[16298]: mount_autofs: already mounted
Feb 28 16:29:58 localhost automount[16298]: /var/lib/mythtv/music/remote: mount failed!

magnus@htpc:~$ cat /etc/auto.master|egrep -v "^#"
/var/lib/mythtv/music/remote /etc/auto.music --ghost --timeout=300
/var/lib/mythtv/videos/remote /etc/auto.video --ghost --timeout=300

magnus@htpc:~$ ps aux|grep auto
magnus 16375 0.0 0.0 7336 888 pts/1 S+ 16:33 0:00 grep --color=auto auto

magnus@htpc:~$ cat /etc/auto.music
hmp3 -fstype=cifs,username=xxx,password=xxx,rw,uid=1000,gid=105,noacl,iocharset=utf8 ://192.168.200.2/hmp3

magnus@htpc:~$ cat /etc/auto.video
hmovies -fstype=cifs,username=xxx,password=xxx,rw,uid=1000,gid=105,noacl,iocharset=utf8 ://192.168.200.2/video

magnus@htpc:~$ cat /etc/mtab|grep auto
<nothing>

magnus@htpc:~$ cat /proc/mounts |grep auto
automount(pid1565) /var/lib/mythtv/videos/remote autofs rw,relatime,fd=4,pgrp=1565,timeout=600,minproto=2,maxproto=4,indirect 0 0
automount(pid1549) /var/lib/mythtv/music/remote autofs rw,relatime,fd=4,pgrp=1549,timeout=600,minproto=2,maxproto=4,indirect 0 0

magnus@htpc:~$ ps -ef|grep 1565
magnus 16501 32237 0 16:36 pts/1 00:00:00 grep --color=auto 1565
magnus@htpc:~$ ps -ef|grep 1549
magnus 16503 32237 0 16:36 pts/1 00:00:00 grep --color=auto 1549

magnus@htpc:~$ sudo umount -a -t autofs
umount: /var/lib/mythtv/music/remote: not mounted

magnus@htpc:~$ sudo fusermount -u /var/lib/mythtv/music/remote
fusermount: /var/lib/mythtv/music/remote not mounted

magnus@htpc:~$ sudo rmmod -f autofs4
ERROR: Removing 'autofs4': Resource temporarily unavailable

magnus@htpc:~$ lsmod|grep auto
autofs4 31720 2

magnus@htpc:~$ apt-cache policy autofs
autofs:
  Installed: 4.1.4+debian-2.1ubuntu2
  Candidate: 4.1.4+debian-2.1ubuntu2
  Version table:
 *** 4.1.4+debian-2.1ubuntu2 0
        500 http://se.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

magnus@htpc:~$ apt-cache policy samba-tools
samba-tools:
  Installed: (none)
  Candidate: 2:3.4.0-3ubuntu5.4
  Version table:
     2:3.4.0-3ubuntu5.4 0
        500 http://se.archive.ubuntu.com karmic-updates/universe Packages
        500 http://security.ubuntu.com karmic-security/universe Packages
     2:3.4.0-3ubuntu5 0
        500 http://se.archive.ubuntu.com karmic/universe Packages

magnus@htpc:~$ uname -a
Linux htpc 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux

magnus@htpc:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

Regards
Magnus

Revision history for this message
Chuck Short (zulcss) wrote :

If possible can you try with autofs5?

Thanks
chuck

Changed in autofs (Ubuntu):
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Knirp (magnusw) wrote :

OK,

Installation updated with package autofs5_5.0.4-3_amd64.deb

Automounting worked fine after installation of autofs5.

Fortunately I will be away for 48 hours now so it will be pretty interesting to see if it still mounts when I come back!

A side note perhaps, autofs5 upgrade was not totally smooth.
Got this in /var/log/daemon.log:

Mar 1 23:25:20 localhost automount[25377]: syntax error in nsswitch config near [ syntax error ]
Mar 1 23:26:47 localhost automount[25377]: syntax error in nsswitch config near [ syntax error ]

Had to uncomment "+auto.master" to get rid of those messages.

Stay tuned!

// Magnus

Revision history for this message
Knirp (magnusw) wrote :

OK,

Now I've been away and automounting continued to work after being idle for more than 48 hours.

Also I rebooted the machine and it did continue to work as expected.

So for now, problem solved with upgrading autofs to 5.0.4!

Thanks!

Regards
Magnus

Revision history for this message
Chuck Short (zulcss) wrote :

Great thanks for the response.

Regards
chuck

Changed in autofs (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
assignee: Chuck Short (zulcss) → nobody
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.