ERROR: Error while parsing line 167 of '/var/lib/nvidia/log'

While trying perform nvidia-uninstall

command: nvidia-uninstall --log-file-name /var/log/nvidia-uninstaller.log --skip-module-unload --silent

I’m getting the error:

ERROR: Error while parsing line 167 of '/var/lib/nvidia/log'

cat /var/log/nvidia-uninstaller.log
nvidia-installer log file '/var/log/nvidia-uninstaller.log'
creation time: Tue Apr  7 13:58:32 2020
installer version: 440.64

PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

nvidia-installer command line:
    nvidia-uninstall
    --log-file-name
    /var/log/nvidia-uninstaller.log
    --skip-module-unload
    --silent

Using built-in stream user interface
-> Detected 16 CPUs online; setting concurrency level to 16.
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> If you plan to no longer use the NVIDIA driver, you should make sure that no X screens are configured to use the NVIDIA X driver in your X configuration file. If you used nvidia-xconfig to configure X, it may have created a backup of your original configuration. Would you like to run `nvidia-xconfig --restore-original-backup` to attempt restoration of the original X configuration file? (Answer: No)
-> Parsing log file:
-> error.
ERROR: Error while parsing line 167 of '/var/lib/nvidia/log'.
ERROR: Uninstallation failed.

here is line 167 and before and after:

2938467049
1: /usr/src/nvidia-440.64/common/inc/nv_speculation_barrier.h
1016661712
1: /usr/src/nvidia-440.64/common/inc/nv-retpoline.h
1266523721
1: /usr/src/nvidia-440.64/Makefile
2309491287
1: /usr/src/nvidia-440.64/Kbuild
3755757391
1: /usr/src/nvidia-440.64/nvidia/nvidia.Kbuild
3851428981
1: /usr/src/nvidia-440.64/nvidia/nvidia-sources.Kbuild
1096819688
1: /usr/src/nvidia-440.64/nvidia/nv-frontend.c
3408366300
1: /usr/src/nvidia-440.64/nvidia/nv-frontend.h
1529866378
1: /usr/src/nvidia-440.64/common/inc/nv-register-module.h
955347689
1119674292
4115121549
1602959506
1: /etc/vulkan/icd.d/nvidia_icd.json
4144097349
1: /etc/vulkan/implicit_layer.d/nvidia_layers.json
3963353857
1955860562
298992907
2294305186
1034809466
4273562726
1159523206
953648380
3207956880
520758612
4114498488
4244037751
2634125824
273161705
3826713137
2940862716

I have attached the full /var/lib/nvidia/log file

log.log (26.8 KB)

environment:
Red Hat Enterprise Linux Server release 7.7 (Maipo)
Linux labhost 3.10.0-1062.4.3.el7.x86_64 #1 SMP Tue Nov 12 10:42:40 EST 2019 x86_64 x86_64 x86_64 GNU/Linux

I’d suspect the file contents should be
filename
checksum
filename
checksum
filename
checksum

Since you already had a directory instead of a file, maybe check your harddisk, filesystem and system memory.

It’s a different server and a different os

The question is why on some lines I have filname and checksum and on some other lines I don’t

This also happened to me in ubuntu. very wired

I can also that inside the log file there are bunch of checksums and after a while there are bunch of files

maybe something wrong while the dkms installation which cause ther order to become wrong?

example:

1773132670
1608147331
2852326343
1852028770
4109958946
857401488
3575621070
1754010710
854927355
803044317
3495434848
2898611365
49544143
3909614410
147334037
726584002
3065526275
1481482874
1509507742
4134296369
1569110250
3660677735
107748808
2135355034
2212532816
4018832794
709333430
3382637364
2767275172
138882420
89786468
2876927771
61192157
3433551456
459683778
2080684548
3165293169
1945131116
2672875808
3518364390
2646716058
813700011
1134499782
32029471
3822442571
2843595429
3179342585
3645965817
1804486652
358593728
1358286442
4293466274
3344289401
3180409936
376921050
174616792
166756040
1176352787
2301371674

and after some lines:

libglxserver_nvidia.so.440.64
libGLX_nvidia.so.440.64
libGLX_nvidia.so.440.64
libOpenGL.so.0
libGLESv1_CM.so.1.2.0
libGLESv1_CM.so.1
libGLESv2.so.2.1.0
libGLESv2.so.2
libGLX.so.0
libGL.so.1.7.0
libGL.so.1
libEGL.so.1.1.0
libEGL.so.1
nvidia-installer
libnvidia-cfg.so.440.64
libnvidia-cfg.so.1
libnvidia-ml.so.440.64
libnvidia-ml.so.1
libvdpau_nvidia.so.440.64
vdpau/libvdpau_nvidia.so.440.64
libcuda.so.440.64
libcuda.so.1
libnvidia-opencl.so.440.64
libOpenCL.so.1.0.0
libOpenCL.so.1.0
libOpenCL.so.1
libnvidia-ptxjitcompiler.so.440.64
libnvidia-ptxjitcompiler.so.1
libnvcuvid.so.440.64
libnvcuvid.so.1
libnvidia-encode.so.440.64
libnvidia-encode.so.1
libnvidia-ifr.so.440.64
libnvidia-ifr.so.1
libnvidia-fbc.so.440.64
libnvidia-fbc.so.1
libEGL_nvidia.so.440.64
libGLESv2_nvidia.so.440.64
libGLESv1_CM_nvidia.so.440.64
libnvidia-allocator.so.440.64
libnvidia-allocator.so.1
libnvoptix.so.440.64
libnvidia-opticalflow.so.440.64
libnvidia-opticalflow.so.1

any idea?