portmap hangs on shutdown

Bug #309542 reported by Martin Stjernholm on 2008-12-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
portmap (Ubuntu)

Bug Description

Binary package hint: portmap

At shutdown (for either halt or reboot), Ubuntu hangs at "Stopping portmap daemon..."

If I comment out this line in /etc/init.d/portmap, it no longer hangs:

        pmap_dump >/var/run/portmap.state

This is a regression after upgrade to Intrepid. I get it on two out of three intrepid installations (with portmap). I haven't figured out what configuration difference causes this.

portmap version is 6.0-6ubuntu1.

Aron Griffis (agriffis) wrote :

Believe the problem here is that the lo interface isn't configured. pmap_dump attempts to connect to but if lo isn't configured, it will hang.

Martin Stjernholm (msub) wrote :

Correct. The problem was on my end. Thank you for the tip.

Changed in portmap:
status: New → Invalid
Alexander Anisimov (alenyashka) wrote :

I have the same problem.
agriffis wrote: "the problem here is that the lo interface isn't configured". How could I configure lo interface?

Aron Griffis (agriffis) wrote :

Edit /etc/network/interfaces, add the following:

auto lo
iface lo inet loopback

Alexander Anisimov (alenyashka) wrote :

I have this line in my /etc/network/interfaces.

Any ideas?

kickaha (kickaha-the-trickster) wrote :

Thanks agriffis!

If the interface is up, maybe you have the firewall blocking localhost interface.
In my case the problem was solved adding a couple of firewall rules:
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments