Invalid type 'C' in pack at /usr/share/perl5/Convert/ASN1.pm

lordwebbie

New Member
Apr 18, 2024
9
7
3
Hallo zusammen,
wir sehen auf einigen Servern folgende Fehler bei einem "qm resize"-Befehl:

Code:
Invalid type 'C' in pack at /usr/share/perl5/Convert/ASN1.pm line 231, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/Net/LDAP/Message.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/Net/LDAP/Message.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/Net/LDAP.pm line 13, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/Net/LDAP.pm line 13, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/LDAP.pm line 7, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/LDAP.pm line 7, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Auth/LDAP.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/LDAP.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Auth/AD.pm line 5, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/AD.pm line 5, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/AccessControl.pm line 28, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/AccessControl.pm line 28, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/RPCEnvironment.pm line 6, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/RPCEnvironment.pm line 6, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Storage.pm line 23, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage.pm line 23, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/GuestHelpers.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/GuestHelpers.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/CLI/qm.pm line 21, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/qm.pm line 21, <DATA> line 960.
Compilation failed in require at /usr/sbin/qm line 6, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/sbin/qm line 6, <DATA> line 960.

Hat jemand eine Idee, woran das liegen könnte?
Die Suche bringt leider überhaupt nichts sinnvolles hervor.

pveversion:
pve-manager/8.1.10/4b06efb5db453f29 (running kernel: 6.5.13-5-pve)
 
Sind die letzten Updates sauber gelaufen?

Evtl. mal ein:
Code:
apt update
apt full-upgrade
machen und nochmal probieren?
 
Hi, danke für die Antwort.

Ich vergaß noch zu erwähnen, dass der Fehler nur ab und zu sporadisch auftritt.

Updates sind soweit alle eingespielt, das hatte ich vor diesem Ticket schon ausprobiert:

root@host ~ # cat /etc/debian_version
12.5

root@host ~ # apt update
Hit:1 http://mirror.hetzner.com/debian/packages bookworm InRelease
Hit:2 http://mirror.hetzner.com/debian/packages bookworm-updates InRelease
Hit:3 http://mirror.hetzner.com/debian/security bookworm-security InRelease
Get:4 http://mirror.hetzner.com/debian/pve bookworm InRelease [2,768 B]
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:6 http://deb.debian.org/debian bookworm InRelease
Hit:7 http://security.debian.org/debian-security bookworm-security InRelease
Hit:8 http://deb.debian.org/debian bookworm-updates InRelease
Hit:9 https://packages.icinga.com/debian icinga-bookworm InRelease
Fetched 2,768 B in 0s (8,213 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
 
Hello,
I'm experiencing same problem/error with pveupdate command.
Same PVE and KERNEL versions.

If I run pveupdate command from root shell it outputs randomly as follow:

Bash:
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Segmentation fault
root@pve:~# pveupgrade
Invalid type 'C' in pack at /usr/share/perl5/Convert/ASN1.pm line 231, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/Net/LDAP/Message.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/Net/LDAP/Message.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/Net/LDAP.pm line 13, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/Net/LDAP.pm line 13, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/LDAP.pm line 7, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/LDAP.pm line 7, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Auth/LDAP.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/LDAP.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Auth/AD.pm line 5, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/AD.pm line 5, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/AccessControl.pm line 29, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/AccessControl.pm line 29, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/RPCEnvironment.pm line 6, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/RPCEnvironment.pm line 6, <DATA> line 960.
Compilation failed in require at /usr/bin/pveupgrade line 13, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/bin/pveupgrade line 13, <DATA> line 960.
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Segmentation fault
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Your System is up-to-date

My cpu model name : Intel(R) Core(TM) i9-14900K

Thank you
 
please provide "pveversion -v" (or if that is not possible, "apt list --installed")
 
Code:
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Segmentation fault
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade

this does look very suspicious though - either some on-disk corruption, or broken memory. can you try "debsums -c" (requires to install debsums) and/or memtest ?
 
please provide "pveversion -v" (or if that is not possible, "apt list --installed")
Code:
root@pve:~# pveversion -v
proxmox-ve: 8.1.0 (running kernel: 6.5.13-5-pve)
pve-manager: 8.1.11 (running version: 8.1.11/cb1653fdade58a8b)
proxmox-kernel-helper: 8.1.0
pve-kernel-6.2: 8.0.5
proxmox-kernel-6.5.13-5-pve-signed: 6.5.13-5
proxmox-kernel-6.5: 6.5.13-5
proxmox-kernel-6.5.13-3-pve-signed: 6.5.13-3
proxmox-kernel-6.2.16-20-pve: 6.2.16-20
proxmox-kernel-6.2: 6.2.16-20
pve-kernel-6.2.16-3-pve: 6.2.16-3
ceph-fuse: 17.2.6-pve1+3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx8
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.0
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.1.3
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.6
libpve-cluster-perl: 8.0.6
libpve-common-perl: 8.1.2
libpve-guest-common-perl: 5.1.1
libpve-http-server-perl: 5.0.6
libpve-network-perl: 0.9.6
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.2.0
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.1.5-1
proxmox-backup-file-restore: 3.1.5-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.1.5
pve-cluster: 8.0.6
pve-container: 5.0.10
pve-docs: 8.1.5
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.0
pve-firewall: 5.0.4
pve-firmware: 3.11-1
pve-ha-manager: 4.0.3
pve-i18n: 3.2.1
pve-qemu-kvm: 8.1.5-5
pve-xtermjs: 5.3.0-3
qemu-server: 8.1.4
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.3-pve2
 
Code:
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade
Segmentation fault
root@pve:~# pveupgrade
Starting system upgrade: apt-get dist-upgrade

this does look very suspicious though - either some on-disk corruption, or broken memory. can you try "debsums -c" (requires to install debsums) and/or memtest ?

I've already done a memtest (10 hour) and no problems found,
debsums return nothing.

I've tried to move disks to an older machine for a week an no problem reported (CPU model name : 11th Gen Intel(R) Core(TM) i9-11900)
 
could you also post "apt update" output? your system is definitely not current ;)
 
Code:
Hit:1 http://ftp.it.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease                                                   
Get:3 http://ftp.it.debian.org/debian bookworm-updates InRelease [55.4 kB]                                     
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease                         
Fetched 55.4 kB in 1s (96.3 kB/s)     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

As I wrote before, the machine that is giving me problem is my actual Intel(R) Core(TM) i9-14900K
 
ah, I misread pveversion above, sorry, that actually seems somewhat okay. still, all the symptoms point at some kind of corruption or hardware issue (random processes shouldn't segfault, and core perl functionality should work as well ;)).
 
I agree with you, but I also check this hardware in various ways and everything seems ok.
And the strange fact is that APT command always go fine, pveupgrade randomly raise errors (even in scheduled events)
 
yeah, the errors all involve perl, so likely *something* there is broken
 
Exactly, maybe something linked to PERL and hw architecture (exactly same perl error occurred to @lordwebbie, exactly same lines.. too strange to be a mem problem)
 
I have the same problem today, and using the same `Intel(R) Core(TM) i9-14900K` CPU, I am upgrading pve from 6.2 kernel to the current 6.8 kernel, and after upgrade, everything is broken, executing commands related to PVE will result in random errors like @tecem posted before, yes, sometimes it will not occur.
Code:
root@rgs-44:~# pveupgrade ( not work ) 
Bizarre copy of UNKNOWN in list assignment at /usr/share/perl5/Convert/ASN1/parser.pm line 911, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/Net/LDAP/Message.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/Net/LDAP/Message.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/Net/LDAP.pm line 13, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/Net/LDAP.pm line 13, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/LDAP.pm line 7, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/LDAP.pm line 7, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Auth/LDAP.pm line 8, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/LDAP.pm line 8, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/Auth/AD.pm line 5, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Auth/AD.pm line 5, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/AccessControl.pm line 29, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/AccessControl.pm line 29, <DATA> line 960.
Compilation failed in require at /usr/share/perl5/PVE/RPCEnvironment.pm line 6, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/RPCEnvironment.pm line 6, <DATA> line 960.
Compilation failed in require at /usr/bin/pveupgrade line 13, <DATA> line 960.
BEGIN failed--compilation aborted at /usr/bin/pveupgrade line 13, <DATA> line 960.
root@rgs-44:~# pveupgrade ( works )
Starting system upgrade: apt-get dist-upgrade

any idea?
 
I am using ASUS PRIME Z790-P WIFI D4 motherboard, with BIOS 1656 which was released on 2024/04/19, Intel ME version 16.1.30.2307v4.
 
I can confirm reinstall to fresh pve 8.1 installation with official iso can't resolve the problem: http://download.proxmox.com/iso/proxmox-ve_8.1-2.iso

Code:
Linux rgs-44 6.5.11-8-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-8 (2024-01-30T12:27Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed May 29 00:15:32 CST 2024 on pts/0
root@rgs-44:~# qm list
Constant(q) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 14, near "= "
Constant(q) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 14, near "= "
Constant(q) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 14, near "= "
Constant(q) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 16, near "= "1.48""
Constant(q) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 34, near "|| "IO::File""
Constant(0) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 35, at end of line
Constant(qq) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 36, within string
Constant(qq) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 36, near "usage: $class"
Constant(q) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 50, near "croak 'usage: $fh->open(FILENAME [,MODE [,PERMS]])'"
Constant(0666) unknown at /usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm line 55, at end of line
/usr/lib/x86_64-linux-gnu/perl-base/IO/File.pm has too many errors.
Compilation failed in require at /usr/lib/x86_64-linux-gnu/perl/5.36/IO/Dir.pm line 15.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl/5.36/IO/Dir.pm line 15.
Compilation failed in require at /usr/share/perl5/PVE/Tools.pm line 14.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Tools.pm line 14.
Compilation failed in require at /usr/share/perl5/PVE/JSONSchema.pm line 10.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/JSONSchema.pm line 10.
Compilation failed in require at /usr/share/perl5/PVE/Certificate.pm line 11.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Certificate.pm line 11.
Compilation failed in require at /usr/share/perl5/PVE/Cluster.pm line 15.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Cluster.pm line 15.
Compilation failed in require at /usr/share/perl5/PVE/CLI/qm.pm line 19.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/qm.pm line 19.
Compilation failed in require at /usr/sbin/qm line 6.
BEGIN failed--compilation aborted at /usr/sbin/qm line 6.
root@rgs-44:~# qm list
Constant(q) unknown at /usr/share/perl5/PVE/ProcFSTools.pm line 11, at end of line
BEGIN not safe after errors--compilation aborted at /usr/share/perl5/PVE/ProcFSTools.pm line 11.
Compilation failed in require at /usr/share/perl5/PVE/Network.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Network.pm line 7.
Compilation failed in require at /usr/share/perl5/PVE/INotify.pm line 21.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/INotify.pm line 21.
Compilation failed in require at /usr/share/perl5/PVE/Cluster.pm line 16.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Cluster.pm line 16.
Compilation failed in require at /usr/share/perl5/PVE/CLI/qm.pm line 19.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/qm.pm line 19.
Compilation failed in require at /usr/sbin/qm line 6.
BEGIN failed--compilation aborted at /usr/sbin/qm line 6.
root@rgs-44:~# qm list
Segmentation fault
root@rgs-44:~# qm list
Segmentation fault
root@rgs-44:~#

And some services failed because of errors:

1716913409605.jpg
 
Last edited:

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!