autofs upgrade freezes (when configured)

Bug #12975 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
autofs (Debian)
Fix Released
Unknown
autofs (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #295477 http://bugs.debian.org/295477

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #295477 http://bugs.debian.org/295477

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 16 Feb 2005 02:54:05 +0100
From: Vincent Lefevre <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: autofs upgrade freezes (when configured)

Package: autofs
Version: 4.1.3+4.1.4beta2-1
Severity: grave
Justification: renders package unusable

When upgrading autofs:

Setting up autofs (4.1.3+4.1.4beta2-1) ...
Stopping automounter: done.
Starting automounter: done.

Then it freezes. I need to type Ctrl-C and I get:

dpkg: error processing autofs (--configure):
 subprocess post-installation script killed by signal (Interrupt)
Errors were encountered while processing:
 autofs
E: Sub-process /usr/bin/dpkg returned an error code (1)

Same problem after an "apt-get install -f".

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages autofs depends on:
ii debconf 1.4.45 Debian configuration management sy
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* autofs/upgrade-from-broken-version:

Revision history for this message
In , Steinar H. Gunderson (sesse) wrote : Re: Bug#295477: autofs upgrade freezes (when configured)

On Wed, Feb 16, 2005 at 02:54:05AM +0100, Vincent Lefevre wrote:
> Then it freezes. I need to type Ctrl-C and I get:
>
> dpkg: error processing autofs (--configure):
> subprocess post-installation script killed by signal (Interrupt)
> Errors were encountered while processing:
> autofs
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Same problem after an "apt-get install -f".

First of all, which version are you upgrading from?

Second, could you please try running

  sh -x -e /var/lib/dpkg/info/autofs.postinst configure <old-version>
  sh -x -e /etc/init.d/autofs restart

and give what both print out? I can't really see a good reason why autofs
upgrade should hang _after_ it has been successfully restarted...

/* Steinar */
--
Homepage: http://www.sesse.net/

Revision history for this message
In , Steinar H. Gunderson (sesse) wrote : tagging 295477

# Automatically generated email from bts, devscripts version 2.8.10
tags 295477 sid

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 16 Feb 2005 03:33:25 +0100
From: "Steinar H. Gunderson" <email address hidden>
To: Vincent Lefevre <email address hidden>, <email address hidden>
Subject: Re: Bug#295477: autofs upgrade freezes (when configured)

On Wed, Feb 16, 2005 at 02:54:05AM +0100, Vincent Lefevre wrote:
> Then it freezes. I need to type Ctrl-C and I get:
>
> dpkg: error processing autofs (--configure):
> subprocess post-installation script killed by signal (Interrupt)
> Errors were encountered while processing:
> autofs
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> Same problem after an "apt-get install -f".

First of all, which version are you upgrading from?

Second, could you please try running

  sh -x -e /var/lib/dpkg/info/autofs.postinst configure <old-version>
  sh -x -e /etc/init.d/autofs restart

and give what both print out? I can't really see a good reason why autofs
upgrade should hang _after_ it has been successfully restarted...

/* Steinar */
--
Homepage: http://www.sesse.net/

Revision history for this message
In , Aaron M. Ucko (ucko) wrote : autofs.postinst vs. debconf

Package: autofs
Version: 4.1.3+4.1.4beta2-1
Followup-For: Bug #295477

I ran into this too. In general, maintainer scripts that use debconf
and start background processes (particularly daemons that will run
indefinitely) should first call db_stop to avoid trouble. However,
AFAICT, autofs's postinst does not really need debconf at all, so it
should suffice to stop sourcing /usr/share/debconf/confmodule.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages autofs depends on:
ii debconf 1.4.45 Debian configuration management sy
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* autofs/upgrade-from-broken-version:

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 16 Feb 2005 03:48:07 +0100
From: Steinar H. Gunderson <email address hidden>
To: <email address hidden>
Subject: tagging 295477

# Automatically generated email from bts, devscripts version 2.8.10
tags 295477 sid

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 15 Feb 2005 22:21:47 -0500
From: "Aaron M. Ucko" <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Cc: <email address hidden>
Subject: autofs.postinst vs. debconf

Package: autofs
Version: 4.1.3+4.1.4beta2-1
Followup-For: Bug #295477

I ran into this too. In general, maintainer scripts that use debconf
and start background processes (particularly daemons that will run
indefinitely) should first call db_stop to avoid trouble. However,
AFAICT, autofs's postinst does not really need debconf at all, so it
should suffice to stop sourcing /usr/share/debconf/confmodule.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages autofs depends on:
ii debconf 1.4.45 Debian configuration management sy
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* autofs/upgrade-from-broken-version:

Revision history for this message
In , Vincent Lefevre (vincent-vinc17) wrote : Re: Bug#295477: autofs upgrade freezes (when configured)

On 2005-02-16 03:33:25 +0100, Steinar H. Gunderson wrote:
> First of all, which version are you upgrading from?

4.1.3-9

> Second, could you please try running
>
> sh -x -e /var/lib/dpkg/info/autofs.postinst configure <old-version>

dixsept:/home/vlefevre# sh -x -e /var/lib/dpkg/info/autofs.postinst configure 4.1.3-9
+ '[' -f /etc/default/autofs ']'
+ . /etc/default/autofs
++ TIMEOUT=300
++ DISABLE_DIRECT=1
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/autofs.postinst configure 4.1.3-9
Stopping automounter: done.
Starting automounter: done.

and I need to type Ctrl-C.

> sh -x -e /etc/init.d/autofs restart

Since there's a lot of output, I'm redirecting stderr and attaching
the result.

dixsept:/home/vlefevre# sh -x -e /etc/init.d/autofs restart 2> autofs.out
Stopping automounter: done.
Starting automounter: done.
dixsept:/home/vlefevre#

> and give what both print out? I can't really see a good reason why
> autofs upgrade should hang _after_ it has been successfully
> restarted...

I don't see either. /etc/init.d/autofs is working as expected.
But the autofs.postinst script doesn't.

--
Vincent Lefèvre <email address hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (13.4 KiB)

Message-ID: <email address hidden>
Date: Wed, 16 Feb 2005 09:26:32 +0100
From: Vincent Lefevre <email address hidden>
To: "Steinar H. Gunderson" <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#295477: autofs upgrade freezes (when configured)

--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

On 2005-02-16 03:33:25 +0100, Steinar H. Gunderson wrote:
> First of all, which version are you upgrading from?

4.1.3-9

> Second, could you please try running
>
> sh -x -e /var/lib/dpkg/info/autofs.postinst configure <old-version>

dixsept:/home/vlefevre# sh -x -e /var/lib/dpkg/info/autofs.postinst configure 4.1.3-9
+ '[' -f /etc/default/autofs ']'
+ . /etc/default/autofs
++ TIMEOUT=300
++ DISABLE_DIRECT=1
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/autofs.postinst configure 4.1.3-9
Stopping automounter: done.
Starting automounter: done.

and I need to type Ctrl-C.

> sh -x -e /etc/init.d/autofs restart

Since there's a lot of output, I'm redirecting stderr and attaching
the result.

dixsept:/home/vlefevre# sh -x -e /etc/init.d/autofs restart 2> autofs.out
Stopping automounter: done.
Starting automounter: done.
dixsept:/home/vlefevre#

> and give what both print out? I can't really see a good reason why
> autofs upgrade should hang _after_ it has been successfully
> restarted...

I don't see either. /etc/init.d/autofs is working as expected.
But the autofs.postinst script doesn't.

--
Vincent Lef�e <email address hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="autofs.out"

+ FLAGS='defaults 21'
+ DAEMON=/usr/sbin/automount
++ basename /usr/sbin/automount
+ prog=automount
+ initdir=/etc/init.d
+ test -e /usr/sbin/automount
+ system=unknown
+ '[' -f /etc/debian_version ']'
+ system=debian
+ '[' debian = redhat ']'
+ '[' debian = debian ']'
+ thisscript=/etc/init.d/autofs
+ '[' '!' -f /etc/init.d/autofs ']'
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ export PATH
+ localoptions=
+ daemonoptions=
+ '[' debian = redhat ']'
+ '[' debian = debian ']'
+ TIMEOUT=300
+ DISABLE_DIRECT=1
+ DAEMON_EXIT_WAIT=20
+ '[' -f /etc/default/autofs ']'
+ . /etc/default/autofs
++ TIMEOUT=300
++ DISABLE_DIRECT=1
+ daemonoptions=' --timeout=300'
+ RETVAL=0
+ '[' debian = debian ']'
+ debian restart
+ set -e
+ case "$1" in
+ debian stop
+ set -e
+ case "$1" in
+ echo -n 'Stopping automounter:'
+ umount_loopback
++ LC_ALL=C
++ awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts
+ loops=
++ LC_ALL=C
++ awk '!/^#/ && $1 ~ /^automount/ {print $2}' /proc/mounts
+ automounts='/local
/users
/cluster'
++ LC_ALL=C
++ awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts
+ loopmnts=
+ any=0
++ ls /var/run/autofs/_cluster.pid /var/run/autofs/_local.pid /var/run/autofs/_users.pid
+ for file in '`ls /var/run/auto...

Revision history for this message
In , Steinar H. Gunderson (sesse) wrote : Re: Bug#295477: autofs.postinst vs. debconf

On Tue, Feb 15, 2005 at 10:21:47PM -0500, Aaron M. Ucko wrote:
> I ran into this too. In general, maintainer scripts that use debconf
> and start background processes (particularly daemons that will run
> indefinitely) should first call db_stop to avoid trouble.

Aha, db_stop is the problem. I'll make an upload later today, thanks.

> However, AFAICT, autofs's postinst does not really need debconf at all, so
> it should suffice to stop sourcing /usr/share/debconf/confmodule.

I tried doing that, but lintian complained, saying it was required.

/* Steinar */
--
Homepage: http://www.sesse.net/

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 16 Feb 2005 12:03:33 +0100
From: "Steinar H. Gunderson" <email address hidden>
To: "Aaron M. Ucko" <email address hidden>, <email address hidden>
Subject: Re: Bug#295477: autofs.postinst vs. debconf

On Tue, Feb 15, 2005 at 10:21:47PM -0500, Aaron M. Ucko wrote:
> I ran into this too. In general, maintainer scripts that use debconf
> and start background processes (particularly daemons that will run
> indefinitely) should first call db_stop to avoid trouble.

Aha, db_stop is the problem. I'll make an upload later today, thanks.

> However, AFAICT, autofs's postinst does not really need debconf at all, so
> it should suffice to stop sourcing /usr/share/debconf/confmodule.

I tried doing that, but lintian complained, saying it was required.

/* Steinar */
--
Homepage: http://www.sesse.net/

Revision history for this message
In , Steinar H. Gunderson (sesse) wrote : Bug#295477: fixed in autofs 4.1.3+4.1.4beta2-2

Source: autofs
Source-Version: 4.1.3+4.1.4beta2-2

We believe that the bug you reported is fixed in the latest version of
autofs, which is due to be installed in the Debian FTP archive:

autofs-hesiod_4.1.3+4.1.4beta2-2_i386.deb
  to pool/main/a/autofs/autofs-hesiod_4.1.3+4.1.4beta2-2_i386.deb
autofs-ldap_4.1.3+4.1.4beta2-2_i386.deb
  to pool/main/a/autofs/autofs-ldap_4.1.3+4.1.4beta2-2_i386.deb
autofs_4.1.3+4.1.4beta2-2.diff.gz
  to pool/main/a/autofs/autofs_4.1.3+4.1.4beta2-2.diff.gz
autofs_4.1.3+4.1.4beta2-2.dsc
  to pool/main/a/autofs/autofs_4.1.3+4.1.4beta2-2.dsc
autofs_4.1.3+4.1.4beta2-2_i386.deb
  to pool/main/a/autofs/autofs_4.1.3+4.1.4beta2-2_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steinar H. Gunderson <email address hidden> (supplier of updated autofs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 16 Feb 2005 13:20:03 +0100
Source: autofs
Binary: autofs-hesiod autofs-ldap autofs
Architecture: source i386
Version: 4.1.3+4.1.4beta2-2
Distribution: unstable
Urgency: high
Maintainer: Steinar H. Gunderson <email address hidden>
Changed-By: Steinar H. Gunderson <email address hidden>
Description:
 autofs - A kernel-based automounter for Linux
 autofs-hesiod - Hesiod map support for autofs
 autofs-ldap - LDAP map support for autofs
Closes: 295477
Changes:
 autofs (4.1.3+4.1.4beta2-2) unstable; urgency=high
 .
   * Urgency=high, closes an RC bug.
   * Call db_stop in postinst and config at the end, to avoid hangs on some
     machines on installation. (Closes: #295477)
Files:
 9b1e5cecfe1dc4108e75bd3cba203b95 673 utils extra autofs_4.1.3+4.1.4beta2-2.dsc
 fca7cc23b5a7dd515f88a2d4893f2805 28583 utils extra autofs_4.1.3+4.1.4beta2-2.diff.gz
 b94d263f179c2fa0187f33eb6bc98138 104076 utils extra autofs_4.1.3+4.1.4beta2-2_i386.deb
 3d0e83c81afb14bf53dccf00f8c1d60a 22744 utils extra autofs-hesiod_4.1.3+4.1.4beta2-2_i386.deb
 4d319450ab7a46e27f9f9bf5789f4560 34818 utils extra autofs-ldap_4.1.3+4.1.4beta2-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCEzvRXKRQ3lK3SH4RAkOjAJ0XyncDd0g3VUyzJca4VpoL+1QsmgCfUCY4
bQOiZ4EbM1lnQQOIh862E3I=
=kER8
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 16 Feb 2005 07:32:18 -0500
From: <email address hidden> (Steinar H. Gunderson)
To: <email address hidden>
Subject: Bug#295477: fixed in autofs 4.1.3+4.1.4beta2-2

Source: autofs
Source-Version: 4.1.3+4.1.4beta2-2

We believe that the bug you reported is fixed in the latest version of
autofs, which is due to be installed in the Debian FTP archive:

autofs-hesiod_4.1.3+4.1.4beta2-2_i386.deb
  to pool/main/a/autofs/autofs-hesiod_4.1.3+4.1.4beta2-2_i386.deb
autofs-ldap_4.1.3+4.1.4beta2-2_i386.deb
  to pool/main/a/autofs/autofs-ldap_4.1.3+4.1.4beta2-2_i386.deb
autofs_4.1.3+4.1.4beta2-2.diff.gz
  to pool/main/a/autofs/autofs_4.1.3+4.1.4beta2-2.diff.gz
autofs_4.1.3+4.1.4beta2-2.dsc
  to pool/main/a/autofs/autofs_4.1.3+4.1.4beta2-2.dsc
autofs_4.1.3+4.1.4beta2-2_i386.deb
  to pool/main/a/autofs/autofs_4.1.3+4.1.4beta2-2_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steinar H. Gunderson <email address hidden> (supplier of updated autofs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 16 Feb 2005 13:20:03 +0100
Source: autofs
Binary: autofs-hesiod autofs-ldap autofs
Architecture: source i386
Version: 4.1.3+4.1.4beta2-2
Distribution: unstable
Urgency: high
Maintainer: Steinar H. Gunderson <email address hidden>
Changed-By: Steinar H. Gunderson <email address hidden>
Description:
 autofs - A kernel-based automounter for Linux
 autofs-hesiod - Hesiod map support for autofs
 autofs-ldap - LDAP map support for autofs
Closes: 295477
Changes:
 autofs (4.1.3+4.1.4beta2-2) unstable; urgency=high
 .
   * Urgency=high, closes an RC bug.
   * Call db_stop in postinst and config at the end, to avoid hangs on some
     machines on installation. (Closes: #295477)
Files:
 9b1e5cecfe1dc4108e75bd3cba203b95 673 utils extra autofs_4.1.3+4.1.4beta2-2.dsc
 fca7cc23b5a7dd515f88a2d4893f2805 28583 utils extra autofs_4.1.3+4.1.4beta2-2.diff.gz
 b94d263f179c2fa0187f33eb6bc98138 104076 utils extra autofs_4.1.3+4.1.4beta2-2_i386.deb
 3d0e83c81afb14bf53dccf00f8c1d60a 22744 utils extra autofs-hesiod_4.1.3+4.1.4beta2-2_i386.deb
 4d319450ab7a46e27f9f9bf5789f4560 34818 utils extra autofs-ldap_4.1.3+4.1.4beta2-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCEzvRXKRQ3lK3SH4RAkOjAJ0XyncDd0g3VUyzJca4VpoL+1QsmgCfUCY4
bQOiZ4EbM1lnQQOIh862E3I=
=kER8
-----END PGP SIGNATURE-----

Revision history for this message
Matt Zimmerman (mdz) wrote :

autofs in Hoary doesn't use debconf.

Changed in autofs:
status: Unknown → 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.