Devuan bug report logs - #700
Subject: package nvidia-persistenced "not fully installed"

version graph

Package: nvidia-persistenced; Maintainer for nvidia-persistenced is (unknown); Source for nvidia-persistenced is src:nvidia-persistenced.

Reported by: tom.dbr@quantentunnel.de

Date: Tue, 9 Aug 2022 20:56:02 UTC

Severity: normal

Tags: debian

Found in version 470.129.06-1

Forwarded to https://bugs.debian.org/928497

Full log


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 9 Aug 2022 20:54:15 +0000
Return-Path: <tom.dbr@quantentunnel.de>
Delivered-To: devuanbugs@dyne.org
Received: from mail.dyne.org [141.95.83.167]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 09 Aug 2022 20:54:15 +0000 (UTC)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by mail.dyne.org (Postfix) with ESMTPS id 224336618A7
	for <submit@bugs.devuan.org>; Tue,  9 Aug 2022 22:53:10 +0200 (CEST)
Authentication-Results: mail.dyne.org;
	dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="gE/s0USM";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
	s=badeba3b8450; t=1660078388;
	bh=eKEeMRNmH8OOohwYHH2boU7Q5Fga1FTc/pyuMDbLnhI=;
	h=X-UI-Sender-Class:From:To:Subject:Date;
	b=gE/s0USM+SJ2G/eZRk3u8Ql1pB5ESVi3a6J3748F56mlGg2WR43qJ7Toes0YlHmb4
	 MYNJrf/UBq1+FzMcLupFCKrcKfvYtAQQr+dcMiicofmHoCpZ8mMMqLnyLIaBb25PLA
	 pN0y5S7Cs3nHokgOiEZE6erF3N+q/ol+dHF4pLuA=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [91.47.27.50] ([91.47.27.50]) by web-mail.gmx.net
 (3c-app-gmx-bap28.server.lan [172.19.172.98]) (via HTTP); Tue, 9 Aug 2022
 22:53:08 +0200
MIME-Version: 1.0
Message-ID: <trinity-b3860550-e626-437a-a8f2-73b885a5df28-1660078388237@3c-app-gmx-bap28>
From: tom.dbr@quantentunnel.de
To: submit@bugs.devuan.org
Subject: Subject: package nvidia-persistenced "not fully installed"
Content-Type: text/plain; charset=UTF-8
Date: Tue, 9 Aug 2022 22:53:08 +0200
Importance: normal
Sensitivity: Normal
X-Priority: 3
X-Provags-ID: V03:K1:ddRQIyuLInLzKNY7JZzFnbM4b2NymrccE5h9SPSO7aO1YyAfFEfdRnFXC6U4uXIHQmHEW
 FxS9Bp8qkQQKVVGdt10a97XfYqsOC3onoTeB+Xq9zEETvzt/aQSKHMjemRpOAHnJwerubM/uZFIm
 B3ReNP1Y3/gy2BVkP65peOyYPYeVw2kyH18YYMQDm3MMaduEbAuVy5RapEJ6/qvlMByq6F2nUkDh
 sog8ygpsSGGbuPrlSL9+jd3eEg+sbhKzt8T3F3MkIxvtcrIcRs0+XSX4mCpGZxALMbZvaGYa26XK
 ro=
X-UI-Out-Filterresults: notjunk:1;V03:K0:uaiAfO4dbag=:b42pESHIKQf4wX6zvU4pTM
 BJi3J4w7extaDHxL/ckzMGuPlOusx8nZMtMtdbhnBSPFn+V/tq/EaC8m7wWXjb6zKrUyqilHj
 DKw6XDav5p00lZMHH/ujE1j0oL8HJanoSlW0loNxhq8DIYf23l4i1+Bsf1aHrYxSA8Sk7zwEF
 hN3aOtdG9awueGGbL3ceEx1CgL12faMsD2uTzNXlK+ag0EoOwINEHpPyyksUVLIBUviTecOB6
 Y10K0bo1DqA4b7L2+E6Yh2BLUFHURb5PMiB0dUOB7H4Z9wMCTqCzCH+FuY7a/R3kCimtVh5AW
 VOV+EjpvtJCC/q0eEj9drJKTYairuqJtImmrdLaI4JSInbv08sf6EUhWy5a1P4UOxXkYbJOvc
 ZkMwM9Eu09YFBljRdgh0CfR0xW81rp+Udxl4CaWumGFk+TYb//fAzdHQfNQaZmJ75+3JI64yP
 0+8StH13Fzf1JIv01Qq2fL24wiD2o5gi8mcKc77dQMT8g/VUmX010lJ/HKvfiOw/VGkxgriMe
 bK41tNw63qWSEBdNirN3dHv3aWLBCspj+m5OdSruteeTbC+u2SbHUZzmNpPHIkdDUkJC7HKhz
 3QjdKuC/kZN4dI6Wrpd/lyWpIAG8CP4BNJdpuQQJmh60Xx7b4hqnkh3yncjtKCekDPemLDfJ0
 yyoaTP86DABOHgVb3/r2k0Mb4OCyxAWn5z3q5vs9VtmrML85LD6LZ8kJT8AfmqUc6calms303
 05Z+GHQ/5Zge8JQ+k2WGby4BB4KmPeLfTBbf1Twkew6KiBWlzHil/AOYwTBHcq6S5/0SdPEj+
 XGuEtOa
Content-Transfer-Encoding: quoted-printable
X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED,
	DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org
Package: nvidia-persistenced
Version: 470.129.06-1

date: 2022-06-16 (did not find the time to complete the report)
System: devuan version is daedalus/ceres
kernel: Linux 5.18.0-2-amd64

Abstract: There is no other error than the package's "not fully installed" status.
Traced to a "/etc/init.d/nvidia-persistenced start|restart" issue.
(Possibly, this happens only on the initial installation of nvidia driver and kernel. don't know)

* Description
The package status can be fixed without an update (see log below):
  Stop nvidia-persistenced, then call apt. Done.
  $ sudo /etc/init.d/nvidia-persistenced stop && sudo apt upgrade
Diving deeper:
During installation: First call of "/etc/init.d/nvidia-persistenced start" will exit(1).
  This is to expect and not an error (if nvidia-kernel not booted yet).
  But interpreted as "install failure".
After reboot, at any further apt invocation:
  "/etc/init.d/nvidia-persistenced start" is fired again.
  But now /usr/bin/nvidia-persistenced is already running, and returns exit(1).

* Fix proposal:
Figured out two ways - not sure which one to use:
a) $ "/usr/bin/nvidia-persistenced start" may exit(0) in case nvidia-persistenced is running
OR
b) DEBIAN/postinst may always fire "restart"

#-----------------------------------------------------------------------------#
# Patch for: /etc/init.d/nvidia-persistenced
# (recycled test condition, as used in section "stop")
#
# $ diff /etc/init.d/nvidia-persistenced  /etc/init.d/nvidia-persistenced.original
66c66
<       [ ! -z "${NVPD_PID}" ] || ${NVPD_BIN} --user ${NVPD_USER}
---
>       ${NVPD_BIN} --user ${NVPD_USER}

#-----------------------------------------------------------------------------#
# Patch for: DEBIAN/postinst  -  NOT tested
# In case patch for /etc/init.d/nvidia-persistenced is a bad idea.
#
# $ diff DEBIAN/postinst DEBIAN/postinst.original
19c19,24
< 		invoke-rc.d --skip-systemd-native nvidia-persistenced restart || exit 1
---
> 		if [ -n "$2" ]; then
> 			_dh_action=restart
> 		else
> 			_dh_action=start
> 		fi
> 		invoke-rc.d --skip-systemd-native nvidia-persistenced $_dh_action || exit 1

#-----------------------------------------------------------------------------#
# log (from reverted disk image)
#-----------------------------------------------------------------------------#
# daedalus box with multiarch i386 enabled
# initial installation of proprietary nvidia drivers
$ sudo apt-get install nvidia-driver nvidia-kernel-dkms nvidia-alternative nvidia-xconfig nvidia-settings nvidia-modprobe
$ sudo reboot

$ ps ax | grep nvidia-persistenced
 1277 ?        Ss     0:00 /usr/bin/nvidia-persistenced --user nvpd
 2432 pts/0    S+     0:00 grep nvidia-persistenced

$ sudo apt-get 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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up nvidia-persistenced (470.129.06-1) ...
Starting NVIDIA Persistence Daemon
nvidia-persistenced failed to initialize. Check syslog for more details.
invoke-rc.d: initscript nvidia-persistenced, action "start" failed.
dpkg: error processing package nvidia-persistenced (--configure):
 installed nvidia-persistenced package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 nvidia-persistenced
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo /etc/init.d/nvidia-persistenced stop
Stopping NVIDIA Persistence Daemon

$ sudo apt-get 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.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up nvidia-persistenced (470.129.06-1) ...
Starting NVIDIA Persistence Daemon


==> when the daemon is stopped, apt succeeded
I do not know exactly how to adopt that into "postinst"
apt upgrade - to trigger package management

#-----------------------------------------------------------------------------#
# Possibly useful : daemon start and stop with extended status output
# Alternative to the patch above
# /etc/init.d/nvidia-persistenced
#
#       # start
       [ ! -z "${NVPD_PID}" ] || ${NVPD_BIN} --user ${NVPD_USER}  && echo "NVIDIA Persistence Daemon was already running"
#       # stop
       [ ! -z "${NVPD_PID}" ] && kill ${NVPD_PID} &> /dev/null    || echo "NVIDIA Persistence Daemon was not running"
#-----------------------------------------------------------------------------#


Dear maintainer,
feel free to contact me for additional information / testing / reversing. I'm not a software developer.
Regards, Thomas


Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Nov 23 20:29:09 2024;