Loading...

Knowledge Center


NaInet library returned code == -10 (clients cannot update from any repository after upgrading McAfee Agent)
Technical Articles ID:   KB65607
Last Modified:  4/27/2015
Rated:


Environment

McAfee Agent 5.x, 4.x

Problem

Clients cannot update from any repository after upgrading McAfee Agent.

McScript.log records the following:
 
2009-04-24 09:34:03 E #7868 imsite Error trace:
2009-04-24 09:34:03 E #7868 Thread  [Main thread]->
2009-04-24 09:34:03 E #7868 SessMgr  [initializeScript]->
2009-04-24 09:34:03 E #7868 creposi  [setNextRepositoryToUse]->
2009-04-24 09:34:03 E #7868 creposi  [Candidate ePOSA_GVENGDC2: testing]->
2009-04-24 09:34:03 E #7868 creposi  [downloadFile,SiteStat.xml,C:\WINDOWS\TEMP]->
2009-04-24 09:34:03 E #7868 imsite  [downloadFile,SiteStat.xml,,C:\WINDOWS\TEMP,1]->
2009-04-24 09:34:03 E #7868 imsite   NaInet library returned code == -10
 
Agent_<ComputerName>.log records the following:
 
2009-04-24 09:34:03 E #7868 imsite Error trace:
2009-04-24 09:34:03 E #7868 Thread  [Main thread]->
2009-04-24 09:34:03 E #7868 SessMgr  [initializeScript]->
2009-04-24 09:34:03 E #7868 creposi  [setNextRepositoryToUse]->
2009-04-24 09:34:03 E #7868 creposi  [Candidate ePOSA_GVENGDC2: testing]->
2009-04-24 09:34:03 E #7868 creposi  [downloadFile,SiteStat.xml,C:\WINDOWS\TEMP]->
2009-04-24 09:34:03 E #7868 imsite  [downloadFile,SiteStat.xml,,C:\WINDOWS\TEMP,1]->
2009-04-24 09:34:03 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. This is because either the %temp% variable is pointing to a non-existent folder, or does not have permissions to it.

Solution

Ensure 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 on configuring System Environment Variables, see http://technet.microsoft.com/en-us/library/bb726962.aspx.

Some common examples of invalid Temp Variable definitions include but are not limited to:
  • The variable does not point to an existing folder. The folder will not be automatically created; it must exist or be created manually.
  • The variable contains more than one path definition. A Temp Variable can point to only one location; it cannot contain several different paths. 
  • The variable does not contain a valid path. Folder names cannot 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 the agent service is running under. By default this is the "local system account". This account requires read/write/modify/delete permissions. 

Rate this document

Languages:

This article is available in the following languages:

English United States
Japanese

Beta Translate with

Select a desired language below to translate this page.

Glossary of Technical Terms


 Highlight Glossary Terms

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