portmap hangs on shutdown

Bug #309542 reported by Martin Stjernholm
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
portmap (Ubuntu)
Invalid
Undecided
Unassigned

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.

Revision history for this message
Aron Griffis (agriffis) wrote :

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

Revision history for this message
Martin Stjernholm (msub) wrote :

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

Changed in portmap:
status: New → Invalid
Revision history for this message
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?

Revision history for this message
Aron Griffis (agriffis) wrote :

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

auto lo
iface lo inet loopback

Revision history for this message
Alexander Anisimov (alenyashka) wrote :

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

Any ideas?

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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