lxc_init: 845 Failed to run lxc.hook.pre-start for container "200"

rika

New Member
Oct 19, 2024
3
0
1
lxc-start -lDEBUG -o error.log -F -n 200 --logfile test2.log
lxc-start: 200: ../src/lxc/utils.c: run_buffer: 571 Script exited with status 1
lxc-start: 200: ../src/lxc/start.c: lxc_init: 845 Failed to run lxc.hook.pre-start for container "200"
lxc-start: 200: ../src/lxc/start.c: __lxc_start: 2034 Failed to initialize container "200"
lxc-start: 200: ../src/lxc/tools/lxc_start.c: lxc_start_main: 307 The container failed to start
lxc-start: 200: ../src/lxc/tools/lxc_start.c: lxc_start_main: 312 Additional information can be obtained by setting the --logfile
and --logpriority options

cat test2.log
lxc-start 200 20241019045050.457 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type u nsid 0 hos
tid 100000 range 65536
lxc-start 200 20241019045050.457 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type g nsid 0 hos
tid 100000 range 65536
lxc-start 200 20241019045050.457 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmo
r
lxc-start 200 20241019045050.457 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks
/lxc-pve-prestart-hook" for container "200", config section "lxc"
lxc-start 200 20241019045051.239 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-pr
estart-hook 200 lxc pre-start produced output: Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC c
ontains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site
_perl) at /usr/share/perl5/PVE/Tools.pm line 293.
BEGIN failed--compilation aborted.

lxc-start 200 20241019045051.267 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-pr
estart-hook 200 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook

lxc-start 200 20241019045051.432 ERROR utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 1
lxc-start 200 20241019045051.432 ERROR start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for containe
r "200"
lxc-start 200 20241019045051.432 ERROR start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "200"
lxc-start 200 20241019045051.433 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks
/lxc-pve-poststop-hook" for container "200", config section "lxc"
lxc-start 200 20241019045051.541 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxcfs/lxc
.reboot.hook" for container "200", config section "lxc"
lxc-start 200 20241019045052.438 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:307 - The container failed to s
tart
lxc-start 200 20241019045052.438 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:312 - Additional information ca
n be obtained by setting the --logfile and --logpriority options
lxc-start 200 20241019060123.122 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type u nsid 0 hos
tid 100000 range 65536
lxc-start 200 20241019060123.126 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type g nsid 0 hos
tid 100000 range 65536
lxc-start 200 20241019060123.129 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmo
r
lxc-start 200 20241019060123.130 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks
/lxc-pve-prestart-hook" for container "200", config section "lxc"
lxc-start 200 20241019060123.602 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-pr
estart-hook 200 lxc pre-start produced output: Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC c
ontains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site
_perl) at /usr/share/perl5/PVE/Tools.pm line 293.
BEGIN failed--compilation aborted.

lxc-start 200 20241019060123.604 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-pr
estart-hook 200 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook

lxc-start 200 20241019060123.620 ERROR utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 1
lxc-start 200 20241019060123.620 ERROR start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for containe
r "200"
lxc-start 200 20241019060123.620 ERROR start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "200"
lxc-start 200 20241019060123.620 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks
/lxc-pve-poststop-hook" for container "200", config section "lxc"
lxc-start 200 20241019060124.120 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxcfs/lxc
.reboot.hook" for container "200", config section "lxc"
lxc-start 200 20241019060124.622 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:307 - The container failed to s
tart
lxc-start 200 20241019060124.622 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:312 - Additional information ca
n be obtained by setting the --logfile and --logpriority options
lxc-start 200 20241019062111.499 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type u nsid 0 hos
tid 100000 range 65536
lxc-start 200 20241019062111.499 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2273 - Read uid map: type g nsid 0 hos
tid 100000 range 65536
lxc-start 200 20241019062111.499 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmo
r
lxc-start 200 20241019062111.499 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks
/lxc-pve-prestart-hook" for container "200", config section "lxc"
lxc-start 200 20241019062112.732 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-pr
estart-hook 200 lxc pre-start produced output: Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC c
ontains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site
_perl) at /usr/share/perl5/PVE/Tools.pm line 293.
BEGIN failed--compilation aborted.

lxc-start 200 20241019062112.759 DEBUG utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-pr
estart-hook 200 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook

lxc-start 200 20241019062112.924 ERROR utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 1
lxc-start 200 20241019062112.924 ERROR start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for containe
r "200"
lxc-start 200 20241019062112.924 ERROR start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "200"
lxc-start 200 20241019062112.925 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks
/lxc-pve-poststop-hook" for container "200", config section "lxc"
lxc-start 200 20241019062112.599 INFO utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxcfs/lxc
.reboot.hook" for container "200", config section "lxc"
lxc-start 200 20241019062113.102 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:307 - The container failed to s
tart
lxc-start 200 20241019062113.102 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:312 - Additional information ca
n be obtained by setting the --logfile and --logpriority options
 
The following is the actual error pointing to the cause of this:
Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC c
ontains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site
_perl) at /usr/share/perl5/PVE/Tools.pm line 293.

I.e. the PerlIO module cannot be found, thus failing the code to run. But that is a weird one, because the PerlIO module is a core dependency of Perl and for PVE 8 shipped by perl-modules-5.36 package, which is a very integral part of a Proxmox VE distribution.

How was this host installed, using the official ISO?

Can you post the output of pveversion -v and apt list --installed | grep ^perl?
 
I also started having this issue (as of 2-3 hours ago) on one node, affecting three containers.

Just to be sure, the exact same error including the "PerlIO"? Did you just upgrade or installed some software?
What's your recent apt update history, i.e.: tail -30 /var/log/apt/history.log
 
Yes, the same errors.

Looks like the packages updated just prior:

Code:
Start-Date: 2024-10-15  00:43:06
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold dist-upgrade
Upgrade: pve-i18n:amd64 (3.2.3, 3.2.4)
End-Date: 2024-10-15  00:43:35

Start-Date: 2024-10-18  23:51:48
Commandline: /usr/bin/apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold dist-upgrade
Upgrade: proxmox-widget-toolkit:amd64 (4.2.3, 4.2.4), libpve-cluster-api-perl:amd64 (8.0.7, 8.0.8), pve-cluster:amd64 (8.0.7, 8.0.8), libpve-common-perl:amd64 (8.2.3, 8.2.4), libpve-notify-perl:amd64 (8.0.7, 8.0.8), promtail:amd64 (3.2.0, 3.2.1), libpve-cluster-perl:amd64 (8.0.7, 8.0.8)
End-Date: 2024-10-18  23:52:29

Same upgrade performed simultaneously on two other nodes, no issues. This host installation is at least a year old.
 
Last edited:
Debug output:
Code:
lxc-start: 115: ../src/lxc/utils.c: run_buffer: 571 Script exited with status 1
lxc-start: 115: ../src/lxc/start.c: lxc_init: 845 Failed to run lxc.hook.pre-start for container "115"
lxc-start: 115: ../src/lxc/start.c: __lxc_start: 2034 Failed to initialize container "115"
lxc-start: 115: ../src/lxc/tools/lxc_start.c: lxc_start_main: 307 The container failed to start
lxc-start: 115: ../src/lxc/tools/lxc_start.c: lxc_start_main: 312 Additional information can be obtained by setting the --logfile and --logpriority options
root@pve2:~# cat /tmp/test.log
lxc-start 115 20241019103956.513 INFO     lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
lxc-start 115 20241019103956.513 INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "115", config section "lxc"
lxc-start 115 20241019103956.899 DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 115 lxc pre-start produced output: Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/PVE/Tools.pm line 293.
BEGIN failed--compilation aborted.

lxc-start 115 20241019103956.900 DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 115 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook

lxc-start 115 20241019103956.908 ERROR    utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 1
lxc-start 115 20241019103956.908 ERROR    start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for container "115"
lxc-start 115 20241019103956.908 ERROR    start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "115"
lxc-start 115 20241019103956.908 INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "115", config section "lxc"
lxc-start 115 20241019103957.410 INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "115", config section "lxc"
lxc-start 115 20241019103957.820 ERROR    lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:307 - The container failed to start
lxc-start 115 20241019103957.820 ERROR    lxc_start - ../src/lxc/tools/lxc_start.c:lxc_start_main:312 - Additional information can be obtained by setting the --logfile and --logpriority options
 
This installation was performed with the official iso image.

Code:
proxmox-ve: 8.2.0 (running kernel: 6.8.12-2-pve)
pve-manager: 8.2.7 (running version: 8.2.7/3e0176e6bb2ade3b)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-2
proxmox-kernel-6.8.12-2-pve-signed: 6.8.12-2
proxmox-kernel-6.8.12-1-pve-signed: 6.8.12-1
ceph-fuse: 17.2.7-pve2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx9
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.1.4
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.8
libpve-cluster-perl: 8.0.8
libpve-common-perl: 8.2.4
libpve-guest-common-perl: 5.1.4
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.9.8
libpve-rs-perl: 0.8.10
libpve-storage-perl: 8.2.5
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-4
proxmox-backup-client: 3.2.7-1
proxmox-backup-file-restore: 3.2.7-1
proxmox-firewall: 0.5.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.2.4
pve-cluster: 8.0.8
pve-container: 5.2.0
pve-docs: 8.2.3
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.0.7
pve-firmware: 3.13-2
pve-ha-manager: 4.0.5
pve-i18n: 3.2.4
pve-qemu-kvm: 9.0.2-3
pve-xtermjs: 5.3.0-3
qemu-server: 8.2.4
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1


Code:
perl-base/stable,now 5.36.0-7+deb12u1 amd64 [installed]
perl-modules-5.36/stable,now 5.36.0-7+deb12u1 all [installed]
perl-openssl-defaults/stable,now 7+b1 amd64 [installed]
perl/stable,now 5.36.0-7+deb12u1 amd64 [installed]

Thanks :)
 
I found what causes this but still need to look into why it only happens for the container (start) hooks.

As workaround, you can downgrade libpve-common-perl to the previous version, e.g. using:
apt install libpve-common-perl=8.2.3
 
  • Like
Reactions: cowonmars
The following is the actual error pointing to the cause of this:


I.e. the PerlIO module cannot be found, thus failing the code to run. But that is a weird one, because the PerlIO module is a core dependency of Perl and for PVE 8 shipped by perl-modules-5.36 package, which is a very integral part of a Proxmox VE distribution.

How was this host installed, using the official ISO?

Can you post the output of pveversion -v and apt list --installed | grep ^perl?
here's my output

pveversion -v
proxmox-ve: 8.2.0 (running kernel: 6.8.12-2-pve)
pve-manager: 8.2.7 (running version: 8.2.7/3e0176e6bb2ade3b)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-2
proxmox-kernel-6.8.12-2-pve-signed: 6.8.12-2
proxmox-kernel-6.5.13-6-pve-signed: 6.5.13-6
proxmox-kernel-6.5.13-2-pve-signed: 6.5.13-2
proxmox-kernel-6.5-build-deps: 6.5.3-1
proxmox-kernel-6.2-build-deps: 6.2.16-16
ceph-fuse: 17.2.7-pve3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx9
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.1.4
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.8
libpve-cluster-perl: 8.0.8
libpve-common-perl: 8.2.4
libpve-guest-common-perl: 5.1.4
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.9.8
libpve-rs-perl: 0.8.10
libpve-storage-perl: 8.2.5
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-4
proxmox-backup-client: 3.2.7-1
proxmox-backup-file-restore: 3.2.7-1
proxmox-firewall: 0.5.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.2.4
pve-cluster: 8.0.8
pve-container: 5.2.0
pve-docs: 8.2.3
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.0.7
pve-firmware: 3.13-2
pve-ha-manager: 4.0.5
pve-i18n: 3.2.4
pve-qemu-kvm: 9.0.2-3
pve-xtermjs: 5.3.0-3
qemu-server: 8.2.4
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1


apt list --installed | grep ^perl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

perl-base/stable,now 5.36.0-7+deb12u1 amd64 [installed]
perl-modules-5.36/stable,now 5.36.0-7+deb12u1 all [installed]
perl-openssl-defaults/stable,now 7+b1 amd64 [installed]
perl/stable,now 5.36.0-7+deb12u1 amd64 [installed]
 
I found what causes this but still need to look into why it only happens for the container (start) hooks.

As workaround, you can downgrade libpve-common-perl to the previous version, e.g. using:
apt install libpve-common-perl=8.2.3
Thx,it works
 
Not even 20 minutes later the containers on the other host crashed. :)
Crashed as in suddenly stopped running or also failed to start with the same problem and the same workaround?
 
  • Like
Reactions: cowonmars
Should be now fixed more proper in a just uploaded libpve-common-perl package with version 8.2.5 which is available on the pvetest repo.

Many thanks for reporting this issue that was just exposed in our pvetest testing repo, you probably saved a lot of no-subscription user from a headache.
 
Same problem with 8.2.4 here thanks for tip for rollback to 8.2.3 , waiting for 8.2.5
Code:
Last login: Sat Oct 19 20:23:12 EEST 2024 on pts/1
root@pve:~# pct start 402 --debug
run_buffer: 571 Script exited with status 1
lxc_init: 845 Failed to run lxc.hook.pre-start for container "402"
__lxc_start: 2034 Failed to initialize container "402"
d 0 hostid 100000 range 65536
INFO     lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "402", config section "lxc"
DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 402 lxc pre-start produced output: Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/PVE/Tools.pm line 293.
BEGIN failed--compilation aborted.

DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 402 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook

ERROR    utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 1
ERROR    start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for container "402"
ERROR    start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "402"
INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "402", config section "lxc"
startup for container '402' failed
root@pve:~# pct start 403 --debug
run_buffer: 571 Script exited with status 1
lxc_init: 845 Failed to run lxc.hook.pre-start for container "403"
__lxc_start: 2034 Failed to initialize container "403"
d 0 hostid 100000 range 65536
INFO     lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "403", config section "lxc"
DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 403 lxc pre-start produced output: Can't locate PerlIO.pm in @INC (you may need to install the PerlIO module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/PVE/Tools.pm line 293.
BEGIN failed--compilation aborted.

DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 403 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook

ERROR    utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 1
ERROR    start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for container "403"
ERROR    start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "403"
INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "403", config section "lxc"
startup for container '403' failed
root@pve:~#
Broadcast message from root@pve (Sat 2024-10-19 20:29:29 EEST):

The system will reboot now!
 

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!