autofs /net automount stopped working

So autofs randomly stopped working on one of my Ubuntu hosts (this issue has been found on Arch as well so its most likely a change upstream). I found this error in the logs:

attempting to mount entry /net/
get_exports: lookup(hosts): exports lookup failed for
key "" not found in map source(s).
failed to mount /net/

The fix was to replace the following line in /etc/auto.master from

/net   -hosts

to this

/net /etc/ --timeout=60

and then restart autofs (sudo service autofs restart).

2 thoughts on “autofs /net automount stopped working

Leave a Reply

Your email address will not be published. Required fields are marked *