package nfs-common 1:1.2.5-3ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

Bug #954619 reported by Valon
54
This bug affects 8 people
Affects Status Importance Assigned to Milestone
nfs-utils (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Description: Ubuntu precise (development branch)
Release: 12.04

nfs-common:
  Installed: 1:1.2.5-3ubuntu1
  Candidate: 1:1.2.5-3ubuntu1
  Version table:
 *** 1:1.2.5-3ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: nfs-common 1:1.2.5-3ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic 3.2.9
Uname: Linux 3.2.0-18-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Tue Mar 13 17:30:37 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 1
SourcePackage: nfs-utils
Title: package nfs-common 1:1.2.5-3ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-03-14 (0 days ago)

Related branches

Revision history for this message
Valon (darkelfshao) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

The error in the logs is:

 Unpacking replacement nfs-common ...
dpkg: warning: unable to delete old directory '/var/lib/nfs/rpc_pipefs': Device
or resource busy
[...]
Setting up nfs-common (1:1.2.5-3ubuntu1) ...Installing new version of config file /etc/init/gssd.conf ...
Installing new version of config file /etc/init/idmapd.conf ...
idmapd stop/waiting
rmdir: failed to remove `/var/lib/nfs/rpc_pipefs': Directory not empty
dpkg: error processing nfs-common (--configure):
 subprocess installed post-installation script returned error exit status 1

Everything looks like it's going according to plan, and then the directory isn't empty. Can you please show the output of the command ' ls -l /var/lib/nfs/rpc_pipefs' on this system?

Changed in nfs-utils (Ubuntu):
status: New → Incomplete
Revision history for this message
Valon (darkelfshao) wrote :

$ls -lR /var/lib/nfs/rpc_pipefs
/var/lib/nfs/rpc_pipefs:
total 4
drwxr-xr-x 2 root root 4096 Feb 28 22:08 nfs

/var/lib/nfs/rpc_pipefs/nfs:
total 0

Revision history for this message
Steve Langasek (vorlon) wrote :

ok. can you please also show the output of these commands:

mount | grep pipefs
fuser -vm /var/lib/nfs/rpc_pipefs

You may have to install the psmisc package for the second command to work.

Revision history for this message
Valon (darkelfshao) wrote :
Download full text (3.7 KiB)

$ mount | grep pipefs
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)

$ fuser -vm /var/lib/nfs/rpc_pipefs
                     USER PID ACCESS COMMAND
/var/lib/nfs/rpc_pipefs:
                     root kernel mount /
                     shao 5453 .r.e. gnome-session
                     shao 5498 .rce. dbus-launch
                     shao 5499 .rce. dbus-daemon
                     shao 5501 .rce. gvfsd
                     shao 5503 .rce. gvfs-fuse-daemo
                     shao 5514 .rce. gconfd-2
                     shao 5519 .r.e. gnome-settings-
                     shao 5530 .r.e. compiz
                     shao 5542 .rce. pulseaudio
                     shao 5544 .rce. gvfsd-metadata
                     shao 5550 .rce. gconf-helper
                     shao 5551 .r.e. gnome-fallback-
                     shao 5552 .r.e. vino-server
                     shao 5553 .r.e. nm-applet
                     shao 5558 .rce. gvfs-gdu-volume
                     shao 5560 .r.e. polkit-gnome-au
                     shao 5569 .rce. mission-control
                     shao 5571 .r.e. nautilus
                     shao 5574 .r.e. bluetooth-apple
                     shao 5580 .rce. goa-daemon
                     shao 5583 .rce. gvfs-gphoto2-vo
                     shao 5591 .rce. gvfs-afc-volume
                     shao 5605 Fr.e. dropbox
                     shao 5611 .rce. gvfsd-trash
                     shao 5616 .rce. gvfsd-burn
                     shao 5695 .rce. dconf-service
                     shao 5699 .rce. bamfdaemon
                     shao 5715 .r.e. gdu-notificatio
                     shao 5727 .rce. notify-osd
                     shao 5749 .rce. unity-panel-ser
                     shao 5755 .rce. hud-service
                     shao 5768 .r.e. sh
                     shao 5769 .r.e. gtk-window-deco
                     shao 5771 .rce. indicator-appli
                     shao 5773 .rce. indicator-datet
                     shao 5776 .rce. indicator-messa
                     shao 5778 .rce. indicator-sound
                     shao 5782 .rce. indicator-sessi
                     shao 5786 frce. indicator-print
                     shao 5813 .rce. geoclue-master
                     shao 5815 .rce. ubuntu-geoip-pr
                     shao 5821 .r.e. telepathy-indic
                     shao 5827 .r.e. gnome-screensav
                     shao 5828 .r.e. zeitgeist-datah
                     shao 5834 .rce. zeitgeist-daemo
                     shao 5842 .rce. zeitgeist-fts
                     shao 5850 .rce. cat
                     shao 5852 .r.e. gnome-terminal
                     shao 5859 frce. unity-applicati
                     shao 5861 .rce. unity-files-dae
                     shao 5863 .rce. unity-music-dae
                     shao 5865 .rce. unity-lens-vide
                     shao ...

Read more...

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 954619] Re: package nfs-common 1:1.2.5-3ubuntu1 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 1

On Thu, Mar 15, 2012 at 01:49:11AM -0000, Valon wrote:
> $ mount | grep pipefs
> rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)

Ah, that's not what I expected to see. Have you rebooted since you
originally filed this bug?

Can you show ls -l /var/lib/nfs/rpc_pipefs/nfs?

Revision history for this message
Valon (darkelfshao) wrote :

I didn't really think about it and had shutdown since filing the bug report. Whoops!

$ls -l /var/lib/nfs/rpc_pipefs/nfs
total 0

Revision history for this message
Steve Langasek (vorlon) wrote :

Ok, unfortunately that means there's nothing else we can do here to diagnose. You should be able to upgrade nfs-common now without problems.

Changed in nfs-utils (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Valon (darkelfshao) wrote :
Download full text (4.4 KiB)

It happened again today during another update. I have not restarted the machine.

$ ls -lR /var/lib/nfs/rpc_pipefs
/var/lib/nfs/rpc_pipefs:
total 4
drwxr-xr-x 2 root root 4096 Feb 28 22:08 nfs

/var/lib/nfs/rpc_pipefs/nfs:
total 0

======================================================
$ mount | grep pipefs
$

======================================================
$ fuser -vm /var/lib/nfs/rpc_pipefs
                     USER PID ACCESS COMMAND
/var/lib/nfs/rpc_pipefs:
                     root kernel mount /
                     shao 5453 .r.e. gnome-session
                     shao 5498 .rce. dbus-launch
                     shao 5499 .rce. dbus-daemon
                     shao 5501 .rce. gvfsd
                     shao 5503 .rce. gvfs-fuse-daemo
                     shao 5514 .rce. gconfd-2
                     shao 5519 .r.e. gnome-settings-
                     shao 5530 .r.e. compiz
                     shao 5542 .rce. pulseaudio
                     shao 5544 .rce. gvfsd-metadata
                     shao 5550 .rce. gconf-helper
                     shao 5551 .r.e. gnome-fallback-
                     shao 5552 .r.e. vino-server
                     shao 5553 .r.e. nm-applet
                     shao 5558 .rce. gvfs-gdu-volume
                     shao 5560 .r.e. polkit-gnome-au
                     shao 5569 .rce. mission-control
                     shao 5571 .r.e. nautilus
                     shao 5574 .r.e. bluetooth-apple
                     shao 5580 .rce. goa-daemon
                     shao 5583 .rce. gvfs-gphoto2-vo
                     shao 5591 .rce. gvfs-afc-volume
                     shao 5605 Fr.e. dropbox
                     shao 5611 .rce. gvfsd-trash
                     shao 5616 .rce. gvfsd-burn
                     shao 5695 .rce. dconf-service
                     shao 5699 .rce. bamfdaemon
                     shao 5715 .r.e. gdu-notificatio
                     shao 5727 .rce. notify-osd
                     shao 5749 .rce. unity-panel-ser
                     shao 5768 .r.e. sh
                     shao 5769 .r.e. gtk-window-deco
                     shao 5771 .rce. indicator-appli
                     shao 5773 .rce. indicator-datet
                     shao 5776 .rce. indicator-messa
                     shao 5778 .rce. indicator-sound
                     shao 5782 .rce. indicator-sessi
                     shao 5786 frce. indicator-print
                     shao 5813 .rce. geoclue-master
                     shao 5815 .rce. ubuntu-geoip-pr
                     shao 5821 .r.e. telepathy-indic
                     shao 5827 .r.e. gnome-screensav
                     shao 5828 .r.e. zeitgeist-datah
                     shao 5834 .rce. zeitgeist-daemo
                     shao 5842 .rce. zeitgeist-fts
                     shao 5850 .rce. cat
                     shao 5852 Fr.e. gnome-terminal
                     shao ...

Read more...

Revision history for this message
Steve Langasek (vorlon) wrote :

On Fri, Mar 16, 2012 at 01:45:39AM -0000, Valon wrote:
> It happened again today during another update. I have not restarted the
> machine.

> $ ls -lR /var/lib/nfs/rpc_pipefs
> /var/lib/nfs/rpc_pipefs:
> total 4
> drwxr-xr-x 2 root root 4096 Feb 28 22:08 nfs

Ok. I don't know what created this directory, then; you should run 'sudo
rmdir /var/lib/nfs/rpc_pipefs/nfs', then the upgrade should complete.

Do you have nfs-kernel-server installed on this machine?

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
<email address hidden> <email address hidden>

Revision history for this message
Valon (darkelfshao) wrote :

nfs-kernel-server is not installed.

The update worked now.

Thanks.

Revision history for this message
Chad Miller (cmiller) wrote :
Download full text (5.1 KiB)

$ sudo apt-get dist-upgrade
...
Setting up nfs-common (1:1.2.5-3ubuntu2) ...
Installing new version of config file /etc/init/idmapd.conf ...
Installing new version of config file /etc/init/gssd.conf ...
Replacing config file /etc/idmapd.conf with new version
Replacing config file /etc/default/nfs-common with new version
idmapd stop/waiting
rmdir: failed to remove `/var/lib/nfs/rpc_pipefs': Directory not empty
dpkg: error processing nfs-common (--configure):
 subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of nfs-kernel-server:
 nfs-kernel-server depends on nfs-common (= 1:1.2.5-3ubuntu2); however:
  Package nfs-common is not configured yet.
dpkg: error processing nfs-kernel-server (--configure):
 dependency problems - leaving unconfigured
Setting up dmsetup (2:1.02.48-4ubuntu7) ...
No apport report written because MaxReports is reached already

$ sudo apt-get dist-upgrade
...
Setting up nfs-common (1:1.2.5-3ubuntu2) ...
rmdir: failed to remove `/var/lib/nfs/rpc_pipefs': Directory not empty
dpkg: error processing nfs-common (--configure):
 subprocess installed post-installation script returned error exit status 1

$ ls -l /var/lib/nfs/rpc_pipefs
total 20
dr-xr-xr-x 2 root root 4096 Apr 21 2007 lockd
dr-xr-xr-x 2 root root 4096 Apr 21 2007 mount
dr-xr-xr-x 2 root root 4096 Apr 21 2007 nfs
dr-xr-xr-x 2 root root 4096 Apr 21 2007 portmap
dr-xr-xr-x 2 root root 4096 Apr 21 2007 statd

$ mount |grep pipefs

$ fuser -vm /var/lib/nfs/rpc_pipefs
                     USER PID ACCESS COMMAND
/var/lib/nfs/rpc_pipefs:
                     root kernel mount /
                     cmiller 2640 Frce. gnome-session
                     cmiller 2682 .rce. gpg-agent
                     cmiller 2685 .rce. dbus-launch
                     cmiller 2686 .rce. dbus-daemon
                     cmiller 2692 .rce. gconfd-2
                     cmiller 2698 Frce. gnome-settings-
                     cmiller 2707 .rce. gvfsd
                     cmiller 2712 .rce. gvfs-fuse-daemo
                     cmiller 2719 Frce. gsd-printer
                     cmiller 2724 .rce. gnome-screensav
                     cmiller 2725 Frce. compiz
                     cmiller 2737 Frce. gvfsd-metadata
                     cmiller 2747 Frce. polkit-gnome-au
                     cmiller 2749 Frce. nm-applet
                     cmiller 2751 .rce. bash
                     cmiller 2753 Frce. gnome-fallback-
                     cmiller 2754 Frce. nautilus
                     cmiller 2759 .rce. gvfs-gdu-volume
                     cmiller 2760 Frce. deluge-web
                     cmiller 2761 Frce. bluetooth-apple
                     cmiller 2770 .rce. gvfsd-burn
                     cmiller 2772 .rce. gvfs-gphoto2-vo
                     cmiller 2782 .rce. gvfs-afc-volume
                     cmiller 2793 .rce. dconf-service
                     cmiller 2800 .rce. gvfsd-trash
                     c...

Read more...

Changed in nfs-utils (Ubuntu):
status: Invalid → New
Revision history for this message
Steve Langasek (vorlon) wrote :

> dr-xr-xr-x 2 root root 4096 Apr 21 2007 lockd

Huh. Looks like something that predates rpc_pipefs.

Ok, will switch this to an rm -rf. Thanks for the analysis, Chad.

Changed in nfs-utils (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nfs-utils - 1:1.2.5-3ubuntu3

---------------
nfs-utils (1:1.2.5-3ubuntu3) precise; urgency=low

  * In some cases, /var/lib/nfs/rpc_pipefs is successfully unmounted on
    upgrade but the directory still has contents within it. Since this is
    /var/lib we shouldn't assume it's ok for delete these; instead, pass
    --ignore-fail-on-non-empty to rmdir. LP: #954619.
 -- Steve Langasek <email address hidden> Sun, 08 Apr 2012 22:44:40 -0700

Changed in nfs-utils (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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