Agent install fails with unexpected exception There is not enough space on the disk

  • 7001443
  • 26-Sep-2008
  • 27-Apr-2012

Environment

Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 Installation - Agent

Situation

Agent install from deployment task or locally run with the preagent executable fails with Unexpected Error.
 
ERROR (from Application Event log):
 
[ZENPreAgent.AgentMain.serviceThreadMethod()]
Unexpected Exception occured: There is not enough space on the disk.

 
 
 

Resolution

  1. Verify that there is sufficient disk free space to install the agent.
  2. Use disk integrity tools to verify that the drive does not have problems.
  3. In some cases, early or beta versions of .net can cause errors of this type.
  4. Use Windows cleanup tool to clean up the drive.
  5. Check the system %Temp% directory to make sure it does not have too many files.

Additional Information

Note:  The Windows disk cleanup tool cleans up user %temp% directory but not necessarily system %temp% directory.  In the case for the error listed in Situation above, the ZENworks agent is running as system user and calling into a Microsoft .net APIXmlSerializer.  This API was attempting to write to %windir%\temp, not %user%\temp and failed due to a limit on the maximum size of files in that directory.


Extract from log:
[ZENPreAgent.AgentMain.serviceThreadMethod()]
Unexpected Exception occured: There is not enough space on the disk.
   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.CodeDom.Compiler.CodeCompiler.FromSourceBatch(CompilerParameters options, String[] sources)
   at System.CodeDom.Compiler.CodeCompiler.FromSource(CompilerParameters options, String source)
   at System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSource(CompilerParameters options, String source)
   at System.Xml.Serialization.Compiler.Compile()
   at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type)
   at ZENPreAgent.MigrateZFDBundles.SerializeXMLObjectToFile(Object xmlObject, Type type, String path)
   at ZENPreAgent.MigrateZFDBundles.SaveBundleList(BundleList list)
   at ZENPreAgent.AgentWin.SaveBundleList(Object blist)
   at ZENPreAgent.AgentMain.serviceThreadMethod()