From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A36C471FA5 for ; Wed, 6 Oct 2021 09:19:07 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 97CC02F365 for ; Wed, 6 Oct 2021 09:19:07 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 90B542F348 for ; Wed, 6 Oct 2021 09:19:06 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 5FC2F457EA; Wed, 6 Oct 2021 09:19:06 +0200 (CEST) Message-ID: <8cd3661e-8f46-0bcd-8f94-cab86e45caf4@proxmox.com> Date: Wed, 6 Oct 2021 09:17:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:93.0) Gecko/20100101 Thunderbird/93.0 Content-Language: en-US To: Proxmox VE development discussion , Victor Hooi References: From: Thomas Lamprecht In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 1.206 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment NICE_REPLY_A -1.964 Looks like a legit reply (A) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [zed-functions.sh] Subject: Re: [pve-devel] trousers error in latest test repo? X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2021 07:19:07 -0000 On 06.10.21 00:51, Victor Hooi wrote: > Hi, >=20 > I just installed a new box (Intel NUC7i5BNK) with Proxmox 7.0-2, and th= en > ran an apt update/dist-upgrade, using the PVE test repos: >=20 > There seems to be some error whilst upgrading some "trousers" module: >=20 > Setting up trousers (0.3.14+fixed1-1.2) ... >> Job for trousers.service failed because the control process exited wit= h >> error code. >> See "systemctl status trousers.service" and "journalctl -xe" for detai= ls. >> invoke-rc.d: initscript trousers, action "start" failed. >> =E2=97=8F trousers.service - LSB: starts tcsd >> Loaded: loaded (/etc/init.d/trousers; generated) >> Active: failed (Result: exit-code) since Tue 2021-10-05 15:43:15 = PDT; >> 4ms ago >> Docs: man:systemd-sysv-generator(8) >> Process: 32424 ExecStart=3D/etc/init.d/trousers start (code=3Dexit= ed, >> status=3D30) >> CPU: 10ms >=20 >=20 > Oct 05 15:43:15 mgmt1 systemd[1]: Starting LSB: starts tcsd... >> Oct 05 15:43:15 mgmt1 trousers[32424]: Starting Trusted Computing daem= on: >> tcsd/etc/init.d/trousers: 32: [: /dev/tpm0: unexpected operator >> Oct 05 15:43:15 mgmt1 TCSD[32429]: TrouSerS resetting mode of /var/lib= /tpm >> from 40755 to: 700 >> Oct 05 15:43:15 mgmt1 tcsd[32429]: TCSD TDDL[32429]: TrouSerS ioctl: (= 25) >> Inappropriate ioctl for device >> Oct 05 15:43:15 mgmt1 tcsd[32429]: TCSD TDDL[32429]: TrouSerS Falling = back >> to Read/Write device support. >> Oct 05 15:43:15 mgmt1 tcsd[32429]: TCSD TCS[32429]: TrouSerS ERROR: TC= S >> GetCapability failed with result =3D 0x1e >> Oct 05 15:43:15 mgmt1 trousers[32430]: failed! >> Oct 05 15:43:15 mgmt1 systemd[1]: trousers.service: Control process >> exited, code=3Dexited, status=3D30/n/a >> Oct 05 15:43:15 mgmt1 systemd[1]: trousers.service: Failed with result= >> 'exit-code'. >> Oct 05 15:43:15 mgmt1 systemd[1]: Failed to start LSB: starts tcsd. >> dpkg: error processing package trousers (--configure): >> installed trousers package post-installation script subprocess return= ed >> error exit status 1 >=20 >=20 > However, this also then causes issues when attempting to finalise other= > packages as well: >=20 > dpkg: dependency problems prevent configuration of swtpm-tools: >> swtpm-tools depends on trousers (>=3D 0.3.9); however: >> Package trousers is not configured yet. >=20 >=20 > dpkg: error processing package swtpm-tools (--configure): >> dependency problems - leaving unconfigured >> Setting up swtpm (0.6.99+1) ... >> Setting up pve-firewall (4.2-3) ... >> Setting up libzpool5linux (2.1.1-pve1) ... >> Setting up gnutls-bin (3.7.1-5) ... >> Setting up corosync (3.1.5-pve1) ... >> dpkg: dependency problems prevent configuration of qemu-server: >> qemu-server depends on swtpm-tools; however: >> Package swtpm-tools is not configured yet. >=20 >=20 > dpkg: error processing package qemu-server (--configure): >> dependency problems - leaving unconfigured >> Setting up zfsutils-linux (2.1.1-pve1) ... >> Installing new version of config file /etc/zfs/zfs-functions ... >> Setting up zfs-initramfs (2.1.1-pve1) ... >> dpkg: dependency problems prevent configuration of pve-manager: >> pve-manager depends on qemu-server (>=3D 6.2-17); however: >> Package qemu-server is not configured yet. >=20 >=20 > dpkg: error processing package pve-manager (--configure): >> dependency problems - leaving unconfigured >> Setting up zfs-zed (2.1.1-pve1) ... >> Installing new version of config file /etc/zfs/zed.d/zed-functions.sh = =2E.. >> dpkg: dependency problems prevent processing triggers for pve-ha-manag= er: >> pve-ha-manager depends on qemu-server (>=3D 6.0-15); however: >> Package qemu-server is not configured yet. >=20 >=20 > dpkg: error processing package pve-ha-manager (--configure): >> dependency problems - leaving triggers unprocessed >> Processing triggers for initramfs-tools (0.140) ... >> update-initramfs: Generating /boot/initrd.img-5.11.22-5-pve >> Running hook script 'zz-proxmox-boot'.. >> Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private m= ount >> namespace.. >> Copying and configuring kernels on /dev/disk/by-uuid/5994-C1A0 >> Copying kernel and creating boot-entry for 5.11.22-4-pve >> Copying kernel and creating boot-entry for 5.11.22-5-pve >> Processing triggers for libc-bin (2.31-13) ... >> Processing triggers for man-db (2.9.4-2) ... >> Processing triggers for mailcap (3.69) ... >> Errors were encountered while processing: >> trousers >> swtpm-tools >> qemu-server >> pve-manager >> pve-ha-manager >> E: Sub-process /usr/bin/dpkg returned an error code (1) >=20 >=20 > Does anybody know what this is? It's related to TPM, swtmp-tools pulls it in and that in turn gets pulled= in by qemu-server which now provides TPM support for guests. It seems it init script was a bit borked[0], but that only shows up on so= me systems, FWICT ones that where updated from pre PVE 6 or even older. I re-build the upstream package with a more resilient postinst and init s= cript and uploaded that to pvetest as `trousers` in version `0.3.14+fixed1-1.2+pve1= ` (fwiw, the "fixed" part in the version was already there and not my invention ;)= An error may still get printed on update, but it should not fail the whol= e update itself anymore (which has no use on its own). [0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D895201 hope that helps, Thomas