Ncu unable to deploy stock section files to default directory because the directory is not writable

When i use command, “ncu -o SOA.report SoA”, to generate a kernal reporter.

I am stuck in the following error message.

==WARNING== Could not deploy stock section files to “/home/<<username>>/Documents/NVIDIA Nsight Compute/2021.3.1/Sections”.
Set the HOME environment variable to a writable directory.
==WARNING== Using “/usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections” instead.
==WARNING== See 
.
==WARNING== Failed to add default section search path /usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections.
==ERROR== Failed to add rules search path /usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections.

The things i do:

  1. check the directory existence.———it existed !
    <<username>@<<username>>-Precision-3581 ~/D/N/2/Sections (master)> pwd
    /home/<<username>>/Documents/NVIDIA Nsight Compute/2021.3.1/Sections
  2. check the owner and permission of the directory ——-owner is current used, permission is all user can modify
    <<username>>@<<username>>-Precision-3581 ~/D/N/2021.3.1 (master)> ll
    total 4.0K
    drwxrwxrwx 2 <<username>><<username>> 4.0K Mar 13 08:35 Sections/

I want to know how to fix the error when using this command and the cause of the error occured.
I am stuck here for a whole morring!!!

I search same related posts in the Forums.
A post say that it is existence about default directory in his case.
But the directory exsited in my case.
I have no idea to solve the problem.

Hi, @lifeisbinaryarcher

Sorry for the issue you met. I noticed your path shows 2021.3.1? Are you using this version ?

Can you uninstall the current version and get a latest version to have a try ?

You should check that

  • Your installation is not corrupted, and that /usr/lib/x86_64-linux-gnu/nsight-compute/sections actually exists and is not empty. If that’s not the case, as mentioned, re-install the application.
  • Your target directory has free space.

this directory not exist in my serve.

According to the error message in my case, it report directory is “/usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64/../../sections”.

In my serve, this directory is not exist. You can see that there is no directory in ‘‘/usr/lib/x86_64-linux-gnu/nsight-compute/target/linux-desktop-glibc_2_11_3-x64”.

<<username>>@<<username>>-Precision-3581 /u/l/x/n/t/linux-desktop-glibc_2_11_3-x64 (master)> ll
total 158M
-rw-r–r-- 1 root root 44M Nov 19 2021 libcuda-injection.so
-rw-r–r-- 1 root root 224K Nov 19 2021 libInterceptorInjectionTarget.so
-rw-r–r-- 1 root root 39M Nov 19 2021 libnvperfapi64.so
-rw-r–r-- 1 root root 21M Nov 19 2021 libnvperf_host.so
-rw-r–r-- 1 root root 4.0M Nov 19 2021 libnvperf_target.so
-rw-r–r-- 1 root root 14K Nov 19 2021 libTreeLauncherPlaceholder.so
-rw-r–r-- 1 root root 2.9M Nov 19 2021 libTreeLauncherTargetInjection.so
-rw-r–r-- 1 root root 1.4M Nov 19 2021 libTreeLauncherTargetUpdatePreloadInjection.so
-rwxr-xr-x 1 root root 47M Nov 19 2021 ncu*
-rwxr-xr-x 1 root root 159K Nov 19 2021 TreeLauncherSubreaper*
-rwxr-xr-x 1 root root 14K Nov 19 2021 TreeLauncherTargetLdPreloadHelper*

Thank you I will try the latest version.