Loading...

Knowledge Center


NaInet library returned code == -10 (clients can't update from any repository after upgrading McAfee Agent)
Technical Articles ID:   KB65607
Last Modified:  6/12/2019
Rated:


Environment

McAfee Agent (MA) 5.x

Problem

Clients can't update from any repository after upgrading McAfee Agent.

McScript.log records the following:
 
E #7868 imsite Error trace:
E #7868 Thread  [Main thread]->
E #7868 SessMgr  [initializeScript]->
E #7868 creposi  [setNextRepositoryToUse]->
E #7868 creposi  [Candidate ePOSA_GVENGDC2: testing]->
E #7868 creposi  [downloadFile,SiteStat.xml,C:\WINDOWS\TEMP]->
E #7868 imsite  [downloadFile,SiteStat.xml,,C:\WINDOWS\TEMP,1]->
E #7868 imsite   NaInet library returned code == -10
 
Agent_<ComputerName>.log records the following:
 
E #7868 imsite Error trace:
E #7868 Thread  [Main thread]->
E #7868 SessMgr  [initializeScript]->
E #7868 creposi  [setNextRepositoryToUse]->
E #7868 creposi  [Candidate ePOSA_GVENGDC2: testing]->
E #7868 creposi  [downloadFile,SiteStat.xml,C:\WINDOWS\TEMP]->
E #7868 imsite  [downloadFile,SiteStat.xml,,C:\WINDOWS\TEMP,1]->
E #7868 imsite   NaInet library returned code == -10

Agent_<ComputerName>.log records the following:

Error: "Unable to find a valid repository"

Cause

The McAfee Agent Updater is unable to write files to the specified Temp Variable set for the System account. The cause is because either the %temp% variable pints to a non-existent folder, or does not have permissions to access it.

Solution

Make sure that the System Environment Variables are configured correctly for the System accounts %temp% and %tmp%:
  1. Click Start, Run, type explorer, and click OK.
  2. Right-click My Computer and select Properties.
  3. Click the Advanced tab.
    NOTE: If any system variables need to be altered, make the changes, and restart the computer to reload the System Environment Variables.
For information about how to configure System Environment Variables, see http://technet.microsoft.com/en-us/library/bb726962.aspx.

Some common examples of invalid Temp Variable definitions include:
  • The variable does not point to an existing folder. The folder is not automatically created; it must exist or be created manually.
  • The variable contains more than one path definition. A Temp Variable must only point to one location; it can't contain several different paths. 
  • The variable does not contain a valid path. Folder names can't contain any invalid characters such as: \ / : * ? " < > |
  • The Temp Variable points to a drive with no free space.
  • The permissions on the folder exclude the account under which the agent service runs. By default the account is the "local system account." This account requires read/write/modify/delete permissions. 

Rate this document

Beta Translate with

Select a desired language below to translate this page.

Languages:

This article is available in the following languages:

English United States
Japanese

Glossary of Technical Terms


 Highlight Glossary Terms

Please take a moment to browse our Glossary of Technical Terms.