Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zfs-2.2.0-rc4 will not DKMS .deb install on Devuan Chimaera, errors out #15253

Open
kneutron opened this issue Sep 9, 2023 · 4 comments
Open
Labels
Component: Packaging custom packages Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@kneutron
Copy link

kneutron commented Sep 9, 2023

System information

Type Version/Name
Distribution Name Devuan (Debian derivative, no systemd)
Distribution Version 4
Kernel Version Latest 5.10.0-25-amd64 #1 SMP Debian 5.10.191-1 (2023-08-16)
Architecture AMD64
OpenZFS Version 2.2.0-rc4

Describe the problem you're observing

dpkg -i *deb

(Reading database ... 141838 files and directories currently installed.)
Preparing to unpack libnvpair3_2.2.0-0_amd64.deb ...
Unpacking libnvpair3 (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack libuutil3_2.2.0-0_amd64.deb ...
Unpacking libuutil3 (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack libzfs5_2.2.0-0_amd64.deb ...
Unpacking libzfs5 (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack libzfs5-devel_2.2.0-0_amd64.deb ...
Unpacking libzfs5-devel (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack libzpool5_2.2.0-0_amd64.deb ...
Unpacking libzpool5 (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack python3-pyzfs_2.2.0-0_amd64.deb ...
Unpacking python3-pyzfs (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack zfs_2.2.0-0_amd64.deb ...
Unpacking zfs (2.2.0-0) over (2.2.0-0) ...

Preparing to unpack zfs-dkms_2.2.0-0_amd64.deb ...
Error! The module/version combo: zfs-2.2.0
is not located in the DKMS tree.
dpkg: warning: old zfs-dkms package pre-removal script subprocess returned error exit status 3
dpkg: trying script from the new package instead ...

Error! The module/version combo: zfs-2.2.0
is not located in the DKMS tree.
dpkg: error processing archive zfs-dkms_2.2.0-0_amd64.deb (--install):
new zfs-dkms package pre-removal script subprocess returned error exit status 3

Preparing to unpack zfs-dracut_2.2.0-0_amd64.deb ...
Unpacking zfs-dracut (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack zfs-initramfs_2.2.0-0_amd64.deb ...
Unpacking zfs-initramfs (2.2.0-0) over (2.2.0-0) ...
Preparing to unpack zfs-test_2.2.0-0_amd64.deb ...
Unpacking zfs-test (2.2.0-0) over (2.2.0-0) ...
Setting up libnvpair3 (2.2.0-0) ...
Setting up libuutil3 (2.2.0-0) ...
Setting up libzfs5 (2.2.0-0) ...
Setting up libzfs5-devel (2.2.0-0) ...
Setting up libzpool5 (2.2.0-0) ...
Setting up python3-pyzfs (2.2.0-0) ...
Setting up zfs (2.2.0-0) ...
Setting up zfs-dracut (2.2.0-0) ...
Setting up zfs-initramfs (2.2.0-0) ...
Setting up zfs-test (2.2.0-0) ...
Processing triggers for libc-bin (2.31-13+deb11u6) ...
Processing triggers for man-db (2.9.4-2) ...

Errors were encountered while processing:
zfs-dkms_2.2.0-0_amd64.deb

modprobe zfs # Fails

modprobe: FATAL: Module zfs not found in directory /lib/modules/5.10.0-25-amd64

Describe how to reproduce the problem

I uninstalled all previous existing ZFS .deb packages first

Then compile zfs from source (have done this many times before)

Issue still occurs after reboot and updating all installed packages + latest kernel version

Not finding any further info in sys logs

Include any warning/errors/backtraces from the system logs

@kneutron kneutron added the Type: Defect Incorrect behavior (e.g. crash, hang) label Sep 9, 2023
@kneutron
Copy link
Author

kneutron commented Sep 9, 2023

NOTE I tried reinstalling known-good zfs-2.1.10 and the zfs dkms package was wedged, would not downgrade or remove, getting same error 3 on pre-removal script.

Followed instructions below and moved /var/lib/dpkg/info/zfs-dkms.prerm file out of the way, this allowed removal of the bad RC4 dkms .deb and re-install of 2.1.10 with a simple dpkg -i

FIX:
https://stackoverflow.com/questions/48431372/removing-broken-packages-in-ubuntu

This may be an error in the RC4 pre-removal script(?) zfs 2.1.10 reinstalled OK from existing .deb packages and modprobe zfs worked OK.

@rincebrain rincebrain added the Component: Packaging custom packages label Sep 19, 2023
@peterdk
Copy link

peterdk commented Sep 23, 2023

I have sort of the same issue. I built ZFS 2.2.0-0-RC4 debs from source on Ubuntu 22.04 LTS with make deb. zfs-dkms_2.2.0-0_amd64.deb install does not trigger a compile of the kernel module, and a subsequent install of the deb complains about that it cannot remove previous module (it's not build, so yeah).
I do not see any error in the dpkg command the first time, it just removes old module and then does not compile new one, but continues installing the rest of the ZFS debs.

So yeah, DKMS is broken with debs on 2.2.0-RC4.

@AllKind
Copy link
Contributor

AllKind commented Oct 18, 2023

I tried to solve this issue and came up with: #15415
Looking at your error messages it seems you used the 'old' way to create the .deb files (converting rpms to deb files using Alien).
I couldn't test my solution with 2.2.0 yet, but in theory it should work.
It would be nice, if someone could test it with 2.2.0 and my patch applied!

@AllKind
Copy link
Contributor

AllKind commented Nov 8, 2023

@behlendorf
As #15415 has been merged, this issue should be resolved (as long as it goes into the next 2.1 and 2.2 releases).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Packaging custom packages Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

4 participants