[SOLVED] IPMI Tool error after v8 upgrade

Jan 2, 2021
17
0
6
39
After the upgrade to v8 I'm getting alerts for "IANA PEN registry open failed: No such file or directory" for a IPMI script that runs on my host. I've seen a lot of talk about this bug, but I can't decipher the root cause, or a solution. If I understand correctly this has been patched, maybe there was a regression somewhere in the latest patch? One example report https://groups.google.com/g/linux.debian.bugs.dist/c/ukUAcfnm280.

The tool seems to run just fine, but I'm getting email spam from this error. At the least does anyone have any idea how to suppress this error from generating email alerts from cron?

I've disabled my script for now for my sanity o_O
 
It is fixed in Debian Experimental, you may try to download the package from there and install if by hand via:

Code:
cd /tmp
wget http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-5_amd64.deb
dpkg -i ipmitool_1.8.19-5_amd64.deb

EDIT: Newest Version as of 2024-04-05 is the one from Debian Testing (Trixie):

Code:
cd /tmp
wget http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-7_amd64.deb
dpkg -i ipmitool_1.8.19-7_amd64.deb
 
Last edited:
It is fixed in Debian Experimental, you may try to download the package from there and install if by hand via:

Code:
cd /tmp
wget http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-5_amd64.deb
dpkg -i ipmitool_1.8.19-5_amd64.deb
@LnxBil that seems to have done the trick. Thank you so much for your simple and complete instructions for patching that. It's very much appreciated.
 
If you don't want to wait for the patch to arrive in Debian Bookworm and don't want to install packages from Debian Experimental, you can also just download the missing file yourself:

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt?h=debian/1.8.19-5
 
If you don't want to wait for the patch to arrive in Debian Bookworm and don't want to install packages from Debian Experimental, you can also just download the missing file yourself:

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt?h=debian/1.8.19-5
Appreciate this bit, way better fix.
 
  • Like
Reactions: iamrafkid
It is fixed in Debian Experimental, you may try to download the package from there and install if by hand via:

Code:
cd /tmp
wget http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-5_amd64.deb
dpkg -i ipmitool_1.8.19-5_amd64.deb
404 - the link is now http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-6_amd64.deb :)

but that didn't fix it for me:

Code:
/tmp# wget http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-6_amd64.deb
--2023-07-24 13:47:34--  http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-6_amd64.deb
Resolving ftp.debian.org (ftp.debian.org)... 146.75.122.132, 2a04:4e42:8e::644
Connecting to ftp.debian.org (ftp.debian.org)|146.75.122.132|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1972172 (1.9M) [application/vnd.debian.binary-package]
Saving to: ‘ipmitool_1.8.19-6_amd64.deb’

ipmitool_1.8.19-6_amd64.deb                    100%[====================================================================================================>]   1.88M  --.-KB/s    in 0.03s   

2023-07-24 13:47:34 (63.7 MB/s) - ‘ipmitool_1.8.19-6_amd64.deb’ saved [1972172/1972172]

:/tmp# dpkg -i ipmitool_1.8.19-6_amd64.deb
(Reading database ... 63100 files and directories currently installed.)
Preparing to unpack ipmitool_1.8.19-6_amd64.deb ...
Unpacking ipmitool (1.8.19-6) over (1.8.19-4) ...
Setting up ipmitool (1.8.19-6) ...
ipmievd.service is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.11.2-2) ...
:/tmp# service ipmievd start
:/tmp# ipmitool channel info 2
Get Device ID command failed: 0xd5 Command not supported in present state
IPMI command failed: Command not supported in present state
Unable to Get Channel Info
:/tmp# ipmitool mc reset warm
Get Device ID command failed: 0xd5 Command not supported in present state
MC reset command failed: Command not supported in present state
:/tmp# ipmitool mc reset cold
Get Device ID command failed: 0xd5 Command not supported in present state
Sent cold reset command to MC
:/tmp# ipmitool channel info 2
Get Device ID command failed: 0xd5 Command not supported in present state
IPMI command failed: Command not supported in present state
Unable to Get Channel Info
:/tmp# ipmitool channel info 2
Get Device ID command failed: 0xd5 Command not supported in present state
IPMI command failed: Command not supported in present state
Unable to Get Channel Info
:/tmp# ipmitool mc reset warm
Get Device ID command failed: 0xd5 Command not supported in present state
MC reset command failed: Command not supported in present state
:/tmp#


If you don't want to wait for the patch to arrive in Debian Bookworm and don't want to install packages from Debian Experimental, you can also just download the missing file yourself:

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt?h=debian/1.8.19-5
o.k., but what does this do, how is that enterprise-numbers.txt file used/applied?

Cheers,
~R.
 
Code:
/tmp# wget http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-6_amd64.deb
--2023-07-24 13:47:34--  http://ftp.debian.org/debian/pool/main/i/ipmitool/ipmitool_1.8.19-6_amd64.deb
Resolving ftp.debian.org (ftp.debian.org)... 146.75.122.132, 2a04:4e42:8e::644
Connecting to ftp.debian.org (ftp.debian.org)|146.75.122.132|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1972172 (1.9M) [application/vnd.debian.binary-package]
Saving to: ‘ipmitool_1.8.19-6_amd64.deb’

ipmitool_1.8.19-6_amd64.deb                    100%[====================================================================================================>]   1.88M  --.-KB/s    in 0.03s  

2023-07-24 13:47:34 (63.7 MB/s) - ‘ipmitool_1.8.19-6_amd64.deb’ saved [1972172/1972172]

:/tmp# dpkg -i ipmitool_1.8.19-6_amd64.deb
(Reading database ... 63100 files and directories currently installed.)
Preparing to unpack ipmitool_1.8.19-6_amd64.deb ...
Unpacking ipmitool (1.8.19-6) over (1.8.19-4) ...
Setting up ipmitool (1.8.19-6) ...
ipmievd.service is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.11.2-2) ...
:/tmp# service ipmievd start
:/tmp# ipmitool channel info 2
Get Device ID command failed: 0xd5 Command not supported in present state
IPMI command failed: Command not supported in present state
Unable to Get Channel Info
:/tmp# ipmitool mc reset warm
Get Device ID command failed: 0xd5 Command not supported in present state
MC reset command failed: Command not supported in present state
:/tmp# ipmitool mc reset cold
Get Device ID command failed: 0xd5 Command not supported in present state
Sent cold reset command to MC
:/tmp# ipmitool channel info 2
Get Device ID command failed: 0xd5 Command not supported in present state
IPMI command failed: Command not supported in present state
Unable to Get Channel Info
:/tmp# ipmitool channel info 2
Get Device ID command failed: 0xd5 Command not supported in present state
IPMI command failed: Command not supported in present state
Unable to Get Channel Info
:/tmp# ipmitool mc reset warm
Get Device ID command failed: 0xd5 Command not supported in present state
MC reset command failed: Command not supported in present state
:/tmp#
That's another error and has nothing to do with the fix presented here.
 
That's another error and has nothing to do with the fix presented here.
yes :(

iLO/IPMI apparently gone due to some recent kernel updates?

It is possible, that the kernel modules got kicked out by the recent update?
Code:
Preparing to unpack .../pve-kernel-6.2.16-4-pve_6.2.16-5_amd64.deb ...
Unpacking pve-kernel-6.2.16-4-pve (6.2.16-5) over (6.2.16-4) ...
Setting up pve-kernel-6.2.16-4-pve (6.2.16-5) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
update-initramfs: Generating /boot/initrd.img-6.2.16-4-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/proxmox-auto-removal 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
run-parts: executing /etc/kernel/postinst.d/zz-proxmox-boot 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 6.2.16-4-pve /boot/vmlinuz-6.2.16-4-pve
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.16-4-pve
Found initrd image: /boot/initrd.img-6.2.16-4-pve
Found linux image: /boot/vmlinuz-5.15.108-1-pve
Found initrd image: /boot/initrd.img-5.15.108-1-pve
Found linux image: /boot/vmlinuz-5.15.74-1-pve
Found initrd image: /boot/initrd.img-5.15.74-1-pve
Found memtest86+x64 image: /boot/memtest86+x64.bin
done

Here the kernel-log after reboot:
Code:
2023-07-24T15:27:29.156090+02:00 pve kernel: [   57.521768] ipmi device interface
2023-07-24T15:27:29.156091+02:00 pve kernel: [   57.568543] ipmi_si: IPMI System Interface driver
2023-07-24T15:27:29.156091+02:00 pve kernel: [   57.568576] ipmi_si dmi-ipmi-si.0: ipmi_platform: probing via SMBIOS
2023-07-24T15:27:29.156092+02:00 pve kernel: [   57.568582] ipmi_platform: ipmi_si: SMBIOS: io 0xca2 regsize 1 spacing 1 irq 0
2023-07-24T15:27:29.156092+02:00 pve kernel: [   57.568587] ipmi_si: Adding SMBIOS-specified kcs state machine
2023-07-24T15:27:29.156099+02:00 pve kernel: [   57.568712] ipmi_si IPI0001:00: ipmi_platform: probing via ACPI
2023-07-24T15:27:29.156100+02:00 pve kernel: [   57.568792] ipmi_si IPI0001:00: ipmi_platform: [io  0x0ca2] regsize 1 spacing 1 irq 0
2023-07-24T15:27:29.156101+02:00 pve kernel: [   57.649932] ipmi_si dmi-ipmi-si.0: Removing SMBIOS-specified kcs state machine in favor of ACPI
2023-07-24T15:27:29.156101+02:00 pve kernel: [   57.649939] ipmi_si: Adding ACPI-specified kcs state machine
2023-07-24T15:27:29.156102+02:00 pve kernel: [   57.650019] ipmi_si: Trying ACPI-specified kcs state machine at i/o address 0xca2, slave address 0x20, irq 0
2023-07-24T15:27:29.156121+02:00 pve kernel: [  167.858665] ipmi_si IPI0001:00: There appears to be no BMC at this location
2023-07-24T15:27:29.156122+02:00 pve kernel: [  167.901011] ipmi_ssif: IPMI SSIF Interface driver

Any ideas?
 
Last edited:
Thank you LnxBil,
thing is, I do not have physical access to the server, and with no iLO/IPMI I'd need to travel to the hosting facility to do that. Seems I will have to, if no other proposal/solution comes up :(
 
Have you tried the solution proposed by @LnxBil?

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt?h=debian/1.8.19-5
 
  • Like
Reactions: pschonmann
If you don't want to wait for the patch to arrive in Debian Bookworm and don't want to install packages from Debian Experimental, you can also just download the missing file yourself:

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt?h=debian/1.8.19-5
link is dead, 1.8.19-6 doesn't work either, and I've tried downloading this file from http://www.iana.org/assignments/enterprise-numbers.txt, I still get the following

Code:
root@sm1:/tmp# ipmitool user list
IPMI command failed: Invalid data field in request

anyone know of any other fixes?
 
What about other ipmitool commads? Maybe unrelated

What about this? Works for me:

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt
 
Last edited:
If you don't want to wait for the patch to arrive in Debian Bookworm and don't want to install packages from Debian Experimental, you can also just download the missing file yourself:

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://jff.email/cgit/ipmitool.git/plain/debian/enterprise-numbers.txt?h=debian/1.8.19-5
Thanks that worked. A shame that it isn't fixed yet.
 
It's already fixed in trixie, yet not in bookworm and I don't think it'll ever will. There is no open bug report about it and it is probably not that important?
 
Based on @LnxBil workaroud and @acdoussan link, this is what have worked for me :

Code:
wget -O /usr/share/misc/enterprise-numbers.txt https://www.iana.org/assignments/enterprise-numbers.txt

No reboot needed - Our script using impitool to control fans is back to silence

I did not want to use
Bash:
... 2>/dev/null
to get all "real" error on impitool.
This instantly solved the issue for me. Thanks!
 

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!