Bug#928497: Acknowledgement (nvidia-persistenced: Error in nvidia-persistenced source (postinst))

Marcelo Téc. elppansmk at gmail.com
Thu May 9 03:05:59 BST 2019


Using the Debian Stretch plus SID Source repository and satisfying all the
dependencies required for a build, everything happens perfectly.
The installation of the packages after the compilation is perfect, the
modules work correctly.
However, in my first compilation of the nvidia-persistenced package without
any modification, I had an error that causes the
"nvidia-persistenced.service" service to not work.

Compilation method:

sudo apt-get -b source nvidia-driver nvidia-settings nvidia-modprobe
nvidia-settings nvidia-support glx-alternative-nvidia init-system-helpers
nvidia-persistenced

Installation response via apt (I've created a local repository to
facilitate):

Note: I tested the installation on a VM, since I already have a distro with
the functional driver

...
Configuring nvidia-persistenced (418.56-1) ...
Alert: The home directory /var/run/nvpd/ you specified can not be accessed:
No such file or directory
Adding system user 'nvpd' (UID 115) ...
Adding new group 'nvpd' (GID 118) ...
Adding new user 'nvpd' (UID 115) with group 'nvpd' ...
Not creating personal directory '/var/run/nvpd/'.
Created symlink
/etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service →
/lib/systemd/system/nvidia-persistenced.service.
Job for nvidia-persistenced.service failed because the control process
exited with error code.
See "systemctl status nvidia-persistenced.service" and "journalctl -xe" for
details.
...

Checking service status:


stretch at debian:/usr/src/nv$ systemctl status nvidia-persistenced.service
● nvidia-persistenced.service - NVIDIA Persistence Daemon
   Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service;
enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-05-08 01:59:51 -03;
7min ago

Verifying further details:

stretch at debian:/usr/src/nv$ sudo journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The nvidia-persistenced.service drive is starting.
mai 08 01:59:51 debian nvidia-persistenced[19166]: Started (19166)
mai 08 01:59:51 debian nvidia-persistenced[19166]: Failed to open
libnvidia-cfg.so.1: libnvidia-cfg.so.1: cannot open shared object file: No
such file or directory
mai 08 01:59:51 debian nvidia-persistenced[19165]: nvidia-persistenced
failed to initialize. Check syslog for more details.
mai 08 01:59:51 debian nvidia-persistenced[19166]: Shutdown (19166)
mai 08 01:59:51 debian systemd[1]: nvidia-persistenced.service: Control
process exited, code=exited status=1
mai 08 01:59:51 debian systemd[1]: Failed to start NVIDIA Persistence
Daemon.
-- Subject: A unidade nvidia-persistenced.service falhou
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The nvidia-persistenced.service unit failed.
-- 
-- The result is failed.
mai 08 01:59:51 debian systemd[1]: nvidia-persistenced.service: Unit
entered failed state.
mai 08 01:59:51 debian systemd[1]: nvidia-persistenced.service: Failed with
result 'exit-code'.
mai 08 02:00:24 debian systemd[1]: Reloading.
mai 08 02:00:24 debian systemd[1]: apt-daily-upgrade.timer: Adding 58min
40.128838s random time.
mai 08 02:00:24 debian systemd[1]: anacron.timer: Adding 4min 57.391958s
random time.
mai 08 02:00:24 debian systemd[1]: apt-daily.timer: Adding 1h 8min
57.545202s random time.
mai 08 02:00:34 debian sudo[17446]: pam_unix(sudo:session): session closed
for user root
mai 08 02:00:37 debian PackageKit[860]: get-updates transaction
/228_becdbacd from uid 1000 finished with success after 916ms
mai 08 02:00:38 debian PackageKit[860]: get-updates transaction
/229_eaccaccc from uid 1000 finished with success after 913ms
mai 08 02:01:29 debian sshd[1441]: pam_unix(sshd:session): session closed
for user stretch
mai 08 02:01:29 debian systemd-logind[351]: Removed session 5.
-- Subject: Session 5 has been terminated
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat

However, when checking if the package is installed:

stretch at debian:~$ dpkg -l libnvidia-cfg1* | grep ^ii
ii  libnvidia-cfg1:amd64 418.56-2     amd64        NVIDIA binary OpenGL/GLX
configuration library

Recompiling manually by removing the line containing the "--no-create-home
\" code from the files:

rm -rf nvidia-persistenced*.deb
cd `ls -d */ | grep nvidia-persistenced`
sed -i "/--no-create-home/d" `find . -type f -a -exec grep -l
"\-\-no-create-home"  '{}' \;`
cd -
dpkg-scanpackages -m -t deb . | sudo gzip -c > "$BDIR"Packages.gz
sudo apt-get update
sudo apt-get install --reinstall nvidia-persistenced

...
Configuring nvidia-persistenced (418.56-1) ...
Job for nvidia-persistenced.service failed because the control process
exited with error code.
See "systemctl status nvidia-persistenced.service" and "journalctl -xe" for
details.
...

Note 2: This error that occurred was due to the VM because you do not have
the NVidia card in it, but note that the following error disappears:

Alert: The home directory /var/run/nvpd/ you specified can not be accessed:
No such file or directory
Not creating personal directory '/var/run/nvpd/'.

The NVidia driver compiled and installed on my actual machine contains the
following information:

dpkg -l nvidia-persistenced* | grep ^ii
ii  nvidia-persistenced 418.56-1     amd64        daemon to maintain
persistent software state in the NVIDIA driver

systemctl status nvidia-persistenced.service
● nvidia-persistenced.service - NVIDIA Persistence Daemon
   Loaded: loaded (/lib/systemd/system/nvidia-persistenced.service;
enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-05-08 06:18:48 -03; 2h 54min left
  Process: 4967 ExecStart=/usr/bin/nvidia-persistenced --user nvpd
(code=exited, status=0/SUCCESS)
 Main PID: 4974 (nvidia-persiste)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/nvidia-persistenced.service
           └─4974 /usr/bin/nvidia-persistenced --user nvpd

sudo systemctl restart nvidia-persistenced.service
sudo journalctl -xe
-- Subject: Unidade nvidia-persistenced.service being turned off
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The nvidia-persistenced.service unit  is being turned off.
mai 08 03:28:57 DarkElven systemd[1]: Stopped NVIDIA Persistence Daemon.
-- Subject: A unidade nvidia-persistenced.service completed the shutdown
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The nvidia-persistenced.service unit  completed the shutdown
mai 08 03:28:57 DarkElven systemd[1]: Starting NVIDIA Persistence Daemon...
-- Subject: Unidade nvidia-persistenced.service being initiated
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The nvidia-persistenced.service unit  is being started.
mai 08 03:28:57 DarkElven nvidia-persistenced[9105]: Started (9105)
mai 08 03:28:57 DarkElven systemd[1]: Started NVIDIA Persistence Daemon.
-- Subject: Unidade nvidia-persistenced.service completed the startup
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The nvidia-persistenced.service unit completed the startup


While testing the builds, I noticed that the repositories were updated on
"2019-05-06 23:23". The compilation I made, where I specified the missing
"/var/run/nvpd/" folder was made in "2019-05-05" and today when I did a new
build without modifying anything, it worked correctly.

I noticed that what I compiled for the first time,
"nvidia-persistenced.service" was specifying the folder in "ExecStart", so
the error occurred. Now it is not specified:

[Unit]
Description=NVIDIA Persistence Daemon
Wants=syslog.target

[Service]
Type=forking
ExecStart=/usr/bin/nvidia-persistenced --user nvpd
ExecStopPost=/bin/rm -rf /var/run/nvidia-persistenced

[Install]
WantedBy=multi-user.target

Now the compiled package is working normally, which means that the error I
mentioned is already fixed. However, you should be very careful when
choosing which packages to use for it so that it is as stable as possible.

Em seg, 6 de mai de 2019 às 03:03, Debian Bug Tracking System <
owner at bugs.debian.org> escreveu:

> Thank you for filing a new Bug report with Debian.
>
> You can follow progress on this Bug here: 928497:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928497.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> As you requested using X-Debbugs-CC, your message was also forwarded to
>   elppansmk at gmail.com
> (after having been given a Bug report number, if it did not have one).
>
> Your message has been sent to the package maintainer(s):
>  Debian NVIDIA Maintainers <pkg-nvidia-devel at lists.alioth.debian.org>
>
> If you wish to submit further information on this problem, please
> send it to 928497 at bugs.debian.org.
>
> Please do not send mail to owner at bugs.debian.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 928497: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928497
> Debian Bug Tracking System
> Contact owner at bugs.debian.org with problems
>


-- 
Att.:
Marcelo Klumpp
Analista de Suporte - GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nvidia-devel/attachments/20190508/1a2779ff/attachment.html>


More information about the pkg-nvidia-devel mailing list