Debian Bug report logs - #1024326
bullseye to bookworm upgrade failure: Could not locate dkms.conf file

version graph

Package: zfs-dkms; Maintainer for zfs-dkms is Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>; Source for zfs-dkms is src:zfs-linux (PTS, buildd, popcon).

Reported by: Antoine Beaupre <anarcat@debian.org>

Date: Thu, 17 Nov 2022 15:33:01 UTC

Severity: important

Tags: moreinfo, unreproducible

Found in version zfs-linux/2.1.6-3

Done: 陈 晟祺 <harry-chen@outlook.com>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>:
Bug#1024326; Package zfs-dkms. (Thu, 17 Nov 2022 15:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Antoine Beaupre <anarcat@debian.org>:
New Bug report received and forwarded. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>. (Thu, 17 Nov 2022 15:33:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Antoine Beaupre <anarcat@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bullseye to bookworm upgrade failure: Could not locate dkms.conf file
Date: Thu, 17 Nov 2022 10:31:25 -0500
Package: zfs-dkms
Version: 2.1.6-3
Severity: serious

I have tried to upgrade to bookworm today and kernel builds fail on
zfs-dkms. It fails with:

dkms: running auto installation service for kernel 6.0.0-4-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist.

It's odd because zfs 2.0.3 is gone now... The package has been
upgraded at this point... Yet the /var/lib/dkms/zfs/2.0.3 directory
was still around. Removing it fixes the problem:

    rm -rf /var/lib/dkms/zfs/2.0.3

Note that I am doing batch upgrades with a special procedure, with
this command:

    env DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none APT_LISTBUGS_FRONTEND=none UCF_FORCE_CONFFOLD=y \
        apt full-upgrade -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' &&

... which might have cause the old directory to not be removed.

See this for my upgrade procedure:

https://anarc.at/services/upgrades/bookworm/

More of the error log:

Setting up linux-image-6.0.0-4-amd64 (6.0.8-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.0.0-4-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
dpkg: error processing package linux-image-6.0.0-4-amd64 (--configure):
 installed linux-image-6.0.0-4-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
 linux-image-amd64 depends on linux-image-6.0.0-4-amd64 (= 6.0.8-1); however:
  Package linux-image-6.0.0-4-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up linux-headers-6.0.0-4-amd64 (6.0.8-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.0.0-4-amd64:Error! Could not locate dkms.conf file.
File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist.
 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.0.0-4-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.0.0-4-amd64 (--configure):
 installed linux-headers-6.0.0-4-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-6.0.0-4-amd64 (= 6.0.8-1); however:
  Package linux-headers-6.0.0-4-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.0.0-4-amd64
 linux-image-amd64
 linux-headers-6.0.0-4-amd64
 linux-headers-amd64



-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-4-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zfs-dkms depends on:
ii  debconf [debconf-2.0]  1.5.79
pn  dkms                   <none>
ii  file                   1:5.41-4
ii  libc6-dev [libc-dev]   2.36-4
ii  libpython3-stdlib      3.10.6-1
ii  lsb-release            12.0-1
ii  perl                   5.36.0-4
ii  python3-distutils      3.10.8-1

Versions of packages zfs-dkms recommends:
ii  linux-libc-dev  6.0.8-1
pn  zfs-zed         <none>
pn  zfsutils-linux  <none>

Versions of packages zfs-dkms suggests:
ii  debhelper  13.10.1



Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>:
Bug#1024326; Package zfs-dkms. (Sun, 04 Dec 2022 02:00:02 GMT) (full text, mbox, link).


Acknowledgement sent to "M. Zhou" <lumin@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>. (Sun, 04 Dec 2022 02:00:02 GMT) (full text, mbox, link).


Message #10 received at 1024326@bugs.debian.org (full text, mbox, reply):

From: "M. Zhou" <lumin@debian.org>
To: Antoine Beaupre <anarcat@debian.org>, 1024326@bugs.debian.org
Subject: Re: [Pkg-zfsonlinux-devel] Bug#1024326: bullseye to bookworm upgrade failure: Could not locate dkms.conf file
Date: Sat, 03 Dec 2022 20:56:27 -0500
Control: severity -1 important
Control: tags -1 +moreinfo

I'm still not sure about why the upgrade failed, and I could not
reproduce the problem in a clean chroot using the following script:

https://salsa.debian.org/zfsonlinux-team/zfs/-/blob/master/debian/tests/sbuild-shell-bullseye-to-bookworm.sh

So I'm downgrading the bug's severity to unblock migration.

On Thu, 2022-11-17 at 10:31 -0500, Antoine Beaupre wrote:
> Package: zfs-dkms
> Version: 2.1.6-3
> Severity: serious
> 
> I have tried to upgrade to bookworm today and kernel builds fail on
> zfs-dkms. It fails with:
> 
> dkms: running auto installation service for kernel 6.0.0-4-
> amd64:Error! Could not locate dkms.conf file.
> File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist.
> 
> It's odd because zfs 2.0.3 is gone now... The package has been
> upgraded at this point... Yet the /var/lib/dkms/zfs/2.0.3 directory
> was still around. Removing it fixes the problem:
> 
>     rm -rf /var/lib/dkms/zfs/2.0.3
> 
> Note that I am doing batch upgrades with a special procedure, with
> this command:
> 
>     env DEBIAN_FRONTEND=noninteractive APT_LISTCHANGES_FRONTEND=none
> APT_LISTBUGS_FRONTEND=none UCF_FORCE_CONFFOLD=y \
>         apt full-upgrade -y -o Dpkg::Options::='--force-confdef' -o
> Dpkg::Options::='--force-confold' &&
> 
> ... which might have cause the old directory to not be removed.
> 
> See this for my upgrade procedure:
> 
> https://anarc.at/services/upgrades/bookworm/
> 
> More of the error log:
> 
> Setting up linux-image-6.0.0-4-amd64 (6.0.8-1) ...
> /etc/kernel/postinst.d/dkms:
> dkms: running auto installation service for kernel 6.0.0-4-
> amd64:Error! Could not locate dkms.conf file.
> File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist.
>  failed!
> run-parts: /etc/kernel/postinst.d/dkms exited with return code 4
> dpkg: error processing package linux-image-6.0.0-4-amd64 (--
> configure):
>  installed linux-image-6.0.0-4-amd64 package post-installation script
> subprocess returned error exit status 1
> dpkg: dependency problems prevent configuration of linux-image-amd64:
>  linux-image-amd64 depends on linux-image-6.0.0-4-amd64 (= 6.0.8-1);
> however:
>   Package linux-image-6.0.0-4-amd64 is not configured yet.
> 
> dpkg: error processing package linux-image-amd64 (--configure):
>  dependency problems - leaving unconfigured
> Setting up linux-headers-6.0.0-4-amd64 (6.0.8-1) ...
> /etc/kernel/header_postinst.d/dkms:
> dkms: running auto installation service for kernel 6.0.0-4-
> amd64:Error! Could not locate dkms.conf file.
> File: /var/lib/dkms/zfs/2.0.3/source/dkms.conf does not exist.
>  failed!
> run-parts: /etc/kernel/header_postinst.d/dkms exited with return code
> 4
> Failed to process /etc/kernel/header_postinst.d at
> /var/lib/dpkg/info/linux-headers-6.0.0-4-amd64.postinst line 11.
> dpkg: error processing package linux-headers-6.0.0-4-amd64 (--
> configure):
>  installed linux-headers-6.0.0-4-amd64 package post-installation
> script subprocess returned error exit status 1
> dpkg: dependency problems prevent configuration of linux-headers-
> amd64:
>  linux-headers-amd64 depends on linux-headers-6.0.0-4-amd64 (= 6.0.8-
> 1); however:
>   Package linux-headers-6.0.0-4-amd64 is not configured yet.
> 
> dpkg: error processing package linux-headers-amd64 (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  linux-image-6.0.0-4-amd64
>  linux-image-amd64
>  linux-headers-6.0.0-4-amd64
>  linux-headers-amd64





Severity set to 'important' from 'serious' Request was from "M. Zhou" <lumin@debian.org> to 1024326-submit@bugs.debian.org. (Sun, 04 Dec 2022 02:00:03 GMT) (full text, mbox, link).


Added tag(s) moreinfo. Request was from "M. Zhou" <lumin@debian.org> to 1024326-submit@bugs.debian.org. (Sun, 04 Dec 2022 02:00:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>:
Bug#1024326; Package zfs-dkms. (Tue, 05 Dec 2023 10:21:06 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Beckmann <anbe@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@alioth-lists.debian.net>. (Tue, 05 Dec 2023 10:21:06 GMT) (full text, mbox, link).


Message #19 received at 1024326@bugs.debian.org (full text, mbox, reply):

From: Andreas Beckmann <anbe@debian.org>
To: Debian Bug Tracking System <1024326@bugs.debian.org>
Subject: Re: bullseye to bookworm upgrade failure: Could not locate dkms.conf file
Date: Tue, 05 Dec 2023 11:17:49 +0100
Followup-For: Bug #1024326
Control: tag -1 unreproducible

This is probably some rare corruption of the dkms data tree and to be
blamed on dkms (not neccessarily for creating it, but by not handling
some error conditions). Feel free to reassign.
There have been some improvements to make dkms more resilient against
such issues (if we somehow could reprocude getting in such a state).

Andreas



Added tag(s) unreproducible. Request was from Andreas Beckmann <anbe@debian.org> to 1024326-submit@bugs.debian.org. (Tue, 05 Dec 2023 10:21:07 GMT) (full text, mbox, link).


Reply sent to 陈 晟祺 <harry-chen@outlook.com>:
You have taken responsibility. (Thu, 15 Feb 2024 08:06:02 GMT) (full text, mbox, link).


Notification sent to Antoine Beaupre <anarcat@debian.org>:
Bug acknowledged by developer. (Thu, 15 Feb 2024 08:06:03 GMT) (full text, mbox, link).


Message #26 received at 1024326-done@bugs.debian.org (full text, mbox, reply):

From: 陈 晟祺 <harry-chen@outlook.com>
To: "990130-done@bugs.debian.org" <990130-done@bugs.debian.org>, "874541-done@bugs.debian.org" <874541-done@bugs.debian.org>, "909184-done@bugs.debian.org" <909184-done@bugs.debian.org>, "1024326-done@bugs.debian.org" <1024326-done@bugs.debian.org>
Subject: Closing stale bugs related to src:zfs-linux
Date: Thu, 15 Feb 2024 08:03:24 +0000
Closing some stale / inactive / unreproducible bugs.
Feel free to reopen / reassign with more details.


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 15 Mar 2024 07:26:21 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Nov 21 22:42:36 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.