[SOLVED] Proxmox 6 - ZED notifications: /usr/sbin/zed: undefined symbol: zpool_reopen

BrianS

New Member
Jul 25, 2019
4
0
1
33
When installing ZFS ZED for email notifications I run into the following problem:

Code:
 zfs-zed.service - ZFS Event Daemon (zed)
   Loaded: loaded (/lib/systemd/system/zfs-zed.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-07-24 10:59:08 CEST; 5h 40min ago
     Docs: man:zed(8)
  Process: 3258 ExecStart=/usr/sbin/zed -F (code=exited, status=127)
 Main PID: 3258 (code=exited, status=127)

Jul 24 10:59:08 pve1 systemd[1]: Started ZFS Event Daemon (zed).
Jul 24 10:59:08 pve1 zed[3258]: /usr/sbin/zed: symbol lookup error: /usr/sbin/zed: undefined symbol: zpool_reopen
Jul 24 10:59:08 pve1 systemd[1]: zfs-zed.service: Main process exited, code=exited, status=127/n/a
Jul 24 10:59:08 pve1 systemd[1]: zfs-zed.service: Failed with result 'exit-code'.

dmesg

Code:
[ 11.536000] ZFS: Loaded module v0.8.1-pve1, ZFS pool version 5000, ZFS filesystem version 5

dpkg

Code:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-
ii  zfsutils-linux 0.8.1-pve1   amd64        command-line tools to manage OpenZFS filesystems

How can I get ZED to function? I rely on it for notifications.
 
please post the output of:
* `pveversion -v`
* `dpkg -l |grep -i zfs`
 
This is a fresh Proxmox 6 installation.

pveversion

Code:
proxmox-ve: 6.0-2 (running kernel: 5.0.15-1-pve)
pve-manager: 6.0-4 (running version: 6.0-4/2a719255)
pve-kernel-5.0: 6.0-5
pve-kernel-helper: 6.0-5
pve-kernel-5.0.15-1-pve: 5.0.15-1
ceph-fuse: 12.2.11+dfsg1-2.1
corosync: 3.0.2-pve2
criu: 3.11-3
glusterfs-client: 5.5-3
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.10-pve1
libpve-access-control: 6.0-2
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-2
libpve-guest-common-perl: 3.0-1
libpve-http-server-perl: 3.0-2
libpve-storage-perl: 6.0-5
libqb0: 1.0.5-1
lvm2: 2.03.02-pve3
lxc-pve: 3.1.0-61
lxcfs: 3.0.3-pve60
novnc-pve: 1.0.0-60
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.0-5
pve-cluster: 6.0-4
pve-container: 3.0-3
pve-docs: 6.0-4
pve-edk2-firmware: 2.20190614-1
pve-firewall: 4.0-5
pve-firmware: 3.0-2
pve-ha-manager: 3.0-2
pve-i18n: 2.0-2
pve-qemu-kvm: 4.0.0-3
pve-xtermjs: 3.13.2-1
qemu-server: 6.0-5
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.1-pve1

dpkg

Code:
ii  libzfs2linux                         0.8.1-pve1                  amd64        OpenZFS filesystem library for Linux
ii  libzpool2linux                       0.8.1-pve1                  amd64        OpenZFS pool library for Linux
ii  zfs-initramfs                        0.8.1-pve1                  all          OpenZFS root filesystem capabilities for Linux - initramfs
ii  zfs-zed                              0.7.13-pve1~bpo2            amd64        OpenZFS Event Daemon
ii  zfsutils-linux                       0.8.1-pve1                  amd64        command-line tools to manage OpenZFS filesystems
 
Code:
eading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
It is the latest one in the repository?

Edit:

apt-cache
Code:
zfs-zed:
  Installed: 0.7.13-pve1~bpo2
  Candidate: 0.7.13-pve1~bpo2
  Version table:
 *** 0.7.13-pve1~bpo2 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
        100 /var/lib/dpkg/status
     0.7.13-pve1~bpo1 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.12-pve1~bpo1 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.12-2+deb10u1 500
        500 http://ftp.de.debian.org/debian buster/contrib amd64 Packages
     0.7.11-pve2~bpo1 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.11-pve1~bpo1 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.9-pve1~bpo9 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.8-pve1~bpo9 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.7-pve1~bpo9 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.6-pve1~bpo9 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.4-pve2~bpo9 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.3-pve1~bpo9 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.7.2-pve1~bpo90 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.6.5.11-pve18~bpo90 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.6.5.11-pve17~bpo90 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
     0.6.5.9-pve16~bpo90 500
        500 http://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages
 
just checked - it is in all pve repositories:
Code:
 apt-cache policy zfs-zed
zfs-zed:
  Installed: 0.8.1-pve1
  Candidate: 0.8.1-pve1
  Version table:
 *** 0.8.1-pve1 500
        500 http://repo.proxmox.com/enterprise/pve buster/pve-enterprise amd64 Packages
        500 http://download.proxmox.com/debian/pve buster/pve-no-subscription amd64 Packages
        500 http://download.proxmox.com/debian buster/pvetest amd64 Packages
        500 http://repo.proxmox.com/staging/pve buster/pve-6 amd64 Packages
        100 /var/lib/dpkg/status
     0.7.13-1~bpo10+1 100
        100 http://ftp.at.debian.org/debian buster-backports/contrib amd64 Packages

taking a closer looking at your output shows only versions from the PVE 5.x/stretch repositories :
ttp://download.proxmox.com/debian/pve stretch/pve-no-subscription amd64 Packages

PVE 6.x is based on debian buster not stretch - see https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_package_repositories

Out of curiosity: How did you setup the PVE 6.x version? (the ISO should have provided an pve-enterprise.list with the correct sources, and if you installed from debian you would not have gotten the other zfs packages in version 0.8.1 in the first place)

Hope this helps!
 
I am so sorry, I just realized I didn't update the provisioning scripts to use the buster pve-no-subscription, instead of stretch pve-no-subscription. I am sorry for wasting your time. Thank you for your help
 
No need to be sorry ! (happened to me one or two times as well ;)

Glad you resolved your problem!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!