NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Package Builder Error -16078: Cannot get packages from NI Package Manager cache.

Solved!
Go to solution

Hello,

since the last update of the Package Builder I get the following error:

Error -16078: Cannot get packages from NI Package Manager cache.
At least one package was not found in the cache.
File cannot be opened: C:\Package Builder\Test_Repo\MATS2Repository\MATS2 Repository (13)

Any ideas where i could look which package is missing?

If i build an installer, everything works fine. Only if i try to build my repository the error occures.

Thanks for your advice.

0 Kudos
Message 1 of 26
(2,020 Views)

Sebastian -

If you are using 20.6, the following issue was fixed in version 2022 Q3: "1371798 Building a local repository that contains a package with a missing dependency reports an une...", but the error you are reporting seems to be different.

 

When building an installer that includes an installed package, if that package was manually removed from the C:\ProgramData\National Instruments\NI Package Manager\Packages\ directory, NI Package Builder will download the package from ni.com if the internet is accessible.

 

When building a repository that includes an installed package that is missing from the cache, NI Package Builder does not try to download the package from ni.com and will error in a similar manner to what you listed, except that the log usually lists the specific package that it could not find, e.g.:

Test Repo: Build Installers & Repositories started.
Error -16078: Cannot get packages from NI Package Manager cache.
Some package(s) could not be located in the cache.
The package '../../../../../pool/ni-p/ni-package-builder/22.5.0/22.5.0.49190-0+f38/ni-package-builder_22.5.0.49190-0+f38_windows_x64.nipkg' could not be located in the cache.
Test Repo: Build Installers & Repositories failed

 

Questions:

  1. What is the specific error message that lists the full package name that is not found?
  2. Is the package listed in (1) located in the C:\ProgramData\National Instruments\NI Package Manager\Packages directory?
  3. Can you share the log file created in the %localappdata%\National Instruments\NI Package Builder\Logs\ directory that is associated with the launch and use of NI Package Builder where you performed a failing build for the repository and a successful build of an installer?
Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 26
(1,992 Views)

Hi,

I am using the NIPB version 22.5.1.49816.

Unfortunately the error message doesn´t mention the full package Name:
[10:34:41.10 ] Error -16078: Cannot get packages from NI Package Manager cache.
Mindestens ein Paket wurde im Cache nicht gefunden.
Datei kann nicht geöffnet werden: C:\Package Builder\Test_Repo\MATS2Repository\MATS2 Repository (13)

I attached the requested log.

Thanks for your help.


0 Kudos
Message 3 of 26
(1,964 Views)

Sebastian, I agree that no specific package was listed, so I have not seen this before.

 

Questions:

  1. Is "C:\Package Builder\Test_Repo\MATS2 Repository" the target directory for the build?
  2. If that is the directory of where the repository is being created, can you specify a different directory to see if the build works?
  3. The "(13)" might be an error that is occurring when NI Package Builder is trying to access the target directory, and if so, that might be Error 13: Permission Denied. Do you know if that directory is protected in some way?
  4. You captured and shared the NI Package Builder log file, but can you also capture and share the NI Package Manager log files as well?
Scott Richardson
https://testeract.com
0 Kudos
Message 4 of 26
(1,949 Views)

Hi,

1. Correct, this is the current output directory. Usually our Repository is on a Network-Path.
2. I tried to create the repository at "C:\Users\Public\Documents\Test", same error.
3. There is no protection, as far as i know.
4. This must be the Logfile, which belongs to the PackageBuilder Log

0 Kudos
Message 5 of 26
(1,930 Views)

The NIPM log did not have any more detail, only two lines with:

10:27:16.501897 CLILIB: Mindestens ein Paket wurde im Cache nicht gefunden.
10:27:16.501897 CAPI: nipkg_WaitUntilRequestCompletes: Request (1066390899) completed with result of -125106

 

In your original post you stated "since the last update of the Package Builder I get the following error"; can you clarify what version of NI Package Builder and NI Package Manager you were using when you say you did not see this error?

 

Could you share the following NIPM file? %localappdata%\National Instruments\NI Package Manager\Logs\errorlog.txt

 

Can you share the list of files in (1) the "C:\ProgramData\National Instruments\NI Package Manager\packages" directory and in (2) the "C:\ProgramData\National Instruments\NI Package Manager\downloads" directory?

Scott Richardson
https://testeract.com
0 Kudos
Message 6 of 26
(1,893 Views)

Hi Scott,

with the NIPB version 22.5.0.0 and NIPM version 22.8.0.49254 i did the last succesful build of the repository. I added the LogFile from this build.

I attached two additional files with the list of files of the two requested file paths.

Thanks for your help.

0 Kudos
Message 7 of 26
(1,883 Views)

Thanks for the additional information. I will be checking up on the content of the errorlog.txt file next with some developers.

 

Can you share a file list of the following directory as well?

C:\ProgramData\National Instruments\NI Package Manager\eulas

Scott Richardson
https://testeract.com
0 Kudos
Message 8 of 26
(1,861 Views)

Here you go.

0 Kudos
Message 9 of 26
(1,848 Views)

What we are seeing is that NIPM is returning an error after failing to open a file where the path is not a file, but is the repo directory that you are building. This error we are seeing seems very odd so we are unsure are next steps to debug. 

 

Questions:

  1. Can you share a directory list of what the repo directory contains after a failure?
  2. Have you tried to build this solution on other systems, and if so, do they work?
  3. Are you using any symbolic links in any paths?
  4. Are you building this an interactive user, and not under a service account?
  5. Would you be up for slowly simplifying the project to see if we can find a point where the project builds successfully? Maybe slowly remove top-level packages from the NIPB repo configuration until the build is successful. Maybe start with any NI ones first and then the ones that you solution builds?
Scott Richardson
https://testeract.com
0 Kudos
Message 10 of 26
(1,809 Views)